Visual RFC.
ALL RFCs / RFC 5321
Read the RFC ↗
RFC 5321 / SMTP CONVERSATION

Greeting & extensions

03

The server greets the client. EHLO establishes the client identity and discovers optional capabilities.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 3.1 ↗
RFC 5321 · § 3.1EXAMPLE
4 / 4
Greeting & extensionsAn SMTP greeting and EHLO exchange progressively reveals a multiline capability response and the extensions the client can use.A capability conversationIllustrative extended SMTP sessionCLIENTSERVERS: 220 mx.example readyC: EHLO client.exampleS: 250-mx.exampleS: 250-SIZE 10485760S: 250 STARTTLSOnly advertised extensions can be selectedChoose only supported extensions
04
Choose supported features.

A client cannot assume an extension exists merely because it knows its name.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Use extensions only after capability discovery.

  • A normal session starts with a 220 greeting followed by EHLO.
  • The EHLO response advertises supported extension keywords and parameters.
  • HELO remains a compatibility fallback when EHLO is not recognized; it does not negotiate extensions.
DETAILS

RFC 5321 defines the extension framework. STARTTLS, AUTH, SIZE, and other individual extensions have their own specifications and requirements.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Envelope vs message
  2. DNS & the next hop
  3. Greeting & extensions
  4. MAIL, RCPT, DATA
  5. Lines & dot transparency
  6. Replies & later changes
  7. Relays, aliases & traces
  8. Queues, retries & timeouts
  9. Acceptance & failure reports
  10. Security & scope
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗