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

Verifying the Installation


SpamAssassin can be tested by processing the sample emails. These emails are in the root of the SpamAssassin distribution directory. To test SpamAssassin, use the following commands:

$ spamassassin -t < sample-nonspam.txt | grep X-Spam
X-Spam-Checker-Version: SpamAssassin 3.0 (2004-07-16) on
X-Spam-Level:
X-Spam-Status: No, score=0.4 required=5.0 tests=LINES_OF_YELLING autolearn=no
$ spamassassin -t < sample-spam.txt | grep X-Spam
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.0.0-pre2-r22977 (2004-07-16) on
X-Spam-Level: **************************************************
X-Spam-Status: Yes, score=1002.6 required=5.0 tests=ALL_TRUSTED,DCC_CHECK,

The output from the command using sample-nonspam.txt should have X-Spam-Status: No, and that of sample-spam.txt should have X-Spam-Flag: Yes and X-Spam-Status: Yes.

SpamAssassin can verify its configuration files with the --lint flag and report any errors. In the following example, a score entry does not...