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

Headers


SpamAssassin can write any header, but it always prepends X-Spam- to the configured name. The headers are defined in the /usr/share/spamassassin/10_misc.cf configuration file, using the add_header directive. The add_header directive has the following syntax:

add_header {spam | ham | all } header_name string

The add_header directive tells SpamAssassin that a header is being declared. The second part can be spam, ham, or all; this indicates that the header will be written if an email is spam, if it is ham, or alternatively all the time.

This is followed by the header name. This can be any alphanumeric tag that begins with an alphabetic character. When the header is written in an email, it is prefixed with X-Spam-, so a header configured with name CustomHeader would appear in an email as X-Spam-CustomHeader.

The tag can also include one or more text macros, for which SpamAssassin substitutes particular values. Here is a list of predefined macros:

Macro

Meaning

_YESNOCAPS_

"YES...