Email, explained · The landscape, and where REST Mail fits

Efforts to modernise email: JMAP, end-to-end encryption, and others

Forty years of attempts to improve email, from new standards inside the system to proposals to replace it, what each solved, where each stands today, and how they relate to REST Mail.

Email is older than the web, and almost every part of it has been improved, or someone has tried. Those efforts fall into two kinds: upgrades inside the system, which every server can adopt one at a time while still talking to the rest; and replacements, which ask everyone to change at once. The first kind has mostly succeeded. The second has mostly not, for the same reason email itself has survived: anyone can still send mail to anyone.

The diagram's source is standards.workflow.json.

Security, added one layer at a time. STARTTLS (1999), SPF (2006), DKIM (2007), DMARC (2015), DANE (2015), MTA-STS and TLS-RPT (2018), ARC (2019), and DMARC as a standard in 2026. Each closed a real hole while every server that ignored it kept working. Part 2 of this guide covers each; Why the security layers are so hard covers the cost of having so many.

Cleartext retired. RFC 8314 (2018) declared "Cleartext Considered Obsolete" for mail apps, and the large providers now refuse ordinary passwords from them (Who may send).

Mail for every language. Internationalised email (RFC 6531, 2012, and its companions) allows addresses and headers in any script, so a user need not have an ASCII address at all.

JMAP, a modern protocol for mail apps. RFC 8620 and RFC 8621 (2019) replace IMAP's long-lived connections and many round trips with batched JSON over HTTPS, a "changes since" model and push. It is implemented by Fastmail, Cyrus IMAP, Stalwart, Apache James and others, and by a growing list of apps (jmap.io), but most desktop mail apps still speak only IMAP (Reading mail).

Brand logos: BIMI. Brand Indicators for Message Identification let a domain publish a logo that providers may show beside its mail. It is "a display signal on top of strong authentication": "At a minimum, BIMI requires DMARC alignment, and many providers also require a valid Certificate (VMC or CMC) proving rights to the logo" (BIMI Group). Its value to the system is that it gives brands a reason to move DMARC to enforcement.

Everything above protects mail in transit, between servers. The servers themselves can read it. Encrypting it so that only the recipient can read it is an older and harder problem:

  • S/MIME (RFC 8551, version 4.0 in
    1. uses certificates from certificate authorities, and is common inside organisations that issue them.
  • OpenPGP (RFC 9580, revised in
    1. uses keys people manage themselves.
  • Autocrypt "is a set of guidelines for developers to achieve convenient end-to-end-encryption of e-mails", using OpenPGP, in which mail apps exchange keys automatically in ordinary messages (autocrypt.org).
  • Delta Chat builds a messenger on top of email and Autocrypt, with "Audited end-to-end encryption safe against network and server attacks" (delta.chat).

All of them face the same obstacles: finding the recipient's key, managing keys across devices, and the fact that encrypted mail cannot be searched or filtered by the server.

  • Internet Mail 2000, proposed by D. J. Bernstein, turned delivery around: "Mail storage is the sender's responsibility", and the receiver picks the message up from the sender's server; with each message's delivery status in the sender's own archive, "There's no need for bounces" (cr.yp.to/im2000). It would also require every server and every client to change at once, and it was not adopted. The lesson: a change that works only when everyone adopts it at once is very hard to make on an open system where anyone can still send mail to anyone.

REST Mail is an upgrade inside the system, not a replacement:

  • It speaks SMTP, IMAP and POP3 to everyone, so it can replace one server at a time without anyone else changing.
  • It adopts every in-system standard this guide describes, and tracks where it does not yet: DANE (#725), JMAP (#720), reading DMARC reports (#730).
  • Between two REST Mail servers, it upgrades the delivery itself: the RESTMAIL protocol delivers over HTTPS with verified endpoints, falling back to ordinary SMTP for everyone else. That is the same shape as every successful upgrade before it: better between those who support it, compatible with everyone who does not.