Simscan home : internet : mail : toaster : filtering : content filtering : SpamAssassin SpamAssassin performance

We love SpamAssassin!

Typically SpamAssassin is installed by running toaster_setup.pl -s filter. If you opted not to install it, you can just update your toaster-watcher.conf file and install it at any later time by running:

  • toaster_setup.pl -s spamassassin

SpamAssassin Web Site

SpamAssasssin SQL integration

In order to allow virtual users (as in Mail::Toaster), to have custom SpamAssassin preferences, you must set up SQL integration and store their user prefs in MySQL. See details on the SA per-user preferences page.

As of v3.02, you can also configure SpamAssassin to store its auto-whitelisting, and bayes databases in SQL. Configure the appropriate options in toaster-watcher.conf (install_spamassassin_sql, install_spamassassin_dbuser, and install_spamassassin_dbpass), and run the SpamAssassin setup command again. It will generate a custom sql.cf for SpamAssassin with the db as required and explained in the SpamAssassin docs.

If you are converting to bayes SQL, you probably want to preserve your existing bayes DB. You can do this by exporting to a backup and then importing that into your SQL tables. You do that by:

  • sa-learn --sync; sa-learn --backup > backupfile

Then update your SpamAssassin config file to use the SQL tables and run this:

  • sa-learn --restore backupfile; sa-learn --sync

How do I keep the SpamAssassin up to date?

On FreeBSD, you update your ports tree and then use portupgrade to upgrade SpamAssassin and all the ports it depends upon:

  • toaster_setup.pl -s ports
  • /usr/local/etc/rc.d/sa-spamd.sh stop
  • portupgrade -frR p5-Mail-SpamAssassin-X.XX
  • qmail cdb
  • /usr/local/etc/rc.d/sa-spamd.sh start

The X.XX must be replaced by the version of SpamAssassin you have installed. Use "pkg_info | grep spam" to determine this.

More SpamAssassin

See the following pages for a few more tips regarding SpamAssassin.


sub-sections
SpamAssassin performance
per-user preferences
SpamAssassin testing
SpamAssassin tuning

Last modified on 5/27/05.