procmail
[Top] [All Lists]

Re: Newbie - How do I get procmail to create a mailbox correctly?

2006-03-07 09:29:37
On Mon, Mar 06, 2006 at 08:07:01AM -0700, John Binder wrote:

Thanks Dallman, I do have the DROPPRIVS=yes set in procmailrc. I
thought that would do it. I am calling procmail from postfix
using two lines in master.cf:


procmail  unix  -       n       n       -       -       pipe
     flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc
$(sender) ${recipient} ${user}

Sorry, I know nearly nothing about configuring postfix or any other
MTA.

It seems that whenever a new user is added the /var/mail/username file is
created but the ownership will always be nobody

-rw-------   1 nobody  mail  2885 Mar  6 02:51 username

No matter what "phantom" user I use it procmail assigns ownership to the
phantom user.

I want all incoming mail to be processed by spamassassin prior to delivery.
I think that this would be appropriate at the /etc/procmailrc level. My
rcfile looks like:

SHELL=/bin/sh
LOGFILE=/var/log/procmail # this can be deleted after testing
VERBOSE=yes
USER=$3
HOME=/Users/$USER
DROPPRIVS=yes

Why can't you rely on $LOGNAME?  That's a standard var in procmail.

dman

____________________________________________________________
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