On 9/8/2011 6:44 PM, Jay Ess wrote: > On 2011-09-09 01:17, Wietse Venema wrote: >> Jay Ess: >>> I have a primary SMTP-server that receives for domain.tld (duuuh) >>> and it stores it in Maildirs. I also want to forward every mail >>> received for the domain to another server that will do the exact >>> same thing. >> Use pcre-based recipient_bcc_maps. >> >> /etc/postfix/main.cf: >> recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc >> >> /etc/postfix/recipient_bcc: >> /^(.+)@example\.com$/ $1...@other.example.com >> >> Wietse >> > Thanx for the reply! > There are no other way doing it without rewriting the destination > address? > > I will explain why i want to do this. > We shall migrate to another mail server and i want to iron out > almost every thing that can go wrong before i move the users to the > new server. This is the last step for me where i receive incoming > mail on both servers and maybe let some users try the new server.
Use smtp_generic_maps to rewrite the new address back to the original during delivery. http://www.postfix.org/postconf.5.html#smtp_generic_maps @other.example.com @example.com This can be done either globally or with an -o override in a dedicated master.cf transport. -- Noel Jones