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

MAIL, RCPT, DATA

04

A transaction sets one reverse-path, one or more recipients, then transfers the message content.

RFC 5321 · § 3.3EXAMPLE
4 / 4
04
Finish and await the final reply.

Only the completion reply establishes acceptance of the message content.

MAIL, RCPT, DATAMAIL, multiple RCPT commands, DATA with a 354 intermediate reply, message data, and the final 250 appear as a progressively built transcript.One mail transactionIllustrative command / reply sequenceC: MAIL FROM:<sender@example>S: 250 OKC: RCPT TO:<a@example>S: 250 OKC: RCPT TO:<b@example>S: 250 OKC: DATAS: 354 Send contentC: Headers + body + <CRLF>.<CRLF>S: 250 AcceptedFinal 250 accepts responsibility for the content

Key idea: Keep each transaction state explicit.

Terms

Look up a term in the glossary ↗

Rules & examples
  • MAIL starts a transaction and sets the reverse-path; each RCPT adds an accepted recipient.
  • DATA begins content transfer only after a 354 intermediate reply.
  • The final reply after the end-of-data marker determines acceptance of that message for the accepted recipients.

Recipients can succeed or fail independently at RCPT. RSET abandons transaction state; QUIT ends the session. A session can carry multiple mail transactions.

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 ↗