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.

RFC 5321 · § 3.1EXAMPLE
4 / 4
04
Choose supported features.

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

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

Key idea: Use extensions only after capability discovery.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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.

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

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

The envelope and the letter do different jobs.

Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

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

All chapters in RFC 5321

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗