Book Image

Qmail Quickstarter: Install, Set Up and Run your own Email Server

Book Image

Qmail Quickstarter: Install, Set Up and Run your own Email Server

Overview of this book

This book starts with setting up a qmail server and takes you through virtualization, filtering, and other advanced features like hosting multiple domains, mailing lists, and SSL Encryption. Finally, it discusses the log files and how to make qmail work faster. Qmail is a secure, reliable, efficient, simple message transfer agent. It is designed for typical Internet-connected UNIX hosts. Qmail is the second most common SMTP server on the Internet, and has by far the fastest growth of any SMTP server. Qmail's straight-paper-path philosophy guarantees that a message, once accepted into the system, will never be lost. Qmail also optionally supports maildir, a new, super-reliable user mailbox format.
Table of Contents (13 chapters)

Chapter 6. Filtering

It's been said before, and it's worth repeating: qmail is a very modular email architecture. Because of this modularity, it is relatively easy to alter the behavior of the overall system by wrapping the basic components or by inserting a script or program between them. Filtering email is a perfect example of the power of this design. This is done by filtering the communication between architectural components; so while filtering email is the primary operation discussed in this chapter, filtering architectural interfaces is the method by which this expansion or modification of the architecture is achieved.

Basic Filtering Architecture

The basic qmail architecture, trimmed down to just the parts relevant to delivery (and thus filtering) of email, is shown in the following figure:

Almost any of qmail's components can be wrapped and used for filtering purposes. Which components to wrap depends on the specific behavior desired. In many cases there are multiple ways of achieving...