current rules for SpamAssassin from schaal @it


We regularly publish new rules for SpamAssassin. Most of the rules have a score from 5. You can use our Ruleset for free. Just add our update-Channel to your SpamAssassin-Config our use our Script to get new / updated Rules. Don’t forget to restart amavis after installing / updating rules.

SpamAssassin uses DNS-Checks to detect new Rules so you can run the script daily or even every hour.

Install our rules:

 sa-update --nogpg --channel sa.schaal-it.net

To keep the ruleset up-to-date, you can i.e. install a small shell-script in /etc/cron.hourly:

 cd /etc/cron.hourly && wget sa.schaal-it.net/sa-update && chown root.root sa-update && chmod 755 sa-update

This will install this script:

#!/bin/sh

# schaal @it
#
# Simple script to update SpamAssassin

SYSLOG_TAG=sa-update

compile=0

logger -d -t $SYSLOG_TAG "Start SA-Update"

sa-update --nogpg
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi


sa-update --nogpg --channel updates.spamassassin.org
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel sa.schaal-it.net
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

if [ $compile -eq 1 ]; then
	logger -d -t $SYSLOG_TAG "SA-Update found"
	sa-compile
	/etc/init.d/amavis restart
else
	logger -d -t $SYSLOG_TAG "No SA-Update found"
fi

To install additional rules, just add one or more new blocks just before

if [ $compile -eq 1 ]; then

 

sa-update --nogpg --channel updates.spamassassin.org
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel sought.rules.yerp.org
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi

sa-update --nogpg --channel spamassassin.heinlein-support.de
retval="$?"
if [ $retval -eq 0 ]; then compile=1; fi