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 2. Getting Email into the Queue

This chapter covers the input end of the qmail mail system. It focuses on the SMTP protocol and related protocols, and the details of how the tcpserver, qmail-smtpd, and qmail-queue programs provide that service.

qmail-queue and the Qmail Queue

The following diagram is a part of the overall structure of qmail described in Chapter 1.

The only way of getting email into the on-disk queue in qmail is to use the qmail-queue program. This is a simple program with a single task: take an email and store it in the on-disk queue.

Any program can use qmail-queue to inject a message into the queue, provided it can present the email message and the envelope information (the sender and the list of recipients) in the form that qmail-queue requires.

The on-disk queue is somewhat complicated. It is the communication and storage mechanism used for handing messages to the qmail-send component. The qmail-queue program handles the details of injecting messages into the queue...