procmail
[Top] [All Lists]

Re: Change where Procmail as LDA delivers mail

2002-05-10 22:55:57
John Oliver <joliver(_at_)john-oliver(_dot_)net> writes:
I need to change where procmail delivers mail for sendmail.  I need to
do this more than once, so I would like to avoid compiling a new binary
each time.  Isn't there a switch I can add to where procmail is called
in sendmail.cf?

Nope.  Procmail doesn't trust its command line that much.  If this is for
testing purposes, you can _partly_ emulate the different spool location
by setting ORGMAIL and DEFAULT in the /etc/procmailrc file.  However,
that file isn't parsed until after procmail 'screens' the recipient's
mailspool, and not at all for some ways of invoking procmail, so it's
not as secure as when procmail is compiled with the correct location.

Compiling a new binary isn't that bad if you leave around the compiled
source between takes.  Then you can just edit src/authenticate.c and "make
install" will only need to recompile that file and relink procmail.

(Making this configurable post-compile is on the list for the next
version of procmail.  Indeed, it's mostly written.  However my day job
has temporarily turned into a day-and-night job...)


Philip Guenther
Procmail Maintainer
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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