Le 12/12/2010 12:15, R.A. Imhoff a écrit :
Hello,

I was wondering if anyone has succeeded to configure Postfix running on a server hosting multiple 
virtual domains such that outgoing mail to remote destinations get the "Return-Path" and 
the domain of the message-id match the "From:" header?

As it is, when sending mail, for example with a php call to mail(), the "Return 
path" and the domain of the message-id is always that of the hostname of the machine.



- the return-path and the From: header are to be set by the sender.
in your case, you should set it in your php code. put the full domain part in the from address so that postfix doesn't "fix" it by appending $myorigin or .$mydomain. see
        http://www.postfix.org/ADDRESS_REWRITING_README.html
and in particular
        http://www.postfix.org/ADDRESS_REWRITING_README.html#standard


- the message-id is also set by the sender (outlook, thunderbird, .. all add one), and if it is not, postfix will add one. you can set the message-id in php, but don't do that unless you know what you're doing.

but why do you want the message-id to contain the virtual domain? nobody will be looking at the message-id (except software such as MUAs, ...).




(I'm running Postfix version 2.7.0 under Ubuntu 10.04)

Having searched the internet quite extensively on this question, it seems a 
number of others have attempted this, but I didn't find any solution ...

Many thanks for any help!

Reply via email to