Docs
Read the manual.

Documentation

How email works, why mail servers are so easy to get wrong, and how to install and run REST Mail.

A guide to how email actually works: the protocols, the security layers on top of them, and the mistakes that turn a mail server into someone else's spam machine. It is useful whatever server you run. Every claim in it has a source.

Start at the front page, or go straight to a chapter:

How email works

  • The journey of a message: What happens between pressing Send and the message arriving, hop by hop, and who is responsible for it at each step.
  • DNS for email: How a server finds where to deliver mail, the records every mail domain publishes, and the DNS mistakes that send mail nowhere.
  • SMTP as a conversation: The commands and replies two mail servers exchange, line by line, what the reply codes mean, and how to hold the conversation yourself.
  • The message itself: What an email is made of: the envelope that routes it, the header the reader sees, and the MIME parts that carry text, HTML and attachments.
  • Bounces, queues and retries: What a mail server does when delivery fails: how long it keeps trying, how it tells the sender, and how bounces themselves become abuse.
  • Reading mail: POP3, IMAP, JMAP and Sieve: How mail apps get mail out of the server, why there are three protocols for it, and how Sieve rules sort mail before anyone reads it.
  • Finding the server: autoconfig, Autodiscover and SRV: How a mail app turns an email address into server names, ports and security settings, and why a wrong answer here can send passwords in the clear.

The security layers, one at a time

How it goes wrong

The landscape, and where REST Mail fits

Reference

  • Glossary: Every term this guide uses, in a sentence, with the chapter that explains it.
  • Check your own server: a checklist: The checks to run on any mail server, in order, with the commands to run them and the chapter that explains each.

These live with the code, on GitHub, and change with it.

  • Installing: the ways to install REST Mail, and what each one needs.
  • The manual: for operators and developers. Settings, endpoints and day-to-day tasks.
  • Everything else: filters, DNS providers, PROXY protocol, bans, and what each document is for.