We're currently migrating our corporate email server (Postfix/Cyrus, with an OpenLDAP backend) from one box, to another, located offsite. Before I do a full cut-over, I was hoping to migrate one or two of our highest-volume (also, loudest-complaining) over first, because if there's any issues that somehow missed in my configuration and testing, they'll be sure to let me know.
All the transport mapping is currently stored in ldap. I created a separate, hashable transport map, and configured Postfix to use it, like so:
transport_maps = hash:/etc/postfix/oldmail_transport,ldap:trans
And in /etc/postfix/oldmail_transport, I've got:
email@example.com :[newmailserver.domain.com] firstname.lastname@example.org :[newmailserver.domain.com]
domain.com exists in the virtual_alias_domains on both servers.
The problem is, this doesn't work. The old mailserver sees that email@example.com is a local address, delivers mail to it, and ends things there. It appears that the only way to get the transport map to work would be to remove domain.com from the virtual_alias_domains on the old server, which would of course break delivery to all my other users on that domain.
Am I using transport_maps correctly, here? Is there another method I should be using to make postfix do what I'm wanting?
Thanks in advance for your help!