On Nov 29, 2012, at 9:14 AM, Sergi Seira <s.se...@cdmon.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I'm trying to set up a split domain (splitdomain.tld) environment due to a > migration of mailboxes from one server to another. > > Server Origin has 2 mailboxes (a...@splitdomain.tld and b...@splitdomain.tld). > > Server Destination has also 2 mailboxes (c...@splitdomain.tld and > b...@splitdomain.tld). > > MX dns register points to server Destination. > > Server Origin forwards any email not a...@splitdomain.tld or > b...@splitdomain.tld to server Destination. > > I have no administration of server Origin. > > On server Destination I have configured : > - - MX points to mx.ServerDestination.tld > - - transport table contains splitdomain.tld via virtual_mailbox_domains > - - I have transport_maps = hash:/etc/postfix/transport_relay.cf on main.cf > containing : > a...@splitdomain.tld smtp:mx.ServerOrigin.tld > b...@splitdomain.tld smtp:mx.ServerOrigin.tld > > An email from u...@anotherdomainonanotherserver.tld to a...@splitdomain.tld > reaches the mailbox on server Origin > An email from u...@anotherdomainonanotherserver.tld to c...@splitdomain.tld > reaches the mailbox on server Destination. > An email from a...@splitdomain.tld to b...@splitdomain.tld reaches the > mailbox on server Destination. > But an email from b@splitdomaintld can't reach a...@splitdomain.tld on server > Origin because : > > "Recipient address rejected: User unknown in virtual mailbox table" > > I think that transport_maps is not executed when 'apparently' mailboxes are > local. > > Is there any way to achieve this? > > Thanks, > regards, > Sergi >
hello transport_maps = hash:/etc/postfix/a_transport, hash:/etc/postfix/b_transport virtual_alias_domains = example.com virtual_alias_maps = hash:/etc/postfix/virtual /etc/postfix/virtual joeu...@example.com joeu...@mxhost1.example.com janeu...@example.com janeu...@mxhost2.example.com more details here http://www.postfix.org/VIRTUAL_README.html hope this helps -j