> On Aug 12, 2017, at 1:05 PM, Lorenzo Petracchi <lorenzo.petrac...@unifi.it> 
> wrote:
> 
> Hello, does anybody know if there is a way to force the header (From:) to be 
> rewritten so that it is equal to envelope (MAIL FROM), just for outgoing mail 
> and sasl authenticated sender?

This would lose the associated display name, as Postfix has no way to 
reconstruct that just from the MAIL FROM.
It might be better to prepend a "Sender:" header on port 587.  Some MUAs will 
display "From: <rfc822.sender> on behalf of <rfc822.from>" (this is one of the 
few actually nice features of Outlook from my perspective).

Otherwise, if you use header-checks to delete the "From:" header, a new one 
will be added based on the envelope sender.  You can do this on port 587, where 
all and only SASL authenticated users sending outbound email should be seen.

-- 
-- 
        Viktor.

Reply via email to