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

Testing


Before going live, the system should be tested. The machine should be rebooted, and Amavisd and Postfix should be running. This can be tested with the ps command:

$ ps -ef | grep amavisd

amavis 27549 1 0 Jul18 ? 00:00:01 amavisd (master)
amavis 27554 27549 0 Jul18 ? 00:00:00 amavisd (virgin child)
amavis 27555 27549 0 Jul18 ? 00:00:00 amavisd (virgin child)
$ ps -ef | grep postfix

root 6657 1 0 Jul18 ? 00:00:00 /usr/lib/postfix/master
postfix 29918 6657 0 00:37 ? 00:00:00 pickup -l -t fifo -u
postfix 29919 6657 0 00:37 ? 00:00:00 qmgr -l -t fifo -u
root 30989 10059 0 01:16 pts/11 00:00:00 grep postfix

The standard SpamAssassin test emails should be sent to a test user:

$ cd /spamassassin-distribution-dir
$ mail [email protected] < sample-nonspam.txt
$ mail [email protected] < sample-spam.txt

The ham email should be delivered to the appropriate user on the original email server, and the spam email should be discarded or sent to the email address that was used when Amavisd-new was...