Free trial The cheapest email marketing platform: try Moosend free for 30 days, no credit card. Don't miss your seat. The cheapest email marketing platform Start free trial →
BLACK FRIDAY 2026ONE-TIME OFFER Lifetime deal. Pay once. Credits refilled every year, for life. From $99. ENDS IN   Claim yours →

RFC 821: Simple Mail Transfer Protocol

RFC 821 (1982) defined SMTP. The commands it created, the ones that did not survive (SEND, SOML, SAML, TURN), and a side-by-side comparison with today's RFC 5321.

Alaa Touil
Email infrastructure specialist, 8+ years in SMTP and deliverability
4 min read Updated Nov 9, 2026 238 views
RFC 821 Simple Mail Transfer Protocol - SMTPedia reference
⚠ Obsoleted by RFC 2821. New implementations should reference the current version.
RFC 821
Simple Mail Transfer ProtocolObsoleted
Domain
SMTP
Published
August 1982
Obsoletes
RFC 788
SMTP relevance
Historical

↗ Read on rfc-editor.org

What this RFC defined

RFC 821 defined the Simple Mail Transfer Protocol in 1982, written by Jon Postel. It established the core SMTP command set (HELO, MAIL FROM, RCPT TO, DATA, QUIT, RSET, VRFY, EXPN) and the three-digit reply code system (220, 250, 354, 550) that remains in use on every mail server in the world today, more than four decades later.

Where you would have seen it in practice

The fundamental SMTP conversation that every email server performs (EHLO, MAIL FROM, RCPT TO, DATA, dot, QUIT) is the descendant of the protocol defined in RFC 821. The reply codes in your MTA logs and bounce messages follow the three-digit structure Postel defined here. RFC 821 is one of the most consequential networking RFCs ever written, having enabled global email for over four decades without fundamental change to the command set.

How it connects to other RFCs

RFC 821 obsoletes RFC 788, which had itself replaced RFC 780 and, before it, RFC 772. It was obsoleted by RFC 2821 in 2001, which was then obsoleted by RFC 5321 in 2008. The evolution chain: RFC 772 to RFC 821 to RFC 2821 to RFC 5321. The SMTP command set in RFC 821 is almost entirely preserved in RFC 5321, testament to Postel’s original design.

Current status

RFC 821 was obsoleted by RFC 2821 in April 2001. It is preserved as a foundational historical document. The SMTP protocol it defined, with only incremental updates over 40 years, continues to carry virtually all of the world’s email traffic. Reading RFC 821 is a worthwhile exercise for understanding where SMTP came from.

The commands defined in RFC 821

RFC 821, published in August 1982 by Jon Postel, established the SMTP command vocabulary that is still recognizable in every mail server today: HELO, MAIL FROM, RCPT TO, DATA, RSET, VRFY, EXPN, HELP, NOOP, QUIT, and TURN. It also defined the numeric reply codes in their now-familiar three-digit format, where the first digit signals the class of response (2xx success, 4xx transient failure, 5xx permanent failure) and the remaining digits provide detail. This coding scheme is the reason every bounce message you receive follows the same grammar decades later.

Where RFC 821 remains relevant

Any log line, protocol trace, or debugging tool that shows raw SMTP conversation will look identical to what RFC 821 described. When Postfix, Exim, Sendmail, or a cloud MTA emits the “220 mail.example.com ESMTP ready” greeting and accepts a “MAIL FROM” envelope command, they are following the syntax RFC 821 codified in 1982. Understanding RFC 821 is therefore essential for anyone reading raw SMTP traces, analyzing bounce categories, or building a mail server implementation from first principles.

What replaced it

RFC 821 was superseded by RFC 2821 in April 2001, which was in turn replaced by RFC 5321 in October 2008. The evolution added ESMTP extensions (via RFC 1869), STARTTLS, SMTP AUTH, message size negotiation, 8BITMIME, and internationalized addresses. But the core command set and reply structure remain unchanged. If you memorize the RFC 821 command list, you understand roughly ninety percent of modern SMTP; the extensions are optional layers negotiated on top of the RFC 821 foundation.

The RFC 821 commands that did not survive

Not everything Postel defined in 1982 is still around. Four commands targeted a world where email and terminal messages were the same service, and one turned out to be a security problem.

CommandWhat it did in RFC 821What happened to it
SENDDeliver the message to the user’s terminal instead of the mailboxDropped: RFC 5321 lists it among obsolete commands that servers should not implement
SOMLSend to the terminal, or to the mailbox if the user is not logged inDropped, same as SEND
SAMLSend to the terminal and to the mailboxDropped, same as SEND
TURNSwap roles: the client becomes the server and receives queued mailRemoved because anyone could claim to be the domain and collect its mail. Replaced by ETRN (RFC 1985) and authenticated ATRN (RFC 2645)
HELOOpen the sessionStill valid, but EHLO (from RFC 1869) is the normal opening since extensions exist; HELO remains the fallback

RFC 821 and RFC 5321 side by side

TopicRFC 821 (1982)RFC 5321 (2008)
Opening commandHELOEHLO first, HELO as fallback
ExtensionsNoneNegotiated in EHLO: SIZE, 8BITMIME, STARTTLS, AUTH, SMTPUTF8 and more
Character set7-bit ASCII only7-bit by default, 8-bit and UTF-8 through extensions
Mail routingSource routes in addresses (@relay1,@relay2:user@host)MX records; source routes must be accepted but ignored
Line length1000 characters including CRLFUnchanged: 998 characters plus CRLF
Reply codesThree digitsSame three digits, plus enhanced status codes such as 5.1.1 (RFC 3463)
Relay policyAny server could relay for anyoneOpen relays are a known abuse vector; relaying requires authorization

The open-relay row is the biggest change in practice. RFC 821 was written for a small network of trusted hosts, where forwarding mail for strangers was a courtesy. That courtesy is what made spam cheap in the 1990s, and it is why every modern server refuses to relay without authentication.

Did this guide save you time?

SMTPedia is free and independent. A coffee helps keep every guide accurate.

Buy SMTPedia a coffee

See SMTPedia first on Google

Add us as a preferred source in Top Stories.

Add as preferred source

About the Author

Alaa - SMTPedia author

Alaa · LinkedIn

Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. I’ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.


About SMTPedia

SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.

We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.