RFC 4021: Registration of Mail and MIME Header Fields

Registers the full set of standard email header fields with IANA, providing a canonical reference.
Alaa
By Alaa
SMTPedia documents email infrastructure end to end: SMTP standards from the RFC archive, delivera...
7 min read Updated Jul 22, 2026 47 views
RFC 4021
Registration of Mail and MIME Header Fields
Current standard
Published
March 2005
Supersedes
First in series
SMTP relevance
Medium
↗ Read on rfc-editor.org

What this RFC defines

RFC 4021 registers the complete set of standard email header fields with IANA. It provides a canonical inventory of all headers defined across the various email RFCs: From, To, Subject, Date, Message-ID, MIME-Version, Content-Type, and dozens more, including their syntax, semantics, and the defining RFC for each one.

Where you see it in practice

When you need to know whether a particular email header is a registered standard or a proprietary extension, RFC 4021 is the reference. Email parsers and validators reference it to determine which headers are standard versus custom. The X- prefix convention for proprietary headers is also discussed here, though that convention has since been formally deprecated for new headers.

How it connects to other RFCs

RFC 4021 is a registration document that references virtually every other email RFC. It catalogues headers from RFC 5322 (message format), the MIME suite, RFC 5321 (SMTP trace headers like Received:), and authentication headers from RFC 7208 (SPF), RFC 6376 (DKIM), and others. It is informational and does not define new protocols.

Current status

RFC 4021 is a current informational RFC, published March 2005. The IANA header field registry it describes continues to be updated as new headers are standardised. It is the definitive lookup reference for standard email header fields.

The mail header registry

RFC 4021 (updated by RFC 3864 procedures) registered dozens of mail and MIME header fields with IANA, formalizing which headers exist and how they are used. Before this registration, header field usage was scattered across many RFCs and vendor extensions with no single authoritative list. The registry lets implementations know which header names are reserved, which are experimental, and which are provisional. Any new header field for mail or MIME should be registered under this framework.

Structure of the registry

The IANA Message Headers registry lists each header with its status (standard, informational, obsoleted), the reference RFC where it is defined, and any related registrations. As of 2026, hundreds of header fields are registered, including standard ones (From, To, Subject, Date, Message-ID), MIME ones (Content-Type, Content-Transfer-Encoding), authentication ones (DKIM-Signature, Authentication-Results, ARC-Seal), and many application-specific ones (List-Unsubscribe, X-Mailer).

Why registration matters

Registration prevents collision between independent implementations that might otherwise invent conflicting header names. It also makes it easier for parsers to know what to expect and to correctly ignore unknown headers. If you invent a new mail header for your application, prefixing with X- was the old convention but is deprecated by RFC 6648; use a descriptive name and register it. Common patterns like X-Company-Feature should be updated to Company-Feature style names for new development.

Quick Reference

RFC 4021 (March 2005) creates the IANA Message Headers registry: the authoritative list of standardized email header field names, their definitions, and where they were introduced. Companion RFC 3864 establishes the registration procedures. Registry covers headers from RFC 5322 (From, To, Subject, Message-ID, Date), MIME headers from RFC 2045, and many extension headers (Received, Return-Path, List-Id, DKIM-Signature, ARC-Seal, and hundreds more). Reference registry for parsers, generators, and gateway processors.

RFC 4021 at a glance

AspectDetail
PurposeEstablish IANA registry for message header field names
Registry maintained atiana.org/assignments/message-headers
Registration proceduresRFC 3864 (companion document)
Two protocols coveredMail (email headers) and Netnews (Usenet headers, largely overlapping)
CoverageRFC 5322 headers, MIME headers, extension headers (DKIM, DMARC, SPF, ARC, List-*, and more)
PublishedMarch 2005

Categories of registered mail headers

CategoryExamplesDefined in
OriginationFrom, Sender, Reply-To, DateRFC 5322
DestinationTo, Cc, BccRFC 5322
IdentificationMessage-ID, In-Reply-To, ReferencesRFC 5322
InformationalSubject, Comments, KeywordsRFC 5322
ResentResent-From, Resent-Date, Resent-Message-IDRFC 5322
TraceReceived, Return-PathRFC 5321
MIMEMIME-Version, Content-Type, Content-Transfer-Encoding, Content-DispositionRFC 2045, RFC 2183
AuthenticationDKIM-Signature, ARC-Seal, ARC-Message-Signature, ARC-Authentication-Results, Authentication-ResultsRFC 6376, RFC 8617, RFC 8601
ListList-Id, List-Post, List-Unsubscribe, List-Unsubscribe-PostRFC 2919, RFC 2369, RFC 8058
DispositionDisposition-Notification-To, Original-Message-IDRFC 8098

Common header handling mistakes

Inventing headers without registration. Ad-hoc header names risk colliding with future IANA-registered standards. Historic pattern: prefix with X- as an experimental marker. Modern pattern (per RFC 6648): register directly, or use a descriptive name without X-. Registered names document the intent and prevent collision.
Using X- prefix for new headers. RFC 6648 (June 2012) deprecates X- prefixes for new protocol parameters, including headers. Existing X- headers (X-Mailer, X-Priority, X-Originating-IP) remain in wide use, but new headers should not adopt the pattern. Register a proper name via RFC 3864 procedures; the registration is lightweight.
Case-sensitive header name matching. Per RFC 5322, header field names are case-insensitive. From, FROM, and from are the same field. Parsers must compare case-insensitively; generators typically use consistent casing (usually title case) but not by protocol requirement.
Emitting multiple instances of headers that should appear once. Some headers must appear exactly once (Message-ID, Date, From, Subject when present). Others can appear multiple times (Received, Comments). Emitting multiple Message-ID or From confuses parsers; some accept the first, others reject the message. Reference the IANA registry entry for each header’s cardinality rules.
Reordering trace headers. Received headers form the delivery chain, ordered top-down with the most recent hop first. Reordering breaks trace analysis and can invalidate ARC signatures that cover Received. Intermediate MTAs should always prepend (add to top), never reorder or remove.
Header registry standards
  • RFC 3864: Header field registration procedures (companion)
  • RFC 6648: Deprecating X- prefixes
  • RFC 5322: Message Format (defines the core headers)
  • RFC 2045: MIME base headers
  • RFC 5321: SMTP (Received and Return-Path)
Frequently referenced extension headers
  • RFC 6376: DKIM-Signature
  • RFC 8601: Authentication-Results
  • RFC 8617: ARC-Seal, ARC-Message-Signature, ARC-Authentication-Results
  • RFC 2919, RFC 2369, RFC 8058: List-* headers
  • RFC 8098: Disposition-Notification-To
SMTPedia companion guides

Frequently asked questions

How do I find the authoritative list of email headers?

The IANA Message Headers registry at iana.org/assignments/message-headers. Includes every registered header with its defining specification, protocol scope (mail, netnews, or both), and status (standard, informational, obsolete). Reference this registry, not local documentation or search results, when implementing header-aware code.

Can I invent my own custom header for my application?

Yes, but register it via RFC 3864 procedures. Ad-hoc unregistered headers risk colliding with future standards. Registration is lightweight for informational or vendor-specific headers. Use a descriptive name (not X- prefix per RFC 6648); include vendor identifier if the header is company-specific (e.g., Mycompany-Feature rather than Feature).

Why does RFC 6648 deprecate X- prefixes?

Two problems with X-. First, X- headers frequently become de-facto standards without proper registration, then collide with the un-prefixed name when the standards tree eventually registers. Second, X- signals “experimental” which does not reflect reality for headers deployed for decades. Modern approach: register descriptive names directly. Existing X- headers can continue in use for backward compatibility.

Are header field names case-sensitive?

No. Per RFC 5322, header field names are case-insensitive. From:, FROM:, and from: are the same field. Parsers must compare case-insensitively. Generators typically use consistent title case (From:, Message-ID:) for readability, but this is convention not requirement. Field values, on the other hand, may be case-sensitive depending on the specific header semantics.

What is the difference between mail and netnews headers?

RFC 4021 covers both because Usenet netnews (NNTP) shares a message format lineage with email; both derive from RFC 822 and its descendants. Many headers apply to both protocols (From, Subject, Message-ID, Date). Some are specific: mail has Received and Return-Path; netnews has Path, Newsgroups, and Xref. The IANA registry marks scope per header. Modern relevance: mail is universal, netnews continues in niche communities.


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.