How to Read Email Headers to Spot Phishing
To read an email header, compare the sender identities first (From, Return-Path and Reply-To), then read the Authentication-Results line your own mail server added, and finally walk the Received lines from the bottom up. SPF, DKIM and DMARC results only mean something once you know which domain each one vouches for. Together, those three passes answer the question a phishing report really asks: who sent this, and did anyone check?
Related reading: if a message already got a click, start with our BEC response playbook and our guide to investigating compromised M365 and Entra ID accounts. The incident response plan template covers who to call and in what order.
Run any links or domains from the message through the IOC defanger before they go into a ticket. If headers keep showing credential phishing, phishing-resistant MFA with conditional access is the longer fix, and more of that sits in our identity security guide.
Key takeaways
- Read in three passes: sender claims, your server’s Authentication-Results line, then the Received chain from the bottom up.
- SPF checks the envelope sender, not the From address you see, so an SPF pass can sit on a spoofed message.
- DMARC passes only when SPF or DKIM passes and that domain aligns with From, and even a pass doesn’t make mail safe.
- A failed DKIM signature isn’t proof of forgery, because relays and mailing lists change messages in transit.
- A hijacked real mailbox usually passes every check, so headers alone can’t clear a message.
What each check actually vouches for
SPF lets a domain list the hosts allowed to send mail under its name, and it checks the MAIL FROM and HELO identities rather than the From header [1]. RFC 7208 warns that a message can pass SPF while listing other identities in its header, which can lull a reader into a false sense of security [1].
DKIM lets the owner of a signing domain claim responsibility for a message through a cryptographic signature, checked against a public key published in that domain’s DNS [2]. The signing domain doesn’t have to match the From address, and a failed signature shouldn’t be treated differently from no signature at all [2].
DMARC ties the two together by asking whether the SPF or DKIM domain aligns with the From domain [3]. A DMARC pass says only that the use of the From domain was validated for that message [3].
Where do you find the full headers in Gmail, Outlook and Apple Mail?
Full email headers sit behind a menu option in every mail client, and the raw text is the version you want. In Gmail, open the message, click More next to Reply, and choose Show original. Outlook and Apple Mail keep the same data under message properties and a View menu setting [5].
- Gmail: open the message, click More (the three dots) next to Reply, then Show original. The page has a Copy to clipboard button [5].
- Classic Outlook: open the message, then choose File and Properties, and read the Internet headers box [5].
- New Outlook and Outlook on the web: Microsoft points to its own steps for each Outlook version [4].
- Apple Mail: choose View, then Message, then All Headers [5].
Copy all of it. Headers can hold internal hostnames and IP addresses, so paste them only into tools your policy allows. Microsoft’s Message Header Analyzer turns pasted headers into a readable layout if you work in that ecosystem [4].
Which header fields matter for phishing, and which can you skip?
Five header fields carry most of the evidence when you check a message for phishing: From, Reply-To, Return-Path, Authentication-Results and the Received lines. The sender writes the first two, so anyone can fake them. Your own receiving server writes Authentication-Results, and each server on the path adds a Received line [1][4].
This table covers the email headers worth reading first and how far to trust each one:
| Field | What it tells you | Who writes it | How far to trust it |
|---|---|---|---|
| From | The address and display name the reader sees | The sender | Low. The From field has been trivially forged throughout email history [3]. |
| Return-Path | Usually mirrors the envelope sender, the address that gets bounces | The mail system, from the SMTP envelope | Medium. RFC 5321 lets Return-Path be modified or removed in transit, so confirm it against smtp.mailfrom [2]. |
| Reply-To | Where a reply will go | The sender | Low. A different domain from From deserves a note. |
| Authentication-Results | SPF, DKIM and DMARC outcomes | Your receiving system | Highest, when your own server’s line is the one you’re reading [4]. |
| Received | One entry per server that handled the message | Each server on the path | Highest for your own server’s entry, lower the further back you read. |
| Subject, Date, Message-ID | Context only | The sender’s client or server | Useful for correlation, weak as evidence. |
Anything the sender could type is a claim. Only what your own server stamped counts as evidence.
How do you read a Received chain from the bottom up?
A Received chain is the list of Received lines that each mail server adds as it handles a message, with the newest at the top. Reading it from the bottom follows the message from the sender’s side to your mailbox. The line your own server wrote, which records the connecting IP, is the one to trust most [1][2][4].
Here is a made-up header from a payroll-themed phish. It uses documentation-only domains and IP addresses, and the letters mark the lines discussed below.
Return-Path: <bounce@mailer.example.net> # A
Authentication-Results: mx-edge.receiver.example;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=none (message not signed);
dmarc=fail action=none header.from=example.com; # B
Received: from mx-edge.receiver.example (mx-edge.receiver.example
[192.0.2.10]) by mailbox.receiver.example;
Mon, 23 Nov 2026 09:14:12 +0000 # C
Received: from mail-out.example.net (mail-out.example.net
[198.51.100.77]) by mx-edge.receiver.example;
Mon, 23 Nov 2026 09:14:10 +0000 # D
Received: from laptop ([203.0.113.45]) by mail-out.example.net;
Mon, 23 Nov 2026 09:14:03 +0000 # E
From: "Payroll Team" <payroll@example.com> # F
Reply-To: <payroll-help@example.org> # G
To: <you@receiver.example>
Subject: Action required: confirm your direct deposit details
Date: Mon, 23 Nov 2026 09:13:58 +0000
Message-ID: <20261123091358.4f2a@laptop>
- Lines E, D and C: read bottom to top. A host called laptop at 203.0.113.45 handed the message to mail-out.example.net, which passed it to the receiver’s edge server, which passed it to the mailbox server.
- Line D: this is the first hop your side saw directly, so 198.51.100.77 is the connecting IP. Microsoft’s CIP field records the same thing in its own headers [4].
- Line E: everything this deep in the chain was written by systems on the sender’s side. It adds context, but a sender-controlled server can write whatever it likes.
- Line A: the Return-Path and the smtp.mailfrom value in line B both name mailer.example.net. Neither one is example.com.
What do SPF, DKIM and DMARC results actually mean?
SPF, DKIM and DMARC results each answer a narrow question. SPF asks whether the sending IP may use the envelope sender’s domain, DKIM asks whether a signature from some domain still verifies, and DMARC asks whether either one lines up with the From domain. A pass on any of them says little until you check which domain it covers [1][2][3].
How DMARC decides, from the standard
DMARC compares the domain in the From header, which RFC 9989 calls the Author Domain, with the domains that SPF and DKIM actually validated [3]. For SPF it uses only the MAIL FROM identity and ignores HELO [3]. For DKIM it uses the signing domain from the d tag of a validated signature [3].
Alignment comes in two modes. Relaxed alignment accepts domains that share an Organizational Domain, so foo.example.com aligns with news.example.com, while strict alignment demands identical domains [3]. A single email can carry several DKIM signatures, and it passes DMARC if any one of them aligns with the Author Domain [3].
A message passes DMARC when SPF or DKIM passes and that domain aligns with the Author Domain [3]. The domain owner can publish a policy of none, quarantine or reject for failures, though receivers aren’t obliged to follow it [3]. Domain name comparisons here are case-insensitive [3].
In the sample, SPF passed for mailer.example.net and nothing was signed, so neither identity lines up with example.com. That is how Authentication-Results can show spf=pass and dmarc=fail together.
The SPF results first. RFC 7208 defines seven, and the table below turns each into a reading action:
| SPF result | What the standard says | How to read it |
|---|---|---|
| pass | The client is authorized to send with that identity [1] | Check which domain passed. It may not be the From domain. |
| fail | An explicit statement that the client isn’t authorized [1] | A strong signal, but forwarding can cause it for real mail. |
| softfail | A weak statement that the host is probably not authorized, somewhere between fail and neutral [1] | Look closer. Receivers shouldn’t reject on this result alone. |
| neutral | The domain makes no assertion, and receivers must treat it exactly like none [1] | No information either way. |
| none | No SPF record was found, or no valid domain was extracted [1] | The domain gives no SPF evidence. |
| temperror | A transient error, usually DNS, and a retry may succeed [1] | Ignore, then recheck if it matters. |
| permerror | The published record couldn’t be interpreted [1] | A broken record on the sender’s side. |
SPF also fails for honest reasons. RFC 7208 notes that a mailing list or forwarder can make a message fail SPF unless extra mitigations are in place [1].
The DKIM and DMARC results use the syntax Microsoft documents for its Authentication-results header:
| Result | Meaning | How to read it |
|---|---|---|
| dkim=pass | A signature verified, and header.d names the signing domain [4] | Compare header.d with the From domain. |
| dkim=fail (reason) | The check failed, for example because the body hash didn’t verify [4] | Not proof of forgery. A verifier shouldn’t treat bad signatures differently from none [2]. |
| dkim=none | The message wasn’t signed [4] | Fine for small senders, weak evidence for a payroll message. |
| dmarc=pass | SPF or DKIM passed and aligned with From [3] | The domain use was validated. It isn’t a safety verdict. |
| dmarc=fail | Neither aligned [3] | The domain owner’s policy decides what happens next. |
| dmarc=none or bestguesspass | No DMARC record exists for the domain [4] | No policy to enforce. |
Microsoft also records a reason code when a signature breaks. Reason 108 covers DKIM failing because an earlier legitimate hop modified the body [4].
How does a spoofed message differ from a compromised mailbox?
A spoofed message pretends to come from a domain it doesn’t control, so its authentication results disagree with the From address. A message from a compromised real mailbox travels through the genuine infrastructure and usually passes SPF, DKIM and DMARC. Headers can therefore expose a spoof but rarely clear a hijacked account [3].
Email headers can tell five different stories, and the table below sorts them by how the authentication results line up:
| Story | Authentication results | Other clues | Next move |
|---|---|---|---|
| Exact-domain spoof | SPF none or fail, DKIM none or fail, DMARC fail for the From domain | The connecting IP has nothing to do with the real domain | Compare against the domain’s published SPF and DMARC records, then report. |
| Lookalike domain | Everything can pass, for the lookalike domain | The From domain differs by a character. DMARC doesn’t address visually similar domains [3]. | Read the domain letter by letter and block it. |
| Real third-party sender | SPF pass for the vendor’s domain, with DMARC failing if nothing aligns | The vendor’s domain appears in Return-Path or d= | Check whether the From domain’s SPF record lists the vendor, and confirm by a known channel. |
| Compromised real mailbox | Pass, aligned with the real domain | The clues are behavioral: an unusual request, a new Reply-To, odd hours | Call the person on a number you already have, and treat the account as exposed. |
| Forwarded or list mail | SPF can fail at the last hop and DKIM can break after a footer is added [2] | Extra Received hops and list headers | Look for the original receiver’s results before judging. |
A hijacked account sends perfectly clean headers. The request itself is what gives it away.
What should you do next with a suspicious message?
When headers point to a spoof or a doubtful sender, save the original, defang the indicators, report the message and search for other copies before anyone clicks. Keep the full headers, because a screenshot loses the Received chain and the authentication lines. Microsoft 365 adds fields such as CAT, DIR and compauth that speed up the triage [4].
- Save the original message with its full headers, so the evidence survives.
- Defang every domain, IP address and URL before it goes into a ticket or chat.
- Report the message through your normal channel, with the headers attached.
- Search your mail logs for the same sender domain, connecting IP or subject. In Microsoft 365, CIP holds the connecting IP [4].
- Block the sender or domain, and if anyone clicked or replied, treat that account as exposed.
Reading Microsoft 365 verdict fields
Microsoft 365 records its verdicts in three headers: X-Forefront-Antispam-Report, X-Microsoft-Antispam and Authentication-results [4]. In cloud organizations the SCL value doesn’t decide whether a message counts as spam, so Microsoft points admins to the CAT and DIR fields instead [4]. The Authentication-results header itself is defined in RFC 7001 [4].
CAT names the threat category, such as SPOOF, PHSH for phishing or HPHSH for high confidence phishing [4]. DIR says whether the message was inbound, outbound or internal, and CIP records the connecting IP address [4].
The compauth result combines SPF, DKIM and DMARC and takes the From domain as its basis [4]. Reason 000 means explicit failure, with a DMARC policy of quarantine or reject, while reason 001 means implicit failure because the sender had weak or no policy [4]. A message with a compauth failure can still be delivered [4].
What should this change about how you triage email?
Header triage works best as a habit with a fixed order: sender claims first, your server’s verdict second, the Received path third. The authentication results describe domains only, so they say nothing about lookalike domains or display names [3]. That gap is where most of the judgment sits, and a fixed order keeps a tired analyst from skipping the dull checks.
Teach the three-pass order with one exception rule: a pass doesn’t close a ticket, and a fail doesn’t open one by itself. Forwarding and mailing lists break SPF and DKIM for legitimate mail, so a failed check needs a second signal before anyone panics [1] [2].
This guide doesn’t cover ARC, BIMI or attachment analysis. I haven’t run the sample header through a live Microsoft 365 tenant, and its addresses come from documentation-only ranges.
Tomorrow, take the last phishing report your team closed and rerun it with the three passes. Check whether the Authentication-Results line you trusted was written by your own server.
Sources & References
- IETF, RFC 7208, Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1, April 2014.
- IETF, RFC 6376, DomainKeys Identified Mail (DKIM) Signatures, September 2011.
- IETF, RFC 9989, Domain-Based Message Authentication, Reporting, and Conformance (DMARC), May 2026. It obsoletes RFC 7489.
- Microsoft Learn, Anti-spam message headers in cloud organizations.
- Google, Trace an email with its full header, with other mail clients covered on this Gmail Help page.

Leave a Comment (Authenticated Users)