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)

qmail-send and the Qmail Queue


The primary function of the on-disk queue is to serve as a reliable storage and signaling mechanism for the qmail-send program, which is the heart of the qmail queuing system. The qmail-send program's most fundamental task is to make the primary routing decision: whether a given email should be delivered locally or remotely. This decision is made exactly once per recipient, and is stored in the queue with the email.

The qmail-send program can be thought of as a military general, commanding the qmail delivery army. As a general, it has two sergeants: qmail-lspawn and qmail-rspawn. Depending on whether a given email should be delivered locally or remotely, delivery commands for that email are given to either qmail-lspawn (for local deliveries) or qmail-rspawn (for remote deliveries). Like qmail-send, these two programs make key decisions and then delegate responsibility to the foot soldiers of the qmail delivery army: qmail-local and qmail-remote. The qmail...