How do I read an email's headers?

Open the message's full headers and read them in three passes. First, follow the Received lines from the bottom up to see which servers handled the message and how long each held it. Second, find the Authentication-Results line your own mail provider added: it says whether SPF, DKIM and DMARC passed, and for which domain. Third, compare those domains with the From address, because DMARC only counts a pass for a domain aligned with it.

Last reviewed: 21 October 2026.

Copying the whole header block

Every mail app hides the headers behind a menu, and you want all of them, from the first line down to the blank line where the message text starts.

Read moreShow less: Copying the whole header block
  • Gmail on a computer: open the message, click More next to Reply, choose Show original, then Copy to clipboard.
  • Outlook on the web and the new Outlook for Windows: More actions at the top of the message, then View and View message details.
  • Classic Outlook for Windows: double-click the message to open it in its own window, then File, Properties. The headers are in the Internet headers box.
  • Apple Mail on a Mac: View, Message, All Headers, the path Apple's Mail guide gives for macOS Sequoia 15.

Take everything: a missing piece in the middle can make a delay or a verdict impossible to place. Our header analyzer joins folded lines and stops at the first blank line, so pasting the whole raw message works too.

The analysis runs on your own device. The page's script parses what you paste and never sends the text to our server. All it reports about the analysis is that the analyzer was used.

Received lines: read from the bottom up

Each server that accepts a message adds its Received line above the existing ones, so the lowest line is the first step of the journey and the highest is the last.

Read moreShow less: Received lines: read from the bottom up

RFC 5321 requires every server that takes a message on to insert trace information at the top, and forbids changing or deleting an earlier Received line. Turn the pile upside down and you have the route.

A typical line has five parts:

  • from: the name the sending server announced, then in brackets the name and IP address the receiving server actually saw. The bracketed address is the one the receiver measured.
  • by: the server writing the line.
  • with: the protocol. ESMTP is ordinary server-to-server mail, ESMTPS adds STARTTLS encryption, ESMTPSA adds a logged-in sender too, as when a mail app submits a message, and LMTP is the hand-off into a mailbox store.
  • id and for: the receiver's queue number and the recipient.
  • the timestamp after the last semicolon.

Trust runs from the top down. Lines added by your own provider come from servers you already rely on; anything below them arrived with the message, and a sender can type made-up lines there.

Our analyzer numbers hops oldest first and ignores parenthesised comments when reading from, by and with. Internal hand-offs such as (qmail 2010381 invoked by uid 998) carry only a time, so they show as dashes with a timestamp.

Spotting where a message waited

Convert every hop's timestamp to one time zone, subtract each from the next, and the biggest gap points at the server that held the message.

Read moreShow less: Spotting where a message waited

Servers stamp their local time with a UTC offset, so one message can show -0700, +0200 and +0000 within a few lines. Our analyzer converts everything to UTC and puts the gap since the previous hop in the Delay column. Hop 1 is measured from the Date header, which the sender's software writes and which is only as good as that computer's clock.

A step longer than five minutes becomes a Warning, "Slow hop: … at hop N", explained as a queue, greylisting or a retry after an error. A timestamp more than two minutes earlier than the previous one becomes a Note, "Clock skew at hop N". A smaller step backwards, such as the one second in the Tomcat message below, is treated as ordinary drift and isn't flagged.

Where the gap sits tells you whom to ask: your outgoing queue, the recipient's filter, or a forwarder in between.

Authentication-Results: the receiver's own verdict

Authentication-Results is where a receiving server writes down whether SPF, DKIM and DMARC passed, and which domain each result was about.

Read moreShow less: Authentication-Results: the receiver's own verdict

RFC 8601 defines it: an identifier for the checking service (the authserv-id), then one entry per method. An illustrative example:

Authentication-Results: mx.example.org;
	spf=pass smtp.mailfrom=example.com;
	dkim=pass header.d=example.com header.s=s2026a;
	dmarc=pass header.from=example.com
  • smtp.mailfrom: the envelope sender domain SPF tested (smtp. values come from the SMTP conversation).
  • header.d and header.s: the domain and selector of the DKIM signature checked; some servers give header.i, the signing identity.
  • header.from: the From domain DMARC evaluated.
  • reason= or a bracketed comment: the server's own explanation, such as "body has been altered".

SPF results are pass, fail, softfail, neutral, none, policy, temperror and permerror; DKIM uses the same words except softfail; DMARC returns pass, fail, none (no DMARC record), temperror or permerror.

Many messages carry several, one per organisation that checked. Each is added at the top and never reordered, and receivers must delete incoming copies that claim their own identifier, so the one naming your provider deserves belief.

Our analyzer takes each method from the highest Authentication-Results header that reports it. If none does, it uses the receiving side's own Received-SPF header (RFC 7208) for SPF, and only then ARC-Authentication-Results, which an intermediary wrote; it skips an ARC DMARC result for a From domain the message no longer carries. The table title names the recorder, such as "Authentication results (recorded by mx.example.org)"; check that it's your own provider.

Inside a DKIM-Signature header

The d= tag names the domain vouching for the message and s= names the selector; together they give the DNS name of the public key, selector._domainkey.domain.

Read moreShow less: Inside a DKIM-Signature header

RFC 6376 requires seven tags: v (version), a (algorithm), b (the signature), bh (body hash), d (signing domain), h (signed header fields) and s (selector). Others aren't required: i is optional, and t (signing time) and x (expiry) are recommended.

Put the selector and domain either side of _domainkey to find the key: d=example.com; s=s2026a means a TXT record at s2026a._domainkey.example.com. Enter both in our DKIM lookup to see the key and its length; the guide to DKIM keys and selectors covers rotating them.

A message can carry several signatures, judged one by one; mailing lists often add their own. Our analyzer reads each one's d= and s= (they're in its Raw data view), but takes pass or fail from what the receiver recorded rather than verifying signatures. When one passed and another failed, it warns "DKIM: a second signature failed", often a sign that something edits mail after signing.

Return-Path versus From, and what alignment means

From is the address people see, Return-Path is the hidden bounce address SPF checks, and DMARC passes only if SPF or DKIM passed for a domain aligned with the From domain.

Read moreShow less: Return-Path versus From, and what alignment means

The final receiving server writes Return-Path from the address in the SMTP MAIL FROM command. Bounces go there, and its domain is the smtp.mailfrom in the SPF result. For an empty MAIL FROM, as on a bounce, DMARC uses postmaster at the HELO name.

DMARC, now RFC 9989, compares the From domain with the SPF-checked domain and the DKIM d= domain. The message passes if at least one both passed and is aligned:

  • Relaxed, the default for adkim and aspf: the names share an Organizational Domain, roughly the registered name, so mail.example.com aligns with example.com and with news.example.com.
  • Strict, adkim=s or aspf=s: the names must be identical.
From domain   Domain that passed    Relaxed       Strict
example.com   example.com           aligned       aligned
example.com   mail.example.com      aligned       not aligned
example.com   example.net           not aligned   not aligned

So an spf=pass for your newsletter service's bounce domain is genuine but does nothing for DMARC; our page on DMARC failures covers why. The analyzer's Note "DKIM signed by X, not Y" appears when no DMARC pass and no matching DKIM pass were recorded, and no DKIM-Signature's d= matches the From domain, or shares its organizational domain, as relaxed alignment allows, so sibling subdomains such as mail.example.com and news.example.com count as aligned. The receiver's own dmarc= result is still the one that decided delivery.

ARC headers on forwarded mail

ARC lets a mailing list or forwarding service record what it saw before passing a message on, so the final receiver can choose to trust results that forwarding broke.

Read moreShow less: ARC headers on forwarded mail

The forwarder's IP address isn't in the original sender's SPF record, so unless the forwarder rewrites the bounce address, SPF fails at the next stop; Google's forwarding advice says forwarded messages often fail SPF. DKIM usually survives plain relaying, but a footer added by a list usually breaks it.

ARC, the Authenticated Received Chain, is RFC 8617, an Experimental protocol from July 2019. Each participating handler adds a numbered set of three headers:

  • ARC-Authentication-Results: the results that handler saw on arrival.
  • ARC-Message-Signature: a DKIM-style signature over the message as it was sent on.
  • ARC-Seal: a signature over the ARC headers, with cv= saying whether the earlier chain validated: none on the first set, then pass or fail.

i= numbers the sets from 1, up to 50; the highest is the latest handler, and its ARC-Seal's d= says who. The final receiver records its view as arc=pass, arc=fail or arc=none.

Trusting ARC is each receiver's local policy, and RFC 9989 notes that, when it was published, none of the methods for keeping list mail working without rewriting From, ARC included, had become widely used. Microsoft 365 lets admins name trusted sealers by that d= domain; a message rescued that way shows compauth=pass reason=130. Our analyzer doesn't validate ARC, and lists an arc= entry as a plain table row.

Walking through a forwarded sample

An illustrative message forwarded from example.net to example.org shows a seven-minute wait before example.org accepted it, an SPF softfail caused by forwarding, and a DMARC pass carried by DKIM.

Read moreShow less: Walking through a forwarded sample

This header block is an illustrative sample written for this guide, not a real message, and its signatures are invented. A billing system at example.com mails an address at example.net, which forwards it to example.org.

Return-Path: <bounce-7731@mail.example.com>
Received: from mx.example.org (mx.example.org [203.0.113.5])
	by mailstore.example.org with LMTP id 2c8Kq1
	for <accounts@example.org>; Tue, 20 Oct 2026 09:21:42 +0000
Authentication-Results: mx.example.org;
	spf=softfail smtp.mailfrom=mail.example.com;
	dkim=pass header.d=example.com header.s=s2026a;
	dmarc=pass header.from=example.com;
	arc=pass (i=1)
Received: from fwd-out.example.net (fwd-out.example.net [198.51.100.20])
	by mx.example.org with ESMTPS id 7Rk2Lm
	for <accounts@example.org>; Tue, 20 Oct 2026 09:21:41 +0000
ARC-Seal: i=1; a=rsa-sha256; t=1792487649; cv=none; d=example.net; s=arc2026;
	b=Wm9yd2FyZGVkIGJ5IGV4YW1wbGUubmV0IGZvciBpbGx1c3RyYXRpb24gb25seQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=example.net; s=arc2026;
	h=from:to:subject:date:message-id:dkim-signature;
	bh=c2FtcGxlIGJvZHkgaGFzaCBmb3IgdGhlIGd1aWRl;
	b=SWxsdXN0cmF0aXZlIEFSQyBtZXNzYWdlIHNpZ25hdHVyZQ==
ARC-Authentication-Results: i=1; mx1.example.net;
	spf=pass smtp.mailfrom=mail.example.com;
	dkim=pass header.d=example.com header.s=s2026a;
	dmarc=pass header.from=example.com
Received: from mx1.example.net (mx1.example.net [198.51.100.7])
	by fwd-out.example.net with ESMTP id 51QwEr
	for <accounts@example.org>; Tue, 20 Oct 2026 09:14:09 +0000
Authentication-Results: mx1.example.net;
	spf=pass smtp.mailfrom=mail.example.com;
	dkim=pass header.d=example.com header.s=s2026a;
	dmarc=pass header.from=example.com
Received: from mta1.example.com (mta1.example.com [192.0.2.40])
	by mx1.example.net with ESMTPS id 9F2A1c
	for <accounts@example.net>; Tue, 20 Oct 2026 09:14:08 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=s2026a;
	t=1792487646; h=from:to:subject:date:message-id;
	bh=c2FtcGxlIGJvZHkgaGFzaCBmb3IgdGhlIGd1aWRl;
	b=SWxsdXN0cmF0aXZlIERLSU0gc2lnbmF0dXJlIGZvciB0aGUgZ3VpZGU=
Received: from app01.example.com (app01.example.com [192.0.2.25])
	by mta1.example.com (Postfix) with ESMTP id 4QxT1b
	for <accounts@example.net>; Tue, 20 Oct 2026 09:14:06 +0000
From: Example Billing <billing@example.com>
To: <accounts@example.net>
Subject: Your October invoice
Date: Tue, 20 Oct 2026 09:14:05 +0000
Message-ID: <20261020091405.4QxT1b@app01.example.com>

Pasted into our analyzer on 21 October 2026, it gave a "Problem found" banner reading "This message failed SPF. That is the most likely reason it was flagged." Its findings: "SPF: softfail (mail.example.com)" (Fail, recorded by mx.example.org), "DKIM: pass (example.com)", "DMARC: pass (example.com)" and "Slow hop: 7m 32s at hop 4" (Warning). The hop table, with its UTC times shortened to the clock time:

#  From                                  By                      With     Time (UTC) Delay
1  app01.example.com [192.0.2.25]        mta1.example.com        ESMTP    09:14:06   1s
2  mta1.example.com [192.0.2.40]         mx1.example.net         ESMTPS   09:14:08   2s
3  mx1.example.net [198.51.100.7]        fwd-out.example.net     ESMTP    09:14:09   1s
4  fwd-out.example.net [198.51.100.20]   mx.example.org          ESMTPS   09:21:41   7m 32s
5  mx.example.org [203.0.113.5]          mailstore.example.org   LMTP     09:21:42   1s

The results table, "recorded by mx.example.org", added an ARC row reading pass.

How to read it: the softfail is expected, because at hop 4 the connecting server is the forwarder, which mail.example.com's SPF record doesn't list; example.net's ARC set (i=1, cv=none) shows SPF had passed one step earlier. The DMARC pass decides the outcome, since the example.com signature survived and matches the From domain exactly. The banner leads with any failed method, so beside a DMARC pass, treat this softfail as a side effect of forwarding rather than a reason to edit SPF. The seven-minute gap is the forwarder's queue or a retry at example.org.

Worked example: apache.org, checked 21 October 2026

A real Apache mailing-list message names three apache.org identities in its headers, and our DNS tools confirmed each: the s=mail DKIM key, the SPF record of the bounce domain and the relay's reverse DNS.

Read moreShow less: Worked example: apache.org, checked 21 October 2026

This message, from the public archive of the Apache HTTP Server developers' list, was sent from a Gmail account; we redacted personal names and addresses. The header analyzer page walks through its hops, so here we follow its identities into DNS:

Return-Path: <dev-return-99697-archive-asf-public=cust-asf.ponee.io@httpd.apache.org>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apache.org; s=mail; ...
Received: from mail.apache.org (mailgw-he-de.apache.org [116.203.246.181])
	by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with ESMTPS ...

The signature sits between the list software's qmail lines and the outbound relay's Received line, so Apache's own system added it as the list sent the message on. On 21 October 2026:

  • DKIM lookup, apache.org, selector mail: "Selector mail (Brevo / generic): 2048-bit RSA key", a Pass; the bracketed service is only our checker's guess from the selector name.
  • SPF checker, httpd.apache.org: "SPF is set up correctly and uses 2 of its 10 allowed lookups." The record is v=spf1 include:_spf.apache.org -all, and the included _spf.apache.org record lists both relay addresses from the message's Received lines, ip4:116.203.246.181 and ip4:3.227.148.255.
  • Reverse DNS lookup, 116.203.246.181: "116.203.246.181 → mailgw-he-de.apache.org (forward-confirmed)", the bracketed name on the Received line.

The From address is at gmail.com, so neither apache.org identity can count for DMARC, however cleanly it passes. Only the author's gmail.com signature can, and Apache's filter recorded dkim=pass (2048-bit key) header.d=gmail.com. No server in the chain recorded a DMARC result, so the analyzer says "DMARC: no result". gmail.com's record that day: v=DMARC1; p=none; sp=quarantine; rua=mailto:mailauth-reports@google.com.

A second archived message, to the Apache Tomcat users' list from a company on Microsoft 365 (left unnamed), carries a real ARC set: i=1; … d=microsoft.com; cv=none. The ARC record, written on the sender's side, says SPF and DMARC passed, but Apache recorded no DMARC result, and its own SPF pass sits in a Received-SPF line. The list had also replaced the From address with its own, users@tomcat.apache.org, so the ARC DMARC pass describes the message before the list changed it. The analyzer now reports "The message took 20 hops and 16s end to end and passed SPF, DKIM. No server recorded a DMARC result.", taking SPF from Apache's Received-SPF and leaving that ARC DMARC pass out. Treat verdicts copied from an ARC record as the intermediary's view, not your provider's.

Questions people ask about headers

Answers on finding the sender's real IP address, what smtp.mailfrom means, DKIM passing while DMARC fails, ARC results and normal hop times.

Which Received line shows the sender's real IP address?

The lowest Received line written by your own provider's servers. The bracketed address after its "from" is the server that handed the message over, measured from the connection, so it's the most trustworthy outside address in the block. Lower lines may be accurate, but servers you can't vouch for wrote them. Our reverse DNS lookup shows whose server an address is.

What does smtp.mailfrom mean in an email header?

It's the domain of the envelope sender, the bounce address from the SMTP MAIL FROM command, and the domain SPF tested; the Return-Path usually shows the same address. It's often a sending service's domain, which is why it can differ from the visible From line. If SPF fails for your own domain, the SPF fail page lists the causes.

Why does an email pass DKIM but fail DMARC?

The passing signature belongs to a domain that doesn't align with the From address. Compare header.d in the DKIM result with header.from in the DMARC result. If one is a sending service's domain, finish that service's custom-domain DKIM setup. Under adkim=s, even your own subdomain won't match.

What does arc=fail or arc=none mean?

arc=none means the message arrived with no ARC headers, which is normal for mail sent directly. arc=fail means ARC headers were present but the chain didn't validate, for example because the message changed after sealing. Neither changes the DMARC result by itself; whether a receiver uses ARC to rescue failing mail is its own policy.

How long should each hop take?

Often only seconds. In the Apache list message above, nine of its ten hops took between 0 and 7 seconds, and the slowest, 38 seconds, was the final hand-off to the archive. Minutes at one hop point to a queue, greylisting or a retry, which is why our analyzer warns past five minutes.

Related guides, tools and problems

Paste a header block into the analyzer, then follow the domains it names into the lookups below.