Brian Harrell:
1. If it is possible, is there any special global variables needed to
put at the top of that file?
There is no server-wide .procmailrc file.
See at the start of 'man procmail':
[...] proc-
mail will, prior to reading $HOME/.procmailrc, interpret commands from
/usr/local/etc/procmailrc (if present). Care must be taken when creat-
ing /usr/local/etc/procmailrc, because, if circumstances permit, it
will be executed with root privileges (contrary to the $HOME/.proc-
mailrc file of course). [...]
The paths may be different on your system. Also check the WARNINGS
section.
If you want to use that .../etc/procmailrc, at least put
SHELL = '/bin/sh'
in the top of it, and insert a line with
DROPPRIVS = 'yes'
as early as possible.
But most things can be done by INCLUDERCs inside the user's
~/.procmailrc, see 'man procmailrc'.
You could let the user create a ~/procmail.cfg that may contain only a
single active line, something like
v s l
where the 'v' is anti-virus, the 's' is anti-spam, and the 'l' is for
sorting mailing list messages, and then force a ~/.procmailrc that looks
like
SHELL = '/bin/sh'
LOGFILE = "$_.log"
PM = `echo "$HOME/procmail.cfg"`
:0
* PM ?? v
{ INCLUDERC = '/path/PM_virus.rc' }
:0
* PM ?? s
{ INCLUDERC = '/path/PM_spam.rc' }
:0
* PM ?? l
{ INCLUDERC = '/path/PM_list.rc' }
--
Grtz, Ruud
____________________________________________________________
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