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

We love SpamAssassin!

Typically SpamAssassin is installed by running -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:

  • -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 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:

  • -s ports
  • /usr/local/etc/rc.d/ stop
  • portupgrade -frR p5-Mail-SpamAssassin-X.XX
  • qmail cdb
  • /usr/local/etc/rc.d/ 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.

SpamAssassin performance
per-user preferences
SpamAssassin testing
SpamAssassin tuning

Last modified on 5/27/05.