Re: [RFC] Exim as standard Debian MTA?
Steve Lamb <email@example.com> wrote:
> Read the bat book.
I have, though not recently.
> While I dislike the Sendmail configuration file they give good
> examples on why rewriting is in there. The short and sweet answer is
> simple, which one of these are valid:
> From: Steve Lamb <firstname.lastname@example.org>
> From: email@example.com
> From: firstname.lastname@example.org (Steve Lamb)
> From: "Steve Lamb" <<email@example.com>>
> From: Steve Lamb <firstname.lastname@example.org>
> Answer, according to sendmail and the abigiuties of the RFCs, all of
First off, sendmail shouldn't care (except that it's both an SMTP
mailer and a user agent for taking messages and turning them into SMTP).
And it doesn't need to look at the From: header for that.
Secondly, I see nothing in RFC822 (nor any later RFC) which indicates
that <<email@example.com>> is a valid email address.
Third, <firstname.lastname@example.org> is very different from those
other email addresses. In general, it's a bug to treat it the same.
Finally, all that's left is one email address: email@example.com
Ok, now let's say that this is a To: header and that sendmail needed to
take a look at it. The most sensible mechanism, here, would be something
that took a list of addresses in RFC 822 format, tossed the irrelevant
stuff, and returned the resultant list.
As it happens, it would be nice to have such a tool runnable at the
shell level, but that's for another thread.
Anyways, you don't need a language which treats "." as a delimiter to
perform this function. Nor do you need a lot of the rest of sendmail's
features. Furthermore, when dealing with mailing lists, most of these
features are bugs. [When you rewrite a mail address you may be preventing
someone from unsubscribing from the mailing list.]