base.m4: Add an `auth=...' note to the Received header if we're relaying.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 24 Mar 2016 11:01:03 +0000 (11:01 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 24 Mar 2016 11:11:33 +0000 (11:11 +0000)
commit8fa6a8430272f7c9f56f409f6ab9abf1a4ec4b26
tree4ba19b03a8dbf7260c3d5c5c01f501593141f748
parent9a99b2d2a847c5d77f48ce8b731fb103c608825a
base.m4: Add an `auth=...' note to the Received header if we're relaying.

I'd previously resisted doing this, because the full `AUTH=...' notes
I'm passing around look a lot like email addresses and this might
subvert attempts to use extension addresses or the odin forwarder.  But
it seems a shame to lose this information.

Compromise: report the sender, as a bare user-name, only if the
domain-part is us.  This will, at worst, repeat the user name from the
sending MTA, which told us what it was either as the origin for a local
sender, or the authenticated user name from SMTP authentication or
identd (for submission to localhost).
base.m4