The 03.05.28 at 20:47, Patrick Shanahan wrote:
Why are not "/etc/procmailrc" and "/root/.procmailrc" read if I use sendmail,
typpo: postfix.
and the same file works as a charm using sendmail? That is no explained in "man procmail".
IANE, but according to 'man procmail': If no rcfiles and no -p have been specified on the command line, procmail will, prior to reading $HOME/.procmailrc, interpret commands from /etc/procmailrc (if present). Care must be taken when creating /etc/procmailrc because, if circumstances permit, it will be executed with root privileges (contrary to the $HOME/.procmailrc file of course).
Mind: you yourself said "root privileges". Now notice the postfix documentation: | If you use procmail (or some other command) for local mail | delivery, Postfix will not deliver mail as root. Instead, Postfix | runs procmail (or whatever) as nobody. Perhaps some day Wietse | will trust Postfix enough to run external commands as root. So, using postfix, procmail is NOT called with root privileges, so it can not read /etc/procmailrc as stated on the procmail man page. End of argument. :-) This is what I have been saying all along... please, read carefully what I said before replying. -- Cheers, Carlos Robinson