Custom SA rule FAQ addition.

Stephen Swaney steve.swaney at FSL.COM
Tue Feb 24 21:34:55 GMT 2004

> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Hancock, Scott
> Sent: Tuesday, February 24, 2004 4:11 PM
> Subject: Re: Custom SA rule FAQ addition.
> >
>  >Available at:
>  >
>  >
>  >Requires only minor modifications to work perfectly with MailScanner.
>  >
>  >Steve
>  >Fortress Systems Ltd.
>  >steve.swaney at
>  >
> Care to contribute the minor mods?

No problem. The lines to check and modify are:

[SKS] Select the SA rule sets you want to download:
# IMPORTANT: Edit this line to choose which RuleSets to update
[ "${TRUSTED_RULESETS}" ] || \

[SKS] Typically this is /etc/mail/spamassassin on a MailScanner System
#### Local SpamAssassin/system Settings ####
#### Modify these to match your system. ####
[ "${SA_DIR}" ] || SA_DIR="/etc/mail/spamassassin";      # Change this to
your SA local config

[SKS] You'll probably want to set this to "true"
[ "${SINGLE_EMAIL_ONLY}" ] || \
    SINGLE_EMAIL_ONLY="";                           # Set this to "true" to
send only one notification
Place the script in cron.

[SKS] This needs changing for MailScanner.
[ "${SA_RESTART}" ] || \
    SA_RESTART="/etc/init.d/MailScanner reload";  # Command used to restart

To be really tidy search for the lines containing:

        restarting SpamAssassin

and change to :)

        restarting MailScanner

run the script from the command line before adding to a daily cron job.

Fortress Systems Ltd.
steve.swaney at

> I've just used the script.  I did get the rule downloaded however; the
> rules are not being called with Mailscanner.
> I see Julian (in another posts) suggests adding custom rules to
> spam.assassin.prefs.conf.  If I add them here without scoring
> adjustments, will the scoring in the cf file be used?
> It seems this script is aimed and SA config files only.  The addition is
> not being made and I don't understand how the rules are supposed to be
> incorporated into SA.  I expected to see them in a file but
> they are neither in /etc/spamassissin/ nor
> /etc/mail/spamassassin/
> Thanks
> Scott

This message has been scanned for viruses and
dangerous content by Fortress Secure Mail Gateway
and was found to be clean.

Fortress Systems Ltd. -

More information about the MailScanner mailing list