Re: [exim] How to specify Return-Path for ALL outbound e-mai…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ian Eiloart
Dátum:  
Címzett: Murray S. Kucherawy
CC: <exim-users@exim.org>, Mike Lyon
Tárgy: Re: [exim] How to specify Return-Path for ALL outbound e-mail that gothrough exim?

On 3 Jul 2011, at 03:02, Murray S. Kucherawy wrote:

>> -----Original Message-----
>> From: Ian Eiloart [mailto:iane@sussex.ac.uk]
>> Sent: Friday, July 01, 2011 2:57 AM
>> To: Murray S. Kucherawy
>> Cc: Mike Lyon; <exim-users@???>
>> Subject: Re: [exim] How to specify Return-Path for ALL outbound e-mail that go through exim?
>>
>>> It's probably pointless to do this though since the delivering MTA
>>> (not yours) is the one that's supposed to be adding it, so whatever you
>>> put there is likely to be replaced or discarded. See Section 4.4 of
>>> RFC5321.
>>
>> Not so. The "F" flag refers to the SMTP return-path, the MAIL FROM
>> argument. I presumed that this is what the OP wanted.
>
> That's the value that's used to generate the Return-Path header field's contents. That too can change as it transitions a gateway of some kind, especially since it's supposed to represent the sender's address relative to the recipient (e.g., with gateway routing information included). That's why it's only supposed to be added at delivery time.


That's not what the documentation says. Section 31.8 "F - rewrite the envelope From field".

There is no flag for rewriting the Return-Path header, and I'm not sure if "h" would rewrite that header. Does "all" literally mean fix that string in every header, or just the other headers for which flags are available? For that reason, "F" may be used on inbound mail to change the Return-Path header, but it can also be used on outbound mail to change the return path (ie, the "envelope From field").

So, if the OP is after changing the return path, not the content of the Return-Path header, then the "F" flag is what he wants.

--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148