SpamAssassin

From openSUSE

About

SpamAssassin works with mail clients as well as mail servers in order to identify spam. SpamAssassin does this by using a wide variety of local and network tests. The methods used in this software makes it hard for spammers to create workarounds. SpamAssassin is an Apache project.


HowTo Add extra rules to SpamAssassin


http://www.stearns.org has a weekly updated file to be used with SA to beef up its spam checking. Be warned this file is a few (currently four) megabytes and may slow up SA for usage.

Create the following file /bin/spam_update as root. I recommend copying this text, and then from a root console

  pico /bin/spam_update 

then paste these lines into the file. Press Ctrl-X and say Yes to save.

Make this file executable

  chmod 755 /bin/spam_update 

and now set it to run weekly by

  ln -s /bin/spam_update /etc/cron.weekly 


#!/bin/sh
! Script by AJR to update local spamassassin rules
cd /tmp
wget -c http://www.stearns.org/sa-blacklist/sa-blacklist.current
mv sa-blacklist.current 50_local.cf -f
mv 50_local.cf /etc/mail/spamassassin -f
rm 50_local.cf -f
/sbin/rcspamd restart


Sources: