Re: [exim] Modifying Return-Path header of outgoing messages

Góra strony
Delete this message
Reply to this message
Autor: John W. Baxter
Data:  
Dla: exim-users
Temat: Re: [exim] Modifying Return-Path header of outgoing messages
On 8/2/05 5:38 AM, "Johan MEREAUX" <johan.mereaux@???> wrote:

> I'm trying to modify the return-path header of outgoing messages.


An outgoing message (assuming you mean heading for someone else's mail
server) shouldn't have a Return-Path header. You control the Return-Path
header by controlling the Envelope From address ("reverse-path"). Note:
there is lots of wishy-washy language with SHOULD NOT and MAY and so forth
in the text that follows my partial quote. Sounds like a political
compromise with the proponents of some mail server which does things its own
way.

These are added as part of the final delivery process.

From RFC 2821:
" 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."

(More follows that.)