On Thursday 29 May 2003 6:55 am, Carlos E. R. wrote:
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
Can you describe how you receive your email? fetchmail, getmail, other? and who is calling postfix? 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. I've used about every combination possible of the above and I have *never* used anything other than /etc/procmailrc. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 05/29/03 09:43 + +----------------------------------------------------------------------------+ "Beware of programmers who carry screwdrivers." Leonard Brandwein