MailScanner Scan Subject
MailScanner at ecs.soton.ac.uk
Thu Apr 14 19:49:05 IST 2005
[ The following text is in the "windows-1252" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
You need to create a SpamAssassin rule that adds to the spam score of
the message. You then use the spam scoring required scores in
MailScanner.conf to make your target messages get treated as spam.
As an example of a rule, try this:
In /etc/MailScanner/spam.assassin.prefs.conf add this:
header MYRULE_1 Subject =~ /blah blah/i
describe MYRULE_1 The Subject: contains blah blah
score MYRULE_1 10.0
Then restart (not just reload) MailScanner
service MailScanner restart
After that if you get a message whose Subject: header contains "blah
blah" in any combination of upper/lower case, 10 points will be added to
the spam score of the message. Decide what you want to do with it by
using the Spam settings in /etc/MailScanner.conf.
For more info about the SpamAssassin rule structure, read "man
Mail::SpamAssassin::Conf" and look in the *.cf files which will be in
your SpamAssassin installation somewhere, often under /usr/lib/perl5
which you could search with
find /usr/lib/perl5 -name '*.cf' -print
If you find this helpful, please take a couple of minutes to add it to
the wiki documentation website at wiki.mailscanner.info.
Stephen Conway wrote:
>Is there a way for MailScanner to automatically tag something as spam based
>on the subject ? I.e. if subject is : blah blah , then it is spam . If so
>where do I set this up?
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner