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 <krem...@kreme.com>: Recipient address rejected: User unknown; from=<php-general-return-289813-kremels=kreme....@lists.php.net > to=<krem...@kreme.com> proto=ESMTP helo=<lists.php.net>

Postfix is working as expected; you removed the mapping from krem...@kreme.com -> krem...@covisp.net 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 krem...@kreme.com.

$ postmap -q krem...@kreme.com hash:/usr/local/etc/postfix/virtual
krem...@covisp.net

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 <sa...@tandon.net>





Reply via email to