On 10/30/2011 9:12 PM, Brandon Phelps wrote: > On 10/30/2011 9:18 PM, Noel Jones wrote: >> On 10/30/2011 5:35 PM, Brandon Phelps wrote: >>> Hello all, >>> >>> I am attempting to relay mail from one of my systems to my >>> gmail-hosted account. This is working OK except for one catch: >>> mail sent to users whom have aliases in /etc/aliases do not get >>> properly mapped to the correct user. >>> >>> For example my /etc/aliases file has the following: >>> >>> postmaster: root >>> root: brandon >> Don't use /etc/aliases or mydestination for non-local domains. >> >> Domains that are relayed elsewhere for delivery should be listed in >> relay_domains and nowhere else. Valid recipients must be listed in >> relay_recipient_maps, with aliases listed in virtual_alias_maps. >> >> http://www.postfix.org/ADDRESS_CLASS_README.html >> http://www.postfix.org/STANDARD_CONFIGURATION_README.html >> >> >> If you need more help, please see >> http://www.postfix.org/DEBUG_README.html#mail >> >> >> >> -- Noel Jones > > Thanks for the reply Noel. Does this mean I need to duplicate each > of my /etc/aliases in my new /etc/postfix/virtual_aliases file? I > notice that the virtual_alias_maps file format is simply > "recipient finaldestinationrecipient" rather than the format of > /etc/aliases which was "recipient: finaldestinationrecipient" (colon > in aliases, no colon in virtual aliases). > > Does this mean I need to make my virtual alias map look something like: > > postmaster root > cron root > root myu...@mydomain.com > > ? > > Thanks again, > Brandon
The docs for virtual_alias_maps are here: http://www.postfix.org/postconf.5.html#virtual_alias_maps http://www.postfix.org/virtual.5.html http://www.postfix.org/ADDRESS_REWRITING_README.html In particular, read the virtual(5) doc to see if bare username mapping will work for you; see the table search order section. -- Noel Jones