procmail
[Top] [All Lists]

Re: systemwide procmailrc and user

2006-07-15 10:30:38
On Saturday 15 July 2006 16:33, Don Russell wrote:
Rene Borchers wrote:
On Friday 14 July 2006 13:15, Dallman Ross wrote:
On Fri, Jul 14, 2006 at 11:49:29AM +0200, Rene Borchers wrote:
As I understand when procmail reaches the end of the
/etc/procmailrc-courier it dumps the mail at the Default location
unless there is a .procmailrc in the users homedir. So I made the
./home/user/.procmailrc with a test recipe but still all the mail
goes to the Default location.

Can someone give me a direction to look for to get it right

It may well be, on your system, that users need to have a .forward
file set up for procmail to be invoked for them.

See Nancy McGough's QuickStart FAQ.

http://www.ii.com/internet/robots/procmail/qs/


Dallman

Indeed, the forward file was missing, it's now working (sort off) the
system wide procmailrc is ignored and the one in the users homedir is
processed

Go back to a config where only the /etc/procmailrc file was being used,
and explicitly include the user .procmailrc if present...


/etc/procmailrc
< do great things here >

:0

* ? test -f ${HOME}/.procmailrc
{
    DROPPRIVS=YES
    INCLUDERC=${HOME}/.procmailrc
}

# If we get this far, either no .procmailrc file, or it wasn't delivered
by .procmailrc

:0:

${DEFAULT}

It's working, I have changed the procmailrc-courier in procmailrc en changed
the mailcommand line in main.cf (/usr/bin/procmail) and it works :-). Thanks 
guys for all the suggestions and advice.



____________________________________________________________
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

--

____________________________________________________________
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