Page 1 of 1

deleting spam

Posted: Mon Dec 03, 2007 10:20 am
by louiscastoria
I was wondering if there is a way I can delete mail if marked with a spam score greater than a certain value. I'm using scalix 10 and spamassassin.

Posted: Mon Dec 03, 2007 10:29 am
by Valerion
Spamass-milter can do this for you, or you can set up a rule on your mailbox that will evaluate the headers / subject.

Posted: Mon Dec 03, 2007 2:59 pm
by louiscastoria
1. How would this be done. Is it done by just adding the -b spam@mydomain.com
2. Does this work with spamd.

Posted: Tue Dec 04, 2007 3:57 am
by Valerion
In my spamass-milter config file I have a "-r 15", that will drop any emails with a score higher than 15.

I can't tell if it will work with spamd or not.

Posted: Wed Dec 05, 2007 10:24 am
by les
Valerion wrote:In my spamass-milter config file I have a "-r 15", that will drop any emails with a score higher than 15.

I can't tell if it will work with spamd or not.


definitely it does.

I use a particular version of spamass-milter, its packaged differently to the one in the usual 3rd party repos. The big difference is a wrapper script and it runs as a user called sa-milt.

spamass-milter is the "glue" which binds sendmail and spamd.

when sendmail calls spamass-milter it does so as the "sa-milt" user, which means it looks at /etc/sysconfig/spamass-milter for switches like -r 15 (although personally i set it to -r 8 and even lower ;) and applies them on the way through when it scans messages via spamd.

Thus if spamd returns a score of 16 the message is dropped.

Details of the rpm i use are here....get it from the url link below.

rpm -qip /home/template/filtering/spamass-milter-0.3.1-3.i386.rpm
Name : spamass-milter Relocations: (not relocatable)
Version : 0.3.1 Vendor: (none)
Release : 3 Build Date: Fri 16 Jun 2006 01:46:02 PM EST
Install Date: (not installed) Build Host: mail.cafga.com.au
Group : System Environment/Daemons Source RPM: spamass-milter-0.3.1-3.src.rpm
Size : 122436 License: GPL
Signature : (none)
URL : http://savannah.nongnu.org/projects/spamass-milt/
Summary : Sendmail milter for spamassassin
Description :
A Sendmail milter (Mail Filter) library that pipes all incoming mail
(including things received by rmail/UUCP) through the SpamAssassin,
a highly customizable spam filter.