Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: mouss (moussml.netoyen.net)
Date: Wed Apr 07 2010 - 17:12:38 CDT
Jordi Espasa Clofent a écrit :
> On 04/07/2010 10:43 AM, Levente Birta wrote:
>> I think it is easier to config the return path when you send the mails.
> Yes, it's easy to insert a mail header as "ReturnPath" when you build
> the warning mail using PHP, but I read in RFC2821:
> "When the delivery SMTP server makes the "final delivery" of a
> message, it inserts a return-path line at the beginning of the mail
> data. This use of return-path is required; mail systems MUST support
> it. The return-path line preserves the information in the <reverse-
> path> from the MAIL command. Here, final delivery means the message
> has left the SMTP environment. Normally, this would mean it had been
> delivered to the destination user or an associated mail drop, but in
> some cases it may be further processed and transmitted by another
> mail system."
> I don't see cleary that it means the ReturnPath header is intended for
> what I'm looking for.
As the cited text says: the return-path header is added at final
delivery. don't play with that. What you need is the envelope sender.
with sendmail, it's the "-f" flag:
# sendmail -f fooexample.com ....
with SMTP? it's the "MAIL FROM" command.