12 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Automatically drop Spam
FromSent OnAttachments
mi...@palmspringairlines.usOct 13, 2005 2:24 pm 
Jay LeeOct 13, 2005 2:40 pm 
Rolan YangOct 13, 2005 5:40 pm 
Jay LeeOct 13, 2005 6:27 pm 
moussOct 13, 2005 6:37 pm 
PollywogOct 14, 2005 8:07 am 
moussOct 14, 2005 3:38 pm 
Chris PetersenOct 15, 2005 3:40 pm 
PollywogOct 15, 2005 5:18 pm 
Chris PetersenOct 15, 2005 7:17 pm 
David PeckMar 29, 2007 11:43 am 
David PeckMar 29, 2007 12:41 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Automatically drop SpamActions...
From:mouss (use@free.fr)
Date:Oct 13, 2005 6:37:00 pm
List:net.sourceforge.lists.courier-maildrop

mi@palmspringairlines.us a écrit :

Hi,

I'm using RH4 with qmail 1.05, vpopmail 5.4, courier-imap 4.0.4, spamassassin 3.1, with maildrop 1.8.1. I like to allow automatic delete for all email tagged with SPAM.

Problem is that it's not dropping any SPAM tagged emails.

In script /etc/maildroprc

**********************************

if (/^X-Spam-Status:.*YES/)

if you get it working, you'll drop messages with headers like:

X-Spam-Status: No, score=-1.638 required=5 tests=[BAYES_00=-2.599, ...

see the "YES" in BAYES?

either use X-Spam-Flag or be more precise: /^X-Spam-Status: Yes/

{ echo "Your email was REJECTED by our SPAM filter." DELTAG=1

this requires an old patch, that is anyway unsupported. Please use features that are documented on maildrop site.

} **********************************

Also tried

********************************** if (/^X-Spam-Status: *YES/) { echo "Your email was REJECTED by our SPAM filter." EXITCODE=100 }

don't discard spam blindly. instead, put it in a Junk folder. if (/^X-Spam-Status: Yes/) { exception { to "$DEFAULT/.Junk/" } }

This way, you still have the option to review it. if you can't review all of it, you can setup a cron that deletes messages that are too old (making spam expire after a week for instance).