Email Header

Definition

An email header is the block of metadata at the top of every message, defined by RFC 5322, that carries the routing trail, identity fields, and authentication results recipients never normally see. It holds From, To, Subject, and Date, plus the technical Received, Return-Path, and Authentication-Results lines that tell the real story of where a message came from.

  • The visible From can be forged; the header trail is where you verify what is real
  • Received lines read bottom to top, tracing every server the message passed through
  • The Authentication-Results line records the SPF, DKIM, and DMARC verdicts
  • Only the date and a sender address are strictly required; everything else is optional
At a glance
Defined in RFC 5322 (Internet Message Format)
Format Field-Name: value pairs
Required fields Date + an originator address
Trace fields Return-Path · Received
Auth field Authentication-Results
Read order Received lines: bottom to top

What an email header contains

Every email has two parts: the body you read, and the header that precedes it. The header is a list of Field-Name: value lines that ends at the first blank line, after which the body begins. Most of these fields are hidden by your mail client, but they carry everything a receiving server needs to route, authenticate, and judge the message.

Under RFC 5322, the only strictly required fields are the origination date (Date) and an originator address (From). Everything else, including To, Subject, and Message-ID, is technically optional, though a message without a Message-ID causes problems with threading, deduplication, and DKIM signing, so well-formed mail always includes one.

A trimmed header showing trace, identity, and authentication fields
Return-Path: <bounce@mail.example.com>
Received: from mail.example.com (203.0.113.10)
  by mx.recipient.net; Tue, 10 Jun 2026 09:14:02 +0000
Authentication-Results: mx.recipient.net;
  spf=pass dkim=pass dmarc=pass
From: "Example" <hello@example.com>
To: you@recipient.net
Subject: Your June statement
Message-ID: <a1b2c3@example.com>
Date: Tue, 10 Jun 2026 09:14:00 +0000

Reading the trace fields

The most useful part of a header for deliverability is the trace: the Received and Return-Path fields. Each mail server that handles a message adds its own Received line at the top, so the lines build up in reverse: the bottommost was added first (the original sender) and the topmost was added last (the final server). Reading from the bottom up traces the message’s journey, and a forged header often shows up as a gap or an impossible hop in that chain.

The Return-Path field, inserted by the final delivery server, records the envelope sender that bounces go to. Because it can differ from the visible From, comparing the two is a quick way to spot mail sent through a third party or, sometimes, a spoof.

The authentication line

The line that matters most for sender reputation is Authentication-Results, added by the receiving server to record how the message fared on each check. A healthy line reads something like spf=pass dkim=pass dmarc=pass. If you are debugging why mail lands in spam, this single field tells you at a glance whether SPF, DKIM, and DMARC passed, and whether DKIM and SPF aligned with your From domain. Our email header analyzer parses these fields for you so you do not have to read them by hand.

Common mistakes

Trusting the visible From address
The From a recipient sees is easy to forge. The header trail, the Received chain, Return-Path, and Authentication-Results, is where you confirm whether a message is genuinely from who it claims.
Reading Received lines top to bottom
Servers prepend their Received line, so the order is reversed. The bottom line is the origin and the top line is the last hop; read upward to follow the real path.
Ignoring the Authentication-Results line
When mail goes to spam, this field usually contains the answer. A dkim=fail or dmarc=fail here points straight at the misconfiguration to fix.

Frequently asked questions

How do I view the full email header?
In Gmail, open the message, click the three-dot menu, and choose “Show original.” In Outlook, open the message and use File then Properties, or the message options. Every client has a “view source” or “show original” option that reveals the raw header. You can paste it into our header analyzer to decode it.
Why are there so many Received lines?
Each server that relays the message adds its own Received line, so a message that passes through several MTAs accumulates several lines. Reading them from the bottom up shows the full delivery path, which is invaluable for diagnosing delays or spoofing.
What is the difference between the header From and the Return-Path?
The From header is the visible sender your recipient reads. The Return-Path is the envelope sender where bounces are delivered, inserted by the receiving server from the SMTP MAIL FROM. They often differ when mail is sent through an ESP, and SPF checks the Return-Path, not the From.
Reviewed by Jennifer Jackson, Email Deliverability Analyst · June 2026 ← Back to glossary