The 03.05.29 at 09:46, Bruce Marshall wrote:
So, using postfix, procmail is NOT called with root privileges, so it can not read /etc/procmailrc as stated on the procmail man page.
Can you describe how you receive your email? fetchmail, getmail, other? and who is calling postfix?
Fetchmail sends mail to port 25, and postfix sends it (pipes) for local delivery to procmail. The postfix configuration is as set up by YAST2 on a clean 8.1 install (commented by me on another mail, thread "a way to get more verbose logging from the postfix procmail maildrop ?", dated: Wed, 28 May 2003). With exactly the same recipe files (procmailrc) I had under suse 7.3 and sendmail, procmail stopped working right away under 8.2 and postfix. The problem was that it could not read "/etc/procmailrc" as user nobody.
There are ways to get procmail to process incoming mail without using postfix... but I believe that even using fetchmail --> postfix --> procmail it is still possible to use /etc/procmailrc.
Not according to postfix own documentation... The only way I can think is to change these two lines in "/etc/postfix/master.cf": procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} ________________^^^^^^^ To: procmail unix - n n - - pipe flags=R user=root argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${sender} ${recipient} _______________^^^^ But I will not try it.
I've used about every combination possible of the above and I have *never* used anything other than /etc/procmailrc.
It is dangerous, that file is processed as root (according to procmail docs). My recipes there were few, and now are completely removed. -- Cheers, Carlos Robinson