Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
SpamAssassin: A practical guide to integration and configuration

You're reading from  SpamAssassin: A practical guide to integration and configuration

Product type Book
Published in Sep 2004
Publisher Packt
ISBN-13 9781904811121
Pages 240 pages
Edition 1st Edition
Languages

Table of Contents (24) Chapters

SpamAssassin
Credits
About the Author
About the Reviewers
1. Introduction
1. Introducing Spam 2. Spam and Anti-Spam Techniques 3. Open Relays 4. Protecting Email Addresses 5. Detecting Spam 6. Installing SpamAssassin 7. Configuration Files 8. Using SpamAssassin 9. Bayesian Filtering 10. Look and Feel 11. Network Tests 12. Rules 13. Improving Filtering 14. Performance 15. Housekeeping and Reporting 16. Building an Anti-Spam Gateway 17. Email Clients 18. Choosing Other Spam Tools 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:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}

Macro

Meaning

_YESNOCAPS_

"YES...