Book Image

SpamAssassin: A practical guide to integration and configuration

Book Image

SpamAssassin: A practical guide to integration and configuration

Overview of this book

As a busy administrator, you know Spam is a major distraction in todays network. The effects range from inappropriate content arriving in the mailboxes up to contact email addresses placed on a website being deluged with unsolicited mail, causing valid enquiries and sales leads to be lost and wasting employee time. The perception of the problem of spam is as big as the reality. In response to the growing problem of spam, a number of free and commercial applications and services have been developed to help network administrators and email users combat spam. Its up to you to choose and then get the most out of an antispam solution. Free to use, flexible, and effective, SpamAssassin has become the most popular open source antispam application. Its unique combination of power and flexibility make it the right choice. This book will now help you set up and optimize SpamAssassin for your network.
Table of Contents (24 chapters)
SpamAssassin
Credits
About the Author
About the Reviewers
Introduction
Glossary

Training


When using the standard disk-based Bayesian database, SpamAssassin keeps a Bayesian database for each user account it is run under, not for each user it processes email for. The alternative is to use SQL; this is covered in Chapter 14.

Although Bayesian filtering is enabled by default, SpamAssassin will not use the filter until it has learned enough spam and ham emails to be able to make a decision when processing an email. SpamAssassin has an auto-learn facility, which allows emails to be used to train the Bayesian filter automatically. It also has command-line tools to allow a user or system administrator to train the Bayesian filter manually.

To use automatic learning, set the bayes_auto_learn flag to 1. This can be configured site-wide in the /etc/mail/spamassassin/local.cf file, and can be overridden in a user's ~/.spamassassin/user_prefs file. Two other configuration flags also affect auto-learning, and are the thresholds for learning ham and spam. These values are in the...