procmail
[Top] [All Lists]

Re: Question.

1997-02-26 12:09:12
Stephen Griffin <u-steve(_at_)ultra(_dot_)net> writes:
On one of our machines, procmail is the local MDA, however the domain
information on recipients is being stripped from the To: and CC: headers.

Does anyone have an appropriate Mlocal to retain this information,
or otherwise know what we're doing wrong.

Currently it's at:
Mlocal, P=/usr/local/bin/procmail, F=lsSDFMhPfn, S=10, R=20,
       A=procmail -a $h -d $u


This is generally the result of  having the wrong ruleset numbers in
the S and R directives on the Mlocal line.  You should copy the S and R
directives from the original Mlocal line instead of just using 10 and
20.  Similarly, the only differences in the F directive should be:

If there was an 'r', it should be replaced with an 'f'.
If there was an 'm', it should be removed.
The 'h' flag should be added if it wasn't already there.
The 'S' flag should be added if it wasn't already there.
The 'P' flag should be added if it wasn't already there.

The r/f choice sets what flag is used to pass in the envelope sender;
the lack on an 'm' flag makes sendmail fork one procmail per recipient
(this is a Good Thing); the 'h' flag tells sendmail to leave untouched
the case on the optional -a argument (passed to the mailer as the
"host"); the 'S' flags makes sendmail run procmail as root instead of
as daemon or the delivering user, and the 'P' flag adds the
"Return-Path:" header.

Oh, and if you use a version of sendmail between 8.7 and 8.8.4
(inclusive), then you should *remove* the '9' flag, as it's a security
hole.

Philip Guenther

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