On Wed, 28 Jan 2004, LuKreme wrote:
In /etc/procmailrc
[ Stuff ]
:0
* ! ? test -f $HOME/.procmailrc
{
:0 fw
| /usr/local/bin/spamc
DROPPRIVS=YES
SpamAssassin tidbit: You almost certainly want to either drop privileges
BEFORE running spamc, or else call it as "spamc -u $LOGNAME". Unless you
are deliberately using "nobody"'s home directory (there is one?) as the
global SA config location.
:0:
* ^X-Spam-Status:(.*\<)?Yes
Mail/SPAM
:0:
$DEFAULT
}
[ more stuff ]
as I understand this, mail that is marked spam will be placed in
$HOME/Mail/SPAM and everything else will be delivered to $DEFAULT.
Looks right to me. A better approach than explicit delivery to $DEFAULT
may be to simply abort the file by unsetting HOST.
If the user has a .procmailrc defined, then "[ more stuff ]" will be
executed WITHOUT the privileges dropped.
That should be correct as well, because the whole block is skipped if
the user has his own .procmailrc.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail