Howtos Spam Assassin Rules Du Jour Configuration

From 5dollarwhitebox.org Media Wiki

Jump to: navigation, search

This is the basics on how to install and configure Rules Du Jour for Spam Assassin:


Contents

Reference:


Yeah, or you might just want to do the following:


linuxbox #] wget http://devel.5dollarwhitebox.org/scripts/install_rdj.pl

linuxbox #] perl install_rdj.pl --install


OR if its a Plesk box:

linuxbox #] perl install_rdj.pl --install --plesk


Get Rules Du Jour:

linuxbox] # wget http://sandgnat.com/rdj/rules_du_jour

linuxbox] # mv rules_du_jour /usr/local/sbin/rules_du_jour

linuxbox] # chmod 750 /usr/local/sbin/rules_du_jour


Configure Rules Du Jour

linuxbox] # mkdir /etc/rulesdujour

linuxbox] # vi /etc/rulesdujour/config


The following is a basic configuration for Rules Du Jour

SA_DIR="/etc/spamassassin"
MAIL_ADDRESS="root"
SINGLE_EMAIL_ONLY="true";
SA_RESTART="/etc/init.d/spamassassin restart"
TRUSTED_RULESETS="
        TRIPWIRE
        ANTIDRUG
        SARE_EVILNUMBERS0
        RANDOMVAL
        SARE_ADULT
        SARE_FRAUD
        SARE_BML
        SARE_SPOOF
        SARE_BAYES_POISON_NXM
        SARE_OEM
        SARE_RANDOM
        SARE_OBFU0
        SARE_SPAMCOP_TOP200
        "

TRUSTED_RULESETS lists the rules to update. You can find the full list at http://www.rulesemporium.com.


Plesk Configuration:

Plesk is a bit different, so pay attention to the changes:

SA_DIR="/usr/share/spamassassin"
MAIL_ADDRESS="root"
SINGLE_EMAIL_ONLY="true";
SA_RESTART="/etc/init.d/psa-spamassassin restart"
TRUSTED_RULESETS="
        TRIPWIRE
        ANTIDRUG
        SARE_EVILNUMBERS0
        RANDOMVAL
        SARE_ADULT
        SARE_FRAUD
        SARE_BML
        SARE_SPOOF
        SARE_BAYES_POISON_NXM
        SARE_OEM
        SARE_RANDOM
        SARE_OBFU0
        SARE_SPAMCOP_TOP200
        "


Run Rules Du Jour

linuxbox] # rules_du_jour


Crontab it

run 'crontab -e -u root' and add something similar to the following:

1 1 * * * /usr/local/sbin/rules_du_jour 2&>1 > /dev/null