[Mimedefang] Spam assassin removing spam
Shawn Button
sbutton at dtjboulder.com
Wed Aug 28 14:29:01 EDT 2002
Great, I will put it in...thank you kindly.
Shawn
-----Original Message-----
From: mimedefang-admin at lists.roaringpenguin.com
[mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf Of David F.
Skoll
Sent: Wednesday, August 28, 2002 12:21 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Spam assassin removing spam
On Wed, 28 Aug 2002, Shawn Button wrote:
> I would simply like to modify the mimedefang filter to quarantine or
> dump completely anything spam assassin detects over a certain
threshold
> (say around 11 or so) instead of simply reporting it.
Very simple. In the sample filter is a line which looks like this:
my($hits, $req, $names, $report) = spam_assassin_check();
Immediately after that line, add this code:
if ($hits > 11) {
return action_discard();
}
That will discard the message. If you'd rather bounce it, use:
if ($hits > 11) {
return action_bounce("Sorry, you scored $hits on the
spam scale... rejected.");
}
Regards,
David.
_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
More information about the MIMEDefang
mailing list