Andrew Mercer
on this page

Mail

email-fundamentals/: concepts that apply regardless of MTA

  1. Email Architecture: MUA/MSA/MTA/MDA roles, store-and-forward, envelope vs headers, ports
  2. The SMTP Protocol: the raw conversation, reply and enhanced status codes, STARTTLS vs implicit TLS, AUTH, bounces
  3. DNS and Mail Routing: MX, PTR and FCrDNS, relaying vs final delivery, smart hosts, split-horizon DNS
  4. Email Authentication and Anti-Spam: SPF, DKIM, DMARC, sender requirements, MTA-STS/DANE, DNSBLs, greylisting
  5. Mailbox Formats and Delivery: mbox vs Maildir, local vs virtual mailboxes, aliases, Dovecot LMTP

postfix/: the Postfix MTA

  1. Overview and Architecture: the daemon pipeline, queues, postconf, lookup tables and the Berkeley DB migration, core identity settings
  2. Installation and Basic Configuration: install, a minimal main.cf, firewall, testing with mail/telnet/swaks
  3. Relaying Outbound Mail: null client, msmtp (e.g. feeding an existing containerized relay), Gmail/Mailgun/Proton/port 465 smart hosts, address rewriting, per-sender relays
  4. Virtual Domains, Mailing Lists and Virtual Mailboxes: forwarding domains, /etc/aliases lists, SQL + Dovecot LMTP, submission service, PostfixAdmin, auto-reply
  5. TLS Encryption: security levels, modern parameters, certificates, per-domain policy, DANE/MTA-STS, troubleshooting
  6. Security and Hardening: open relay testing, restrictions, postscreen, postgrey, header checks, rspamd, AUTH brute-force protection, checklist
  7. Administration and Queue Management: postqueue, postsuper, postcat, bulk operations, aliases, logs with and without syslog
  8. Troubleshooting: log severities, a catalogue of errors and fixes, debugging workflow
  9. Legacy Reference: Two-Host Local Network Setup: historical home-network relay setup, kept for reference

clients/: terminal and command-line mail clients

  1. The mail Command: mailx vs s-nail vs GNU Mailutils (and their conflicting -a flags), attachments, HTML, sendmail -t, cron, swaks
  2. Mutt: IMAP/SMTP, Gmail with app passwords or OAuth2, multiple accounts, passwords via pass, address books, offline Maildir, debugging
  3. Mutt and GPG: GPGME vs classic gpg.rc, gpg-agent/pinentry, autocrypt, troubleshooting
  4. NeoMutt: what the fork adds, migrating, sidebar, notmuch, header-cache backends
  5. Proton Mail Bridge: desktop and headless Bridge, Mutt/NeoMutt config, certificates, mbsync backups

webmail-and-groupware/: browser-based mail and all-in-one suites

  1. SquirrelMail: project status, install, conf.pl, hardening, migrating to Roundcube
  2. Zimbra: Architecture and Administration: components, licensing, install prerequisites, zmcontrol/zmprov/zmmailbox, the bundled Postfix, backups
  3. Zimbra: TLS Certificates and SNI: zmcertmgr, Let's Encrypt renewal, per-domain certificates with SNI, troubleshooting
in this section
* email fundamentals/
* mail clients/
* postfix/
* webmail and groupware/