SARE rules & RulesDuJour
Intro
In this article we will see how to perform a custom installation of SARE rules. You can find those nice rules here: http://www.rulesemporium.com/rules.htm
This installation is properly set for our tutorial on Installing Spamassassin ClamAv and Mailscanner on Bluequartz ... So if you don't know what we're talkin' about go there and read carefully.
SARE is a repository constantly updated of Spamassassin rules. RulesDuJour is a beautiful script that can update the choosen rules for you via a crontab command.
Installation of RulesDuJour
First of all we must install the update script. The process is quite simple. As root type:
cd /binwget http://sandgnat.com/rdj/rules_du_jour
chmod 700 rules_du_jour
Then we must create a new directory:
mkdir /etc/rulesdujourcd /etc/rulesdujour
Then we can create the config file:
pico configIn this file we put all the configuration options. Our file look like this:
TRUSTED_RULESETS="TRIPWIRE SARE_EVILNUMBERS0 SARE_RANDOM";SA_DIR="/etc/mail/spamassassin";
SA_RESTART="/etc/init.d/MailScanner restart";
Now we can run our first RulesDuJour update:
/bin/rules_du_jourThis script will download the rules specified in TRUSTED_RULESETS config option in /etc/rulesdujour/config
To add the script to crontab just type:
pico /etc/crontabAnd add the line:
00 23 * * * root /bin/rules_du_jourThat's done! RulesDuJour will update each date at 23:00 (pls choose another update time)
SARE
Now you must choose your SARE rules from their website and follow the instructions to add them to your TRUSTED_RULESETS config option.