Summary

  • RFC 6152, March 2011, Standards Track, defines “an extension to the SMTP service whereby an SMTP content body consisting of text containing octets outside of the US-ASCII octet range (hex 00-7F) may be relayed”.
  • The machinery is two words: the 8BITMIME EHLO keyword, and an optional BODY parameter on MAIL whose value is 7BIT or 8BITMIME. A server that advertises it “shall preserve all bits in each octet passed using the DATA command”.
  • The load-bearing rule is the refusal: against a server that never advertised it, a client “must not, under any circumstances, attempt to transfer a content that contains characters outside of the US-ASCII octet range”.

Seven bits and a prayer

SMTP was written for text in a seven-bit world, where a byte with the high bit set was somebody else’s ambiguity to resolve. Then message bodies filled up with accents, currency symbols, attachments and languages that do not survive the assumption.

The fix, standardised in March 2011 as RFC 6152 — more than sixteen years after RFC 1652 first tried it — did not change the wire format of mail. It added one sentence to the handshake: this server will keep every bit you hand it. Everything else stayed exactly where it was.

The handshake is the whole protocol

There is no version number anywhere in the exchange. A server advertises 8BITMIME in its EHLO response or it does not; the client puts BODY=8BITMIME on the envelope or it does not. Both sides then know precisely what the other will tolerate, for this message, on this hop.

That is the internet’s oldest upgrade pattern, and it stays popular because it never requires anyone to agree on a date. The bill arrives later: the old behaviour has to keep working forever.

The interesting half is the refusal

Almost every rule in RFC 6152 concerns the hop that does not cooperate. The client must not send the eight-bit content anyway. It must either convert the message to valid seven-bit MIME without losing information, or treat the barrier as a permanent delivery error.

Those two clauses explain a great deal about your inbox. Attachments still arrive wrapped in base64 because the downgrade path has to exist — and a downgrade path that must lose nothing is easiest to satisfy by never taking the short road at all.

Eight bits is not the same as binary, either. The extension still assumes lines, still caps them at 1000 octets, and still has no room for a NUL. That is why RFC 3030 had to bolt on CHUNKING and BINARYMIME back in 2000 — and why the timid path won anyway.

What a capability flag actually buys

Advertising a capability converts a guess into a statement. Without the flag, a sender either gambles that the far side tolerates high bits or encodes everything and hopes. With it, the sender knows — per hop, per message, no guessing.

The catch is that the flag is per hop, not per world. One server in the path that answers EHLO without the keyword is enough to push the whole message back into ASCII armour. That is why the armour never went away, and why a 2011 standard still governs the shape of the mail you send this afternoon.

One keyword, a very long shadow

RFC 6152 adds a keyword and a parameter. Its shadow is the shape of stored mail for the last few decades: content encoded to survive the most timid machine it might meet, on the theory that the most timid machine is always out there somewhere.

That is the trade the internet keeps making, and it is worth naming plainly. Capability negotiation lets the modern path be efficient. The requirement to degrade without loss keeps the old path alive at the same time. You get both, forever, and you pay for both.