LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache, Web Forms, Postfix and "Reply To" (https://www.linuxquestions.org/questions/linux-networking-3/apache-web-forms-postfix-and-reply-to-554366/)

zok 05-16-2007 10:35 AM

Apache, Web Forms, Postfix and "Reply To"
 
One of our web developers created a webform and script to mail a bunch of people. As expected, the mail is sent as Apache, since Apache is what calls postfix to send out the messages. What we're trying to get around is the fact that any bounced messages bounce back to the user "apache" and not to the "from" address that was set in the script. I asked him to also set "reply-to" and "return-path" but neither of these do the trick. Does anyone have any ideas on how to get around this?

Thanks.

Berhanie 05-17-2007 11:20 PM

You need to set the Envelope Sender address. This is ultimately done by giving the sendmail binary the 'f' option:
Code:

sendmail -f sender@domain ...
So, for example, if you're using php's mail() function to submit the mail, you need to use '-f sender@domain' in the additional_parameters slot. See http://www.php.net/manual/en/function.mail.php.


All times are GMT -5. The time now is 11:02 PM.