[NTLUG:Discuss] Procmail
Rev. wRy
slot0k at pogox.org
Mon Jul 7 11:09:12 CDT 2003
Richard Humphrey wrote:
> I am trying to set up some spam filtering with SpamAssassin being called
> from procmail. Spamassassin is working fine tagging the email, but there
> is a problem in that procmail fails to move the mail to the correct
> place.
Why not just create a filter in your mail client that moves it to the
proper place based on the X-SPAM-STATUS header for pop clients and try
the below for IMAP clients.
> It appears that procmail is running as a user and not root.
> Shouldnt procmail run as root? I run top to see when procmail is
> invoked, and when it runs, it is being invoked by the user that is
> recieving the mail.
I believe this is normal.
> Is this normal behavior? I am having all kinds of
> failure issues with procmail not writing to /var/log/procmail.log etc
> because it isnt running as root.
Try this as your /home/$USER/.procmailrc :
LOGFILE=$HOME/proc.log
MAILDIR=$HOME/Mail
:0fw
* < 256000
| /usr/bin/spamassassin
:0:
* ^X-Spam-Status: Yes
$MAILDIR/spam
And of course make sure that $HOME/Mail/spam exists, and is owned by the
user (as well as .procmailrc)
> Richard Humphrey
Ry
More information about the Discuss
mailing list