[NTLUG:Discuss] Procmail
Richard Humphrey
richard at multicam.com
Mon Jul 7 11:36:31 CDT 2003
Well, I did not mention in my original post that I am using a global
procmailrc file... /etc/procmailrc and that I am attempting to move all
spam to /var/spool/mail/sharedspam
I want all spam regardless of user who it is sent, to go to the
sharedspam mailbox. I had this working before and then I reinstalled RH
8.0 and now cant get things working like they were.
-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
Behalf Of Rev. wRy
Sent: Monday, July 07, 2003 11:09 AM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] Procmail
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
_______________________________________________
https://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list