Thanks for the reply Wietse, > > I have a domain, for which I would like to deliver some email locally > > (as a virtual domain) and some email via a relay (using a transport > > map). The differentiation is based on the recipient address. > > Assuming that most recipients are local, use virtual_alias_domains > and virtual_alias_maps, some recipients resolving to a local email > address and some resolving remotely. > > us...@example.com user1@localhost > us...@example.com user2@host.other.example
The thing is that I need to deliver using the same email address at the remote host. Is there a way I can do that? The scenario is that I am gradually moving a large email service from one host to another (gradually, due to the need to "warm up" the new IPs - this is an email distribution service). I can't move all users in one go, so I would like to gradually assign them to the new server, whilst the inbound email still continues to the old server. I guess I could do some sort of fudge on the new server to accept emails at a different domain and then change that back, but I think it would be quite a lot of work. If I can just redeliver using the same email address then that would be ideal. Many thanks, Andy