On Wed, Dec 17, 2008 at 09:21:18AM +0100, Gauthier DOUCHET wrote: > For example, when us...@company1.common.com sends a mail to some mail > adresses, when these people receive the mail, instead to have the mail From > filled with us...@company1.common.com, they have us...@www.common.com (this > is the same server hosting mail and the website www.common.com) > > I don't know exactly what could be the cause of this problem. Is it due to > Postfix or to my DNS config or the mail server for these domains which do > not understand my mail server? What config files do you want I give in order > to have more details to understand?
The (envelope) sender address that Postfix saw is recorded in your mail logs. If that is correct, likely the mail was rewritten downstream. Delivering mail to recipients whose domain part is an alias (CNAME) is not portable. Older MTAs that follow RFCs 821/822 (not 2821/2822 or 5321/5322) will rewrite such "alias" domain parts to the primary name. Very old versions of Postfix used to do this, IIRC this was changed in Postfix 2.0, so "very old" means 1.0 or 1.1 unless my faint memory of these releases is not entirely accurate. You must determine where the rewrite is taking place by sending a test message by hand (telnet your.ip.add.ress 25) directly to your server (with the correct envelope and headers) and also directly to the destination host, then compare the results. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.