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).