SARE Rules

SpamAssassin Rules Emporium (SARE) has a robust collection of SpamAssassin rules that can really help your spam detection rates.

Installation

Rules du jour
Rule_du_jour script is not at that link anymore. However, according to the SARE website (last checked June 27, 2009) the rules weren't being updated. Don't need to run rulesdujour each night until they start updating the rules again (if ever).
Download the rules du jour script that will update the SARE ruleset automatically:

cd /usr/local/bin
wget http://sandgnat.com/rdj/rules_du_jour
chmod ugo+x rules_du_jour

Create the config file, /etc/mail/rulesdujour. The TRUSTED_RULESETS can be modified to reflect the SARE rulesets that you want to use. At a minimum, it will need to contain:

SA_DIR="/etc/mail/spamassassin";
MAIL_ADDRESS="postmaster@<yourdomain>";
SINGLE_EMAIL_ONLY="true";
SA_RESTART="svc -t /service/spamd";
TRUSTED_RULESETS="SARE_REDIRECT_POST300 SARE_EVILNUMBERS0 SARE_BAYES_POISON_NXM SARE_HTML SARE_HEADER0 SARE_SPECIFIC SARE_ADULT SARE_BML SARE_FRAUD SARE_SPOOF SARE_RANDOM SARE_OEM SARE_GENLSUBJ0 SARE_UNSUB SARE_URI0 SARE_WHITELIST SARE_OBFU0 SARE_STOCKS";

Run the rules_du_jour script to download the first set of the rules:

/usr/local/bin/rules_du_jour

To regularly update the rules, add a cron entry (this example will update the rules at 1am each night):

echo "1 1 * * * /usr/local/sbin/rules_du_jour 2&>1 > /dev/null" > /etc/cron.d/rulesdujour
touch /etc/crontab

Credits

Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.

Recent Updates

  • 2 years 1 week ago
  • 2 years 1 week ago
  • 2 years 1 week ago
    php 8.x
  • 2 years 1 week ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff