Am 30.08.2012 12:04, schrieb Nasser Heidari: > Thanks, generic worked for me , just there is another problem , as I have > used these system for few years and I have some other systems (Like > Ticketing) > That are using Internal domain(Domain.local) in some workflows, I want > force that if postfix delivering email to some special destinations, then > bypass generic maps. > Is it possible ? > > Regards, > Nasser
usally bypass mail routing is done with a transport table but goaling what you want with it, may relate to your whole setup > >> -----Original Message----- >> From: owner-postfix-us...@postfix.org > [mailto:owner-postfix-us...@postfix.org] >> On Behalf Of Noel Jones >> Sent: Wednesday, August 29, 2012 8:12 PM >> To: postfix-users@postfix.org >> Subject: Re: Rewrite Body Cc >> >> On 8/29/2012 10:35 AM, Nasser Heidari wrote: >>> Hi, >>> >>> We have Running Postfix and Exchange in our company. The mail system >>> is illustrated below: >>> >>> >>> >>> ------------------ >>> >>> | Domain.local | >>> >>> ------------------ >>> >>> | >>> >>> V >>> >>> ------------------ >>> >>> | Domain.com | >>> >>> ------------------ >>> >>> Domain.local is hosted on Microsoft Exchange and all local >>> communications handled by it. When someone from internal domain , >>> wants to send an email via outside network, then Exchange forwards >>> email to Postfix (Domain.com) and postfix send it out after address >>> rewriting (*@domain.local <mailto:*@domain.local> -> *@domain.com >>> <mailto:*@domain.com>). >>> >>> Also when postfix receives an email for domain.com , after rewriting >>> to domain.local , forwards it to Exchange. >>> >>> Currently this system is working, the only problem is that for example >>> when someone (john@domain.local <mailto:john@domain.local>) on >>> internal domain sends an email to a person on outside domain >>> (t...@postfix.org <mailto:t...@postfix.org>), with some internal staff >>> on the CC; Email sender address will translated to j...@domain.com >>> <mailto:j...@domain.com> but domain name of those people whose address >>> were on CC remains Domain.local. >>> >>> As far as I know, CC in body of the email and general rewrite rules >>> will not work here, Does anyone have a good solution for this case? >>> >>> >>> >>> Regards, >>> >>> Nasser >>> >> >> >> http://www.postfix.org/ADDRESS_REWRITING_README.html#generic >> > > -- Best Regards MfG Robert Schetterer