Summary
- RFC 1869, November 1995, introduced the EHLO greeting: a client supporting service extensions starts a session with EHLO instead of HELO, and a successful reply is a 250 whose lines each carry "a keyword and, optionally, one or more parameters" — the list of what that server can do.
- The same memo says "a client SMTP must not cache any information returned if the EHLO command succeeds", because it "must issue the EHLO command at the start of each SMTP session if information about extended facilities is needed". A server without extensions answers EHLO with 500 and is told to stay in the same state, which lets a client fall back to HELO.
A greeting is a feature list
Before 1995 SMTP had one way to start a conversation: HELO, a name, and a hello. The protocol had no vocabulary for "I also do this", and every extension had to be invented as an addition to a fixed grammar. RFC 1869 changed the greeting into a place where a server states what it supports, one keyword per line, with parameters where a keyword needs them.
The design is deliberately boring. A keyword is an alphanumeric word with hyphens, a parameter is anything printable that is not a space, and the reply is "normally ... a multiline reply" in the ordinary SMTP form. Nothing new is added to the transport; the extension lives in the text of a 250.
The offer is per session
The interesting rule is the one about memory. Having established that a server will list its capabilities, the memo refuses to let a client keep the list: "a client SMTP must not cache any information returned if the EHLO command succeeds", and it has to send EHLO again at the start of every session if it wants to know what is available.
That single line turns a capability list into a fresh statement rather than a fact about the server. A machine can be upgraded between two sessions, downgraded by an operator, or be one of several servers sharing a name. Caching the greeting would make a client confident about a configuration that may have changed since.
Falling back, badly and well
Backwards compatibility is handled by making the new greeting fail honestly. A server that conforms to the old specification without extensions "will not recognize the EHLO command and will consequently return code 500", and the memo adds that it "should stay in the same state after returning this code" — nothing has happened, so the client may simply say HELO and carry on as if nothing had been tried.
The memo also records what happened when implementations got this wrong, in a passage that could only have been written by someone reading server logs: some servers "will not accept a HELO command after EHLO has been sent and rejected", and the workaround is to send RSET after the rejection and then HELO — though "many implementations will return a failure code ... in response to the RSET" as well. Graceful degradation was specified; the path back was not always open.
What the keyword list changes about authority
An extension list is a claim by the server, made to whoever asked, at the moment of asking. It is not a registry entry, not a version number and not a negotiation: the client reads what is offered and may use it. The memo's grammar has room for parameters, so an extension can advertise a limit as well as a presence.
That shape puts the authority in an unusual place. The specification defines how a capability is announced and when the announcement expires; the extensions define what each keyword means; and the client decides what to do with a list that it is forbidden to remember. Nobody certifies the list, and the only check available is that using an unoffered keyword will fail.
A protocol that learned to introduce itself
Twenty years of SMTP extensions were built on this: eight-bit transports, authentication, encryption, larger messages, chunked bodies, delivery status notifications. None of them needed a new greeting command or a version bump in the protocol's name; each added a keyword and a rule about what a client may then send.
The cost of that design is the thing the memo is careful about. An offer that must be renewed every session is an offer that can change every session, and a client that keeps a stale copy is trusting a memory the protocol told it not to keep. The greeting became a place where a server introduces itself, and the introduction is only good until the connection closes.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






