procmail
[Top] [All Lists]

Rewriting mail headers with procmail

1996-12-12 07:11:01
I'd like to use procmail and formail to rewrite uucp-style
headers into internet style.

I run a small Linux system with uucp mail connectivity.  I've had
repeated problems with sendmail and smail-3, so I've just
installed a new mail system named "qmail" using procmail for
final local delivery.  This works wonderfully --- with one
exception: incoming uucp mail has the local hostname appended as
"@hostname".  (Actually that happens to all mail not containing
an "@" in the "From:" header.)

For example, the address of this list appears to users on my
system as

       "From: 
Informatik(_dot_)RWTH-Aachen(_dot_)DE!procmail(_at_)n2ell(_dot_)columbia(_dot_)md(_dot_)us"
 

and I'd like to rewrite that so it becomes 

        "From: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE"

instead

[ As a side note: qmail appears to be quite easy to install and
configure.  My installation compiled and installed "right out of
the box."  I haven't been able to evaluate its claims of security
and robustness. The only shortcoming I have found it that it
seems to be absolutely clueless about uucp-style addresses.  (If
an address doesn't contain an "@" character, it attempts local
delivery, so mail to destinations like
"Informatik.RWTH-Aachen.DE!procmail" wind up being bounced as
local non-deliveries.)  qmail appears to be *very* flexible, so
there may be some way to correct this by installing a uucp "back
end" (perhaps smail-2.5), but I haven't figured out how to do
this yet. qmail is available from
"ftp://koobera.math.uic.edu/pub/software/";.]

Peter

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