Hi - I am new to using Procmail. I have a Postfix server running and I want
to use Procmail to do mail-filtering through Spamassassin. The version of
Procmail I am running is 3.22. I have that running correctly but I keep
getting insufficient privileges when trying to send to all recipients but
myself.
I have set Postfix main.conf to:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_transport = procmail
I have tried a number of settings in Postfix master.cf. Here is what I am
currently using:
procmail unix - n n - - pipe
flags=R user=jbinder argv=/usr/bin/procmail -t -m /etc/procmailrc $(sender)
${recipient} ${user}
My /etc/procmailrc is:
SHELL=/bin/sh
LOGFILE=/var/log/procmail # this can be deleted after testing
VERBOSE=yes
DROPPRIVS=yes
USER=$3
HOME=/Users/$USER
RECIPEINT=$2
:0fiw
| spamc # call Spamassassin
# INCLUDERC=$HOME/.procmailrc allow users to create their own recipes
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*
/dev/null
#trash all messages with a very high spam score
INCLUDERC=$HOME/.procmailrc # allow users to create their own recipes
I realize that with the -m variable DROPPRIVS does not work.
The $HOME/.procmailrc files is:
SHELL=/bin/sh
DROPPRIVS=yes
LOGFILE=/Users/coleen/mail.log
VERBOSE=yes
USER=coleen
:0:
*$^TO_${recipient}
/var/mail/$USER
The log shows:
procmail: Opening "/var/mail/coleen"
procmail: Error while writing to "/var/mail/coleen"
The permissions on the file coleen are:
-rw------- 1 coleen mail 33592 May 28 13:34 coleen
which are pretty typical for mail files.
My suspision is that procmail is trying to write to coleen as jbinder. What
am I setting up incorrectly. Thanks in advance.
John C. Binder
Ogden, UT
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail