Dear  Noel,

Thanks for your reply.

Does it mean on my new Exchange 2010 server, I need to add
"@new.example.com" email address for each recipient?

For example, If  I send email to p...@example.com.

After postfix process, it rewrite the email address
p...@new.example.com and delivery to our new Exchange server.

It is possible to do it with rewrite the recipient email address?


Regards,
Paul

On Sat, Mar 20, 2010 at 11:19 AM, Noel Jones <njo...@megan.vbhcs.org> wrote:
>
> 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$/ �...@new.example.com
> 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

Reply via email to