Hi,
    I was trying to configure spam-assassin with procmail, and I find that although spamassassin marks the spam mails correctly with SPAM in the subject line, procmail is not moving it correctly to the spam folder - it continues to be in the inbox. Here's my procmail recipe :
 
MAILDIR=/home/logic/somik/
INCLUDERC=$MAILDIR/lists.rc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
:0fw
* < 256000
| spamassassin
 
:0:
* ^X-Spam-Status: Yes
spam
 
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
almost-certainly-spam
 
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
probably-spam
 
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0 H
* ! ^From[ ]
* ^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "
Note : The lists.rc file contains rules for the lists I am on, and if I move it down below the spam assassin rules, my normal filtering stops working.
 
I'd appreciate any assistance.
Thanks in advance.
 
Regards,
Somik

Reply via email to