RFC 2822: Internet Message Format

Previous email message format standard. Obsoleted by RFC 5322 in 2008.
Alaa
By Alaa
SMTPedia documents email infrastructure end to end: SMTP standards from the RFC archive, delivera...
6 min read Updated Jul 22, 2026 102 views
⚠ Obsoleted by RFC 5322. New implementations should reference the current version.
RFC 2822
Internet Message Format
Obsoleted
Domain
Message format
Published
April 2001
Obsoleted by
RFC 5322
SMTP relevance
Historical
↗ Read on rfc-editor.org

What this RFC defined

RFC 2822 updated the internet message format standard, modernising the original RFC 822 from 1982. It clarified the syntax for header fields, updated the date format requirements, introduced stricter rules for message structure, and removed obsolete features that had accumulated in 19 years of deployed practice.

Where you would have seen it in practice

Mail systems deployed between 2001 and 2008 referenced RFC 2822 as the message format standard. The From:, To:, Subject:, Date: headers that appear at the top of every email message follow RFC 2822 syntax, which is largely identical to RFC 5322. Old documentation or parsing code that references RFC 2822 is fully compatible with RFC 5322 since the format changes were clarifications rather than breaks.

How it connects to other RFCs

RFC 2822 obsoletes RFC 822 and is itself obsoleted by RFC 5322 in 2008. The three RFCs form the linear evolution of the email message format standard. RFC 2822 introduced CRLF line endings as a strict requirement and tightened the date syntax from the permissive rules in RFC 822.

Current status

RFC 2822 was obsoleted by RFC 5322 in October 2008. New implementations should reference RFC 5322. Email messages generated under RFC 2822 rules are valid RFC 5322 messages since the format changes were clarifications rather than breaking changes to the wire format.

The 2001 message format update

RFC 2822, authored by Pete Resnick and published in April 2001, tightened the RFC 822 message format after nineteen years of accumulated ambiguity. The most visible change was mandating CRLF line endings as the sole line separator, removing the LF-only permissiveness that had spread from Unix systems. The date syntax was tightened significantly: the four-digit year became mandatory (RFC 822 allowed two-digit years), and the obsolete zone names like EDT or GMT were moved to a separate obsolete-syntax section, still parseable but discouraged for new mail.

The obsolete-syntax appendix

RFC 2822 pioneered a formal split between current syntax and obsolete syntax. Section 4 documents all the grammar productions that must be accepted for backward compatibility with RFC 822 but should not be generated by new implementations. This split gave parser authors a clear conformance target: reject nothing legal from either era, but generate only current-syntax output. Every major email library since 2001 has followed this dual-mode design, and it is why you can still parse a 1990s archive without special legacy code paths.

Superseded by RFC 5322

RFC 2822 was itself obsoleted by RFC 5322 in October 2008. The changes were incremental: additional clarifications, further tightening of the obsolete syntax boundaries, integration of internationalization preparations. In practice, if your code targets RFC 2822, it will interoperate correctly with any RFC 5322 system. The main reason to reference RFC 5322 in new work is that it is the current standard and contains the most accurate errata. Both documents describe the same underlying message format that has stayed stable since 1982.

Quick Reference

RFC 2822 (April 2001), authored by Pete Resnick, was the second revision of the Internet Message Format. Obsoleted the original RFC 822 from 1982, folding in nearly 20 years of operational experience. Formalized ABNF (Augmented Backus-Naur Form) syntax, deprecated obsolete constructs (source routing), and cleaned up ambiguities. Obsoleted by RFC 5322 in October 2008. Reference RFC 5322 for current message format; RFC 2822 is historical bridge document.

RFC 2822 at a glance

AspectDetail
PurposeSecond revision of Internet Message Format
AuthorPete Resnick
PredecessorRFC 822 (1982)
SuccessorRFC 5322 (2008)
PublishedApril 2001
Key innovationFormal ABNF grammar; distinction between obsolete syntax (to parse but not emit) and current syntax

Changes from RFC 822 to RFC 2822

AspectRFC 822 (1982)RFC 2822 (2001)
Grammar formalismProse descriptions with informal syntaxFull ABNF grammar (RFC 5234)
Source routingStandard syntaxMarked obsolete; parse only, do not emit
Date formatMultiple tolerated formsCanonical form specified; obsolete forms tolerated on parse
Line lengthRecommended under 998 charactersRequired under 998; recommended under 78
Comment handlingLooseExplicit nesting rules
Address syntaxVarious obsolete formsCurrent and obsolete forms explicitly separated
ErrataVarious accumulatedIntegrated

Changes from RFC 2822 to RFC 5322

AspectRFC 2822 (2001)RFC 5322 (2008)
Core message formatSameSame (message format has been stable since 1982)
Errata integrationNot yetYes
Obsolete syntax handlingWell-definedSame, with additional clarifications
Internationalization awarenessLimitedExplicit acknowledgment of RFC 6532 for UTF-8 headers

Common mistakes when RFC 2822 is the reference

Referencing RFC 2822 in new specifications. New work should target RFC 5322. RFC 2822 was superseded in 2008; using it in current specifications signals dated approaches and misses errata that RFC 5322 folded in.
Not distinguishing current from obsolete syntax. RFC 2822’s key contribution was separating current syntax (what you should generate) from obsolete syntax (what you must parse to interoperate with legacy senders). Both RFC 2822 and RFC 5322 mark obsolete forms explicitly. Generators must produce current syntax; parsers must accept both.
Emitting source routing. RFC 2822 marked source routing (@a,@b:user@c) as obsolete. RFC 5322 continues this. Generators must not emit source routing; parsers should reject or strip it for security.
Emitting header lines over 998 characters. RFC 2822 established the hard limit of 998 characters per line; RFC 5322 continues this. Longer content requires folding (CRLF + whitespace). Some generators emit oversize lines that break at receivers.
Assuming RFC 2822 messages are ASCII-only. RFC 2822 is ASCII in raw form, but MIME extensions (RFC 2045+, encoded-word per RFC 2047) allow non-ASCII content within an RFC 2822 framework. Modern messages layer international content on top of RFC 2822 structure.
Message format evolution
SMTPedia companion guides

Frequently asked questions

Is RFC 2822 still relevant?

Only for historical context. Reference RFC 5322 for current message format; RFC 2822 was superseded in 2008. The core structure has not changed materially since RFC 822 in 1982; the revisions have refined syntax, integrated errata, and formally distinguished current vs obsolete forms.

What was the main improvement RFC 2822 brought over RFC 822?

Formal ABNF grammar. RFC 822 used prose descriptions with informal syntax that led to implementer disagreements. RFC 2822 provided complete ABNF (per RFC 5234) making the grammar machine-parseable and unambiguous. This let parser implementations align on the same specification. Also marked obsolete syntax explicitly for the first time, letting generators produce clean output while parsers accepted legacy input.

Do modern messages comply with RFC 2822 or RFC 5322?

Both. The core format has not changed between them; a valid RFC 5322 message is also a valid RFC 2822 message (with minor clarification differences). New implementations should target RFC 5322 for the most current specification and errata; existing implementations targeting RFC 2822 remain interoperable.

Why was source routing deprecated?

Security and irrelevance. Source routing let senders specify intermediate hops, which enabled open relay abuse (attacker constructs a message routed through victim’s server to bypass restrictions) and unexpected delivery paths. Meanwhile, modern DNS-based routing (MX records) makes source routing operationally unnecessary. RFC 2822 marked it obsolete; RFC 5322 continues the deprecation. Parsers should reject or strip source-route forms.

Are there specific errata that RFC 5322 fixes vs RFC 2822?

Various small ambiguities around header folding, comment nesting, date parsing edge cases, and address group syntax. Most are subtle and rarely encountered. The key difference is that RFC 5322 folds in errata as clarifications; RFC 2822 leaves them as separate errata documents. For most implementers, RFC 5322 is a cleaner reference document even though the semantic changes are minor.


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.