Envelope sender often manifests itself in the Return-Path:. This /should/ only be added by the final delivering system based on the envelope sender as it was handed the message, but who knows how many final delivery systems do add it, and what do they do if an inbound message already has a Return-Path? You'd have to do some experiments to learn how reliable that is, for each mailbox system.
I agree envelope sender should also always be in the Received header generated by the first-hop host (which may also have some means of verifying it). I have the same complaint about the originally-addressed recipient too. In Office365, I might have a number of addresses on my mailbox, but last time I had cause to look there's no way to know from a received message which address was originally used by the sender to get the message to that mailbox -- To: header is not reliable, and perhaps you were blind-copied, potentially by a mailing list. In terms of MTAs, certainly Exim is programmable and can put whatever you want in the headers. I don't know what the defaults are now**, but mine features these clauses: ${if def:received_for \ {\n\tfor <$received_for>}}\ ${if def:sender_address \ { (return-path <$sender_address>)}}\ ** Ah I see Thomas Mechtersheimen has clarified Exim's current default behaviour. Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks, Network Manager, Information Services Directorate, University Of Strathclyde, Glasgow, UK The University of Strathclyde is a charitable body, registered in Scotland, number SC015263. ________________________________ From: mailop <mailop-boun...@mailop.org> on behalf of MRob via mailop <mailop@mailop.org> Sent: 08 November 2022 23:10 To: mailop@mailop.org <mailop@mailop.org> Subject: [mailop] Why no envelope sender in RECEIVED? Hello, Why isnt it standard to put the envelope sender into the RECEIVED header? Does any MTA do it? _______________________________________________ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop
_______________________________________________ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop