SpamAssassin - Rules du jour on CentOS/RHEL 4

categories:

Download the script (functional for me as of today with SpamAssassin 3.1.8) : wget http://blog.wains.be/pub/rules_du_jour.gz -O /usr/local/bin/rules_du_jour.gz && gzip -d /usr/local/bin/rules_du_jour.gz

I always find it difficult to download the script (site down, etc), so I put my current script online.

Set the exec bit : chmod +x /usr/local/bin/rules_du_jour

Create the config file : mkdir /etc/rulesdujour Create and edit /etc/rulesdujour/config :

TRUSTED_RULESETS="SARE_ADULT SARE_STOCKS SARE_WHITELIST SARE_RANDOM SARE_EVILNUMBERS0 SARE_BML TRIPWIRE" SA_DIR=/etc/mail/spamassassin EMAIL_RDJ_UPDATE_ONLY= SINGLE_EMAIL_ONLY=true MAIL_ADDRESS=your@address.com SA_LINT="/usr/bin/spamassassin --lint" SA_RESTART="/etc/rc.d/init.d/spamd restart" TMPDIR="${SA_DIR}/RulesDuJour"

Set up a crontab : 42 00 * * * (/usr/local/bin/./rules_du_jour)

Anytime the rules are updated, you get a notification email.




Thanks for reading this post!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!