On 9/27/2011 8:03 AM, Randy Ramsdell wrote: >>> /etc/postfix/virtual: >>> #f...@example.com stays itself. >>> f...@example.com f...@example.com >>> >>> #b...@example.com goes elsewhere. >>> b...@example.com other@elsewhere >>> >>> /etc/postfix/virtual.pcre: >>> # Everything else goes to the mailsink. >>> /./ mails...@example.net >>> >>> ? >> Plus the portion of my example that you left out, and that lists >> the PCRE file last in the virtual_alias_maps settings. >> >> Wietse > virtual_alias_maps = > hash:/etc/postfix/virtual pcre:/etc/postfix/virtual.pcre > > Has been this way since I started with your example. > >
When you have a /./ catchall, you need an identity mapping in the hash file for every user to keep the catchall from grabbing it. In your example above, you would add other@elsewhere other@elsewhere to your hash file. Wietse's examples started out with just aliasing @example.com and not the whole world. In the case of aliasing only @example.com, no identity mapping would be needed for @elsewhere as it wouldn't match the domain wildcard. But you're using a global wildcard, not just a domain wildcard. -- Noel Jones