On 6/14/2012 10:50 AM, jeffrey j donovan wrote: > > On Jun 14, 2012, at 11:34 AM, Noel Jones wrote: > >> >> The proper solution is to use a global virtual_alias_maps to map >> users to the correct server. Use rsync or similar to synchronize >> the virtual_alias file among the servers. >> >> # main.cf >> virtual_alias_maps = hash:/etc/postfix/virtual >> >> # virtual >> us...@example.com us...@hosta.example.com >> us...@example.com us...@hostb.example.com >> ... >> >> >> postmaster works the same way -- >> postmas...@example.com postmas...@hosta.example.com >> >> >> >> [optional] On your outgoing gateway use canonical_maps to rewrite >> hostX.example.com to example.com. >> >> >> -- Noel Jones > > Thank you Noel for your reply, > > is it okay to use my default transport maps and the virtual ? > /etc/transport > normalu...@example.com smtp:hostA.example.com > > /etc/virtual > aliasu...@example.com normalu...@hosta.exmple.com > > > -j >
There's no need to duplicate the users in transport; all the mappings should be in virtual_alias_maps. Assuming the MX for hostA.example.com points to the right place, there is no need for any transport entries. If I read your example above correctly, you would use # virtual normalu...@example.com normalu...@hosta.example.com aliasu...@example.com normalu...@hosta.example.com ie. all valid *@example.com addresses are listed in virtual and mapped to the correct physical server. The virtual list is shared among all servers. Each server has a separate list of its own local users. -- Noel Jones