On Nov 29, 2012, at 9:14 AM, Sergi Seira <[email protected]> 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 ([email protected] and [email protected]).
> 
> Server Destination has also 2 mailboxes ([email protected] and 
> [email protected]).
> 
> MX dns register points to server Destination.
> 
> Server Origin forwards any email not [email protected] or 
> [email protected] 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 :
> [email protected]    smtp:mx.ServerOrigin.tld
> [email protected]    smtp:mx.ServerOrigin.tld
> 
> An email from [email protected] to [email protected] 
> reaches the mailbox on server Origin
> An email from [email protected] to [email protected] 
> reaches the mailbox on server Destination.
> An email from [email protected] to [email protected] reaches the 
> mailbox on server Destination.
> But an email from b@splitdomaintld can't reach [email protected] 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

[email protected]     [email protected]
[email protected]    [email protected]


more details here http://www.postfix.org/VIRTUAL_README.html

hope this helps
-j

Reply via email to