Summary

  • SMTP AUTH let a client and server negotiate a SASL mechanism before a mail transaction, so a submission server could hand relay rights to an authenticated, authorized identity instead of to any machine that happened to reach port 25.
  • Its genius was restraint: a successful login settled submission at one session boundary, while the envelope sender, the asserted original submitter, the header author and the message body stayed separate claims.

The old gate knew the connection, not the traveler

For most of the 1990s, an email server was the most trusting host on the Internet. It looked at the address connecting to it, decided whether to accept mail for local recipients, and — if the mood and the configuration allowed — relayed onward for anyone who asked. That worked while trust followed a small network or a fenced-off campus. It turned dangerous the moment a public server began reading mere reachability as permission to send.

Source-address rules were a clumsy answer for a moving target. A traveler could hold a perfectly valid account and still show up from an unfamiliar network; a machine sitting inside an allowed range was not necessarily the person entitled to use a given sender identity. POP-before-SMTP tried to borrow a recent login from another protocol, but it stitched two sessions together with an address and a timer rather than with the act of submission itself.

The 1999 SMTP Authentication extension — later superseded by RFC 4954 — dragged the question inside SMTP where it belonged. A server advertised AUTH in its EHLO reply alongside a list of SASL mechanisms. A client picked one and ran its challenge-and-response exchange before opening a mail transaction. Success produced a single, durable session fact: this server had accepted an authentication exchange and derived an authorization identity under local policy.

That fact could justify relay access. It said nothing about who wrote the message.

Authentication and authorization were different names

SASL supplied the distinction that makes the whole system work. The authentication identity belongs to the credentials — the account, certificate or principal the server actually verifies. The authorization identity is the role the client asks permission to act as. The server then decides whether the credential-bearing identity may assume that role.

None of this is ceremony. One administrator may run a shared service account. One mail queue may authenticate as a server while relaying messages that many users originally submitted. A delegated assistant may be cleared to send for one mailbox and barred from another. A stolen credential may authenticate flawlessly while requesting an action it was never meant to perform.

So SMTP never equated a login string with MAIL FROM, the visible From header or a human author. It made the authorization decision explicit enough for the receiving server to enforce. The credential answers “who established this session under this mechanism?” Local policy answers “what may that identity do here?” The envelope and the content pose later questions entirely.

Submission became its own boundary

RFC 6409 turned the logic into a distinct service. Port 587 marks message submission from a Mail User Agent to a Message Submission Agent. The MSA takes a new message from a user-facing client, fixes or rejects certain local errors, then delivers it or relays it into the MTA network. Public transfer between MTAs remains a different relationship with different rules.

By default an MSA must reject the MAIL command with an authentication-required status when the session lacks SMTP AUTH or another independently established authorization, such as a protected subnet. That is narrower than demanding that every relay on the Internet authenticate every upstream peer as a user. It puts strong admission policy exactly where the provider and the submitting client have a direct relationship.

The boundary made roaming practical. A client no longer had to appear from its provider’s access network to prove entitlement; it could authenticate over the submission service and receive only the relay rights attached to that account. Meanwhile an inbound MTA could keep accepting mail for its own domains without turning into an open relay for arbitrary destinations.

The authority belongs to the MSA’s policy. IANA’s registry can assign the AUTH keyword and SASL mechanism names. It cannot decide whether a credential may send as a finance mailbox, run a mailing list or relay to the whole Internet.

One session could carry several sender identities

RFC 4954 added a second use of the word AUTH: an optional parameter on MAIL FROM. The AUTH command authenticates a session. The AUTH= envelope parameter ties one message to the identity said to have submitted it to the delivery system.

Those two values need not match. The standard explicitly allows one authenticated identity to carry messages for many authorized identities — a queue-processing server is the cleanest example. The relay logs in as itself, yet each message may retain a different original submitter. That is delegation, not contradiction.

The rule also gives uncertainty a home. AUTH=<> means the original submitter is unknown or insufficiently authenticated. A receiving server must not paper over that gap by pretending the current authenticated relay was the original author. If an upstream assertion is not trusted, the honest value is unknown — even though the upstream connection authenticated perfectly well.

Among cooperating agents in a trusted environment, a server may preserve the supplied submitter mailbox when it relays onward. Outside that relationship, the syntax creates no trust. A mailbox inside AUTH= is an assertion whose authority comes from the authenticated upstream and the receiver’s configured policy, not from the angle brackets.

Encryption protected the exchange, not the meaning

Authentication mechanisms do not all guard credentials equally. RFC 4954 requires servers to support a configuration that withholds plaintext-password mechanisms unless TLS or another protective layer is active. The advertised mechanism list may change after STARTTLS, because a mechanism unsafe in cleartext can become acceptable inside a protected channel.

Modern submission guidance recommends TLS for all traffic between user agents and submission servers. Port 587 commonly pairs submission with STARTTLS; port 465 begins implicit TLS before a single SMTP command. Correct certificate validation tells a client which server receives the credential, while encryption stops a passive observer from reading it.

Those properties are substantial but bounded. TLS can protect one connection. SASL can verify a credential and sometimes negotiate its own security layer. Neither proves that the person named in the visible header wrote the text, that the message stayed unchanged after the submission boundary, or that every later relay used encryption. RFC 4954 says the distinction plainly: SMTP AUTH authenticates submission, not authorship of message content.

The trace recorded a hop, not a biography

After successful authentication, a server can use registered Received transmission tokens such as ESMTPA or ESMTPSA. They record that SMTP AUTH — or SMTP AUTH plus TLS — applied when that server accepted that hop. This is genuinely useful operational evidence. It can separate an authenticated submission path from unauthenticated inbound transfer and help diagnose abuse or policy failure.

A trace token does not make earlier lines trustworthy or later hops secure. It records what one server says happened at its boundary. The consumer still needs to know which server produced the field and whether that server sits inside the administrative trust domain. Hop evidence turns dangerous when a filter promotes it into a universal identity claim.

The same restraint applies to status codes. A 235 reply records successful authentication. A 530 refusal says the requested action requires authentication. A 535 reply says the presented credentials were invalid or insufficient. None of them says a header address is true or that a message deserves delivery. Admission, sender authorization, content authenticity and recipient policy remain separate decisions.

A registry could standardize choices without choosing accounts

SMTP AUTH leaned on two registries to keep extension growth interoperable. The SMTP registry records the AUTH extension and its command and parameter surfaces. The SASL registry records mechanism names with references and usage status. A server can advertise a list a client understands without hard-wiring one permanent password method into SMTP.

Replaceability was itself a security feature. A mechanism can grow limited or obsolete while the SMTP extension survives. A stronger mechanism can be registered without redesigning every application protocol that uses SASL. The common layer names the choice; local operators decide what to offer, clients decide what to accept, and both sides live with the consequences of stale configuration.

The registries run no account database. They do not grant relay rights, map credentials to mailboxes or certify the person behind a message. Their authority ends at common vocabulary and references. Running systems keep the final authorization decision.

The useful login was the one that stopped at the gate

SMTP AUTH closed a structural gap. Mail submission needed a portable way to recognize a client without mistaking its current network address for its identity. SASL supplied replaceable authentication mechanisms and a clean line between credentials and permitted action. The submission protocol planted that relationship at a provider-controlled boundary. The per-message parameter preserved an asserted submitter only when trust justified it — and preserved uncertainty when it did not.

The design works because a successful login stays smaller than a signature. It can open relay access, select a policy set and create auditable hop evidence. It cannot certify every sender field, human intention, content byte or later relay. The credential never signed the message. It proved just enough for one server to decide whether to let the message in.

Sources