Introduction
Total Page:16
File Type:pdf, Size:1020Kb
Life with qmail Life with qmail Table of Contents 1. Introduction........................................................................................................................................1 1.1. Audience..............................................................................................................................1 1.2. What is qmail?.....................................................................................................................1 1.3. Why use qmail?...................................................................................................................1 1.4. History.................................................................................................................................2 1.5. Features................................................................................................................................2 1.6. Related packages..................................................................................................................4 1.7. Architecture.........................................................................................................................5 1.8. License.................................................................................................................................5 1.9. Comparison with other MTA's............................................................................................5 1.10. Documentation...................................................................................................................5 1.11. Support...............................................................................................................................7 2. Installation........................................................................................................................................11 2.1. Installation Issues...............................................................................................................11 2.2. Preparation.........................................................................................................................12 2.3. System requirements..........................................................................................................12 2.4. Download the source.........................................................................................................13 2.5. Build the source.................................................................................................................13 2.6. Install ucspi-tcp..................................................................................................................17 2.7. Install daemontools............................................................................................................17 2.8. Start qmail..........................................................................................................................18 2.9. Test the Installation............................................................................................................26 3. Configuration...................................................................................................................................29 3.1. Configuration Files............................................................................................................29 3.2. Relaying.............................................................................................................................30 3.3. Multiple host names...........................................................................................................31 3.4. Virtual domains..................................................................................................................32 3.5. Aliases................................................................................................................................32 3.6. qmail-users.........................................................................................................................33 3.7. Spam Control.....................................................................................................................34 3.8. Virus Scanning...................................................................................................................34 4. Usage.................................................................................................................................................35 4.1. .qmail files.........................................................................................................................35 4.2. Sending messages..............................................................................................................37 4.3. Environment Variables......................................................................................................38 5. Advanced Topics..............................................................................................................................41 5.1. procmail.............................................................................................................................41 5.2. POP and IMAP servers......................................................................................................41 5.3. POP and IMAP clients.......................................................................................................44 5.4. Multi-RCPT vs. Single RCPT delivery.............................................................................45 5.5. VERP.................................................................................................................................46 5.6. Troubleshooting.................................................................................................................46 5.7. Big Servers.........................................................................................................................49 5.8. Migrating from Sendmail to qmail....................................................................................49 5.9. Mailing List Managers.......................................................................................................49 5.10. Patches.............................................................................................................................50 i Life with qmail Table of Contents 5. Advanced Topics 5.11. QMTP..............................................................................................................................52 5.12. Rejecting Invalid Recipients During SMTP Dialogue....................................................52 5.13. TLS and STARTTLS.......................................................................................................52 A. Acknowledgments...........................................................................................................................53 B. Related Packages.............................................................................................................................55 B.1. dot-forward........................................................................................................................55 B.2. fastforward........................................................................................................................55 B.3. ucspi-tcp............................................................................................................................55 B.4. daemontools......................................................................................................................56 B.5. qmailanalog.......................................................................................................................56 B.6. rblsmtpd.............................................................................................................................56 B.7. serialmail...........................................................................................................................57 B.8. mess822.............................................................................................................................58 B.9. ezmlm................................................................................................................................58 B.10. safecat..............................................................................................................................58 B.11. djbdns..............................................................................................................................58 B.12. maildrop..........................................................................................................................59 B.13. syncdir.............................................................................................................................59 C. How Internet Mail Works..............................................................................................................61 C.1. How a message gets from point A to point B...................................................................61 C.2. More information..............................................................................................................62 D. Architecture.....................................................................................................................................65 D.1. Modular system architecture.............................................................................................65