On Mar 10, 2009, at 11:30 PM, LuKreme wrote:

With these settings

virtual_alias_maps =
  pcre:$config_directory/virtual.pcre,
  mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_alias_domains = hash:/usr/local/etc/postfix/virtual

I get

mail postfix/smtpd[36156]: NOQUEUE: reject: RCPT from lists.php.net[216.92.131.4]: 450 4.1.1 <[email protected]>: Recipient address rejected: User unknown; from=<[email protected] > to=<[email protected]> proto=ESMTP helo=<lists.php.net>

Postfix is working as expected; you removed the mapping from [email protected] -> [email protected] by excluding that hash table from virtual_alias_maps. As documented, valid recipient addresses are listed with the virtual_alias_maps parameter, so with the above change to your main.cf, Postfix no longer accepts mail from [email protected].

$ postmap -q [email protected] hash:/usr/local/etc/postfix/virtual
[email protected]

The lookup key for virtual_alias_DOMAINS should be a domain name, not full address. Are you going to reply with some more sarcastic pedantry? :-)

--
Sahil Tandon <[email protected]>





Reply via email to