On 3/19/2010 8:34 PM, postfix users wrote:
Hi,I am migrating the Exchange 2000 to Exchange 2010, but before we switch over to new server, I want make a copy of email to new server for testing. Existing Config: Postfix -> Amavisd -> Exchange 2000 Here what I want : Postfix ---> Amavisd -> Exchange 2000 ---> Exchange 2010 Is it possible? Or it is better forward all email before Postfix? email -- some program? --> Postfix ---> Amavisd -> Exchange 2000 --> Exchange 2010 Many thanks in advance. Regards, Paul Margaillan
(copy of an answer from a few days ago) To deliver to two destinations, you need two recipients. You can use a regexp recipient_bcc_maps to add another recipient, then use smtp_generic_maps to rewrite it back to the original during delivery. Use a transport_maps entry to direct the bcc'ed mail to the proper server. # main.cf recipient_bcc_maps = regexp:/etc/postfix/recipient_bcc smtp_generic_maps = hash:/etc/postfix/smtp_generic transport_maps = hash:/etc/postfix/transport # recipient_bcc if /@example\.com/ /^...@example\.com$/ [email protected] endif # smtp_generic @new.example.com @example.com # transport new.example.com smtp:new.server.example.com Be sure to postmap the hash: tables after making changes to them. -- Noel Jones
