procmail
[Top] [All Lists]

Re: sendmail/procmail

1996-05-30 09:18:52
BearHeart / Bill Weinman <bearheart(_at_)bearnet(_dot_)com> writes:
  I've just installed procmail as the local MDA in my 
sendmail.cf file.  The macro for calling procmail is right out 
of the man page: 

Well, you should really take a look at the file examples/advanced in
the procmail source tree, as it goes into a bit more depth on this.


# use procmail as local MDA
Mlocal, P=/usr/local/bin/procmail, F=lsSDFMhPfn, S=10, R=20, M=2000000,
       A=procmail -Y -a $h -d $u

  The problem I'm having is that something is now rewriting all 
the To: and Cc: etc. headers and removing the host parts of the 
addresses like this (from a recent message to this list): 
...

The problem is most likely that the S= and R= defines are incorrect.
In sendmail 8.6 and later you may need a "/" component on one or both
of the defines.  For instance, with 8.6.12 here, the local mailer spec
reads:

Mlocal,         P=/usr/lib/procmail, F=lsDFMfSnPe, S=10, R=20/40,
                A=procmail -Y -d $u

DONT JUST COPY THAT!  Instead, look at the original Mlocal definition
(you *did* save a copy in a comment in the sendmail.cf, right?) and copy
the S= and D= defines from there.  The rest of it looks file.

If you have sendmail 8.7.x, then just use the m4 config stuff and
FEATURE(local_procmail)...but the examples/advanced file describes
that too.  Read the file!


Philip Guenther

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