Howtos Spam Assassin Rules Du Jour Configuration
From 5dollarwhitebox.org Media Wiki
This is the basics on how to install and configure Rules Du Jour for Spam Assassin:
Contents |
[edit]
Reference:
- SpamAssassin: http://spamassassin.apache.org/
- Rules Du Jour: http://www.exit0.us/index.php?pagename=RulesDuJour
- Rules Emporium: http://www.rulesemporium.com/
- Integrate SpamAssassin with Postfix: http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
Yeah, or you might just want to do the following:
- install_rdj.pl: http://devel.5dollarwhitebox.org/scripts/install_rdj.pl
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
[edit]
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
[edit]
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.
[edit]
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
"
[edit]
Run Rules Du Jour
linuxbox] # rules_du_jour
[edit]
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
