On 3/10/2012 10:29 AM, Allan Wind wrote: > On 2012-03-10 07:25:42, Wietse Venema wrote: >> No surprise, that mail delivery fails: all your domains are hijacked >> by the virtual_alias_domains address class, and you define only one >> user name there. >> >> See: http://www.postfix.org/ADDRESS_CLASS_README.html > > I read over this a few times before posting. Did I miss anything > in particular? > >> Local aliases are never examined because all your domains are >> hijacked by the virtual_alias_domains address class. Don't do that. >> Learn how to exclude domains from PCRE patterms. > > I was trying to avoid maintaining the list of domains in postfix. > Obviously another option would be one of the networked maps (tcp > etc). > > > /Allan
If you have a list of domains somewhere, use your scripting skills to automatically build lists of virtual_alias_domains and info@domain virtual mappings postfix can use. You'll spend far less time doing this than trying to get all the exceptions right with wildcard mappings. Wildcard domains are almost always a design mistake. You might get it sort-of-working with wildcard domains, but expect to get bit with more unexpected behavior. -- Noel Jones