Andrew Mercer
on this page

Mail Clients

These guides cover the Mail User Agent (MUA) side of email: the programs that compose, send and read mail. In the terms used in Email Architecture, they sit at both ends of the pipeline. They submit mail to an MTA over SMTP, and they read it back over IMAP (or straight from a local mailbox file).

All of them are terminal or command-line tools. That makes them good for servers, for scripting, and for anyone who wants their mail setup to be plain text under version control.

  1. The mail Command (mailx, s-nail, GNU Mailutils) covers sending mail and attachments from scripts and cron. It explains the three incompatible mail implementations, sendmail -t, and testing with swaks.
  2. Mutt covers configuration from scratch: IMAP/SMTP, Gmail, multiple accounts, keeping passwords out of the muttrc, caching, and debugging.
  3. Mutt and GPG covers signing and encrypting with GPGME (modern) or the classic gpg.rc command set, plus gpg-agent and pinentry.
  4. NeoMutt explains what the fork adds (sidebar, notmuch, Lua and more), how it differs from Mutt, and how to migrate.
  5. Proton Mail covers using a Proton account from standard tools: - Proton Mail Bridge with Mutt and NeoMutt covers installing Bridge, running it headless or on a desktop, wiring it into Mutt/NeoMutt, and backing up a whole Proton mailbox. - Back Up a Single Proton Mail Folder pulls one Proton folder into a local Maildir with mbsync and verifies the result.
  6. msmtp vs. a Postfix Null Client compares the two ways to send host mail (cron, mail, scripts) through a containerized Postfix relay.

Which client should I use?

Need Use
Send an alert or a file from a script or cron job mail/s-nail, or sendmail -t directly
Test an SMTP server (AUTH, TLS, specific envelope) swaks
Read and write mail interactively in a terminal Mutt or NeoMutt
Full-text search across a large local archive NeoMutt + notmuch
Use a Proton Mail account from any IMAP client Proton Mail Bridge, plus the client of your choice
Back up one Proton folder locally Bridge + mbsync (Back Up a Single Proton Mail Folder)
Send host mail through a relay without a full MTA msmtp or a Postfix null client
in this section
* msmtp vs. a postfix null client: sending host mail through a containerized relay/
* mutt and gpg: signing and encrypting mail/
* mutt: a complete configuration guide/
* neomutt: the modernized mutt fork/
* proton mail/
* the mail command: mailx, s-nail and gnu mailutils/