Jason L Tibbitts III writes:
> It's your mailer that puts the outgoing alias in the headers. Before I
> upgraded to sendmail 8.7.x, my outgoing aliases were happily hidden. Now
> they are revealed and even following the directions in the FAQ (adding
> trailing commas to the aliases) does no good. What does work is modifying
> the format of the Received: header in sendmail.cf. Take out the
> ?u for $u$
> near the end of the HReceived: line. Unfortunately this isn't really a
> good solution because it changes things for every piece of mail going
> through your system and disables an important problem-locating feature. It
> also assumes that you're the mail admin on your machine.
I do find it useful in general to have the envelope recipient
appearing in the Received: header, but Sendmail V8 will only do this
if there is a single recipient. So make it two recipients instead.
e.g. from my alias file:
# This address is the bit-bucket. It is useful below for mailing lists.
# If you send to a list expansion alias *and* this, then sendmail will
# not write the envelope recipient into the trace headers, as there
# is more than one envelope recipient.
testing: "|/disk/mail/majordomo/bin/wrapper resend -l testing -h haymarket.ed.ac.uk testing-outgoing devnull"
You'll get extra entries in the sendmail log for messages being
delivered to devnull, but you won't get the recipient name appearing
in the Received: header.