How to filter certain spam

James Gray james at
Wed Sep 7 02:22:19 IST 2005

    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

On Wednesday 07 September 2005 10:03, Jon Miller wrote:
> Lately, I've been getting a heap of spam mail from various sources with the
> same content (see below), like to know the following:
> 1) is there a way to train MailScanner/SA to filter these e-mail

Yes -  run the following as the same user that MailScanner runs as:

sa-learn -p /path/to/spam.assassin.prefs.conf -spam <message>

"sa-learn --help" for all the options.  Just remember to always use your 
MailScanner spamassassin preferences file :)

> 2) is there a ruleset already done?

Not specifically, but using spamassassin 3.04 + my custom rules 
( I get a score of 21.8...high scoring spam.

> 3) where do I find out how to release qurantined mail.  When I try to
> release it the released mail never shows up and I'm not sure it stays in
> qurantine.

See the attached script.  I have it in /root/bin on my mail gateways which run 
sendmail so it's based on a standard sendmail+MailScanner directory structure 
and assumes you "quarantine as queue files" (MailScanner.conf).  The gist of 
it is:
1. Find the quarantined message
2. copy the QUEUE files from the quarantine folder to the outgoing mail queue.
3. Force a queue run to deliver outgoing mail.

Hope this all helps :)


"The whole problem with the world is that fools and fanatics are always so
certain of themselves, but wiser people so full of doubts."
 -- Bertrand Russell

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki ( and
the archives (

Support MailScanner development - buy the book off the website!

    [ Part 2, Application/X-ZIP  2KB. ]
    [ Unable to print this part. ]

More information about the MailScanner mailing list