When Sean advised Nick,
I'd advise if you're going to do this, do:
* conditions
{
DROPPRIVS=YES
SWITCHRC=$HOME/.procmailrc
}
Bart rejoined,
Dropping privileges is definitely good advice, but isn't there a danger
here that $HOME/.procmailrc is going to be executed twice? SWITCHRC will
cause procmail to read the new file "as if" it were still reading the
/etc/procmailrc, and then when it finishes it'll continue with the normal
execution of the user's .procmailrc. Ooops.
OK then:
:0
* conditions
{
DROPPRIVS=yes
SWITCHRC
}
will prevent that. But doesn't unsetting SWITCHRC (or setting it to
nothing, or setting it to /dev/null) inside /etc/procmailrc
automatically make procmail drop privileges? If it doesn't, it ought to.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail