procmail
[Top] [All Lists]

Re: Canonicalizing addresses

1995-10-19 08:03:48
Tim Pickett writes on 19 October 1995 at 13:49:39
"J. Daniel Smith" <dan(_at_)bristol(_dot_)com> says:
Bob Weissman writes on 18 October 1995 at 09:41:05
Is there a simple way to canonicalize an email address by adding
"@dom.ain" to the user name if it's not already there?
You're probably much better off leaving this to "sendmail" (or
whatever MTA you are using).  This is sendmail's job, and it will
[...]
Unfortunately this is not always possible, especially on machines for
which I have absolutely no control over the sendmail.cf file.

IMHO, your time is much better spent putting presure on the powers
that be to fix your broken mail system, rather than resorting to some
hack.  And you can almost always use your own sendmail.cf file via
the -C flag.

The RFCs are quite clear that any mail going out to the Internet has
to have a fully-qualified domain name (and with things like POP and
IMAP there are very good reasons for doing the on "internal" mail as
well).

In any case, the easiest way to *get started* on doing something along
these lines in procmail is "formail -zrxt To:" which will parse the
various "From:" line formats.

   Dan
--------------------- message is author's opinion only --------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>              
http://www.bristol.com/~dan
Bristol Technology Inc.                     +1 203 438 6969, 438-5013 (FAX)
Ridgefield, Connecticut (USA)                       
{info,jobs}(_at_)bristol(_dot_)com
                                 --------
Von guten Maechten wunderbar geboren, erwarten wir getrost, was kommen
mag.  Gott ist mit uns am Abend und am Morgen, und ganz gewiss an
jedem neuen Tag.   - Dietrich Bonhoeffer

<Prev in Thread] Current Thread [Next in Thread>