No subject
Sat Oct 14 20:46:50 EDT 2006
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).
So, it seems for $HOME/.procmailrc, procmail su's to the owner of $HOME, but
not for /etc/procmailrc.
Ahh, further down the man page says this:
-m Turns procmail into a general purpose mail filter.
In this mode one rcfile must be specified on the com
mand line. After the rcfile, procmail will accept an
unlimited number of arguments. If the rcfile is an
absolute path starting with /etc/procmailrcs/ without
backward references (i.e. the parent directory cannot
be mentioned) procmail will, only if no security vio
lations are found, take on the identity of the owner
of the rcfile (or symbolic link). For some advanced
usage of this option you should look in the EXAMPLES
section below.
So, somehow we need to figure out how to get procmail to su to the
id of the mail recipient before processing the mail...
I'm still kind of stumped on how to do that though.
--
Seeya,
Paul
GPG Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE
If you're not having fun, you're not doing it right!
More information about the gnhlug-discuss
mailing list