Getting the headers
Mail apps hide headers by default. Here's where to find the full set:
| Mail app | Where to find them |
|---|---|
| Outlook for Windows (classic) | Open the message › File › Properties › Internet headers |
| New Outlook and Outlook on the web | ⋯ (More actions) › View › View message details |
Google's help article Trace an email with its full header also lists the steps for Apple Mail, Yahoo Mail, Thunderbird and other apps.
Copy the whole block. The email header analyzer reads it for you in your browser, without uploading anything, and lays out the path, delays and authentication results. This guide explains what it's showing you, and how to read the raw lines yourself.
The anatomy of a header block
Headers are lines of Name: value, with long values continued on indented lines. They fall into three groups:
- Written by the sender's mail app: From, To, Cc, Subject, Date, Message-ID, Reply-To, and technical ones such as MIME-Version and Content-Type.
- Added by servers along the way: Received, DKIM-Signature, ARC headers, Return-Path.
- Added by the receiving system: Authentication-Results, spam filter verdicts, and anything else the recipient's provider records.
Each server adds its lines at the top. So the headers read like a stack: the newest additions first, the sender's original lines at the bottom. That ordering is the key to everything that follows.
Received: the path the message took
Every server that handles the message adds a Received line saying who it got the message from, who it is, and when. Here's a simplified set from a message sent from a company using Microsoft 365 to a Gmail user:
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2101.outbound.protection.outlook.com. [40.107.22.101])
by mx.google.com with ESMTPS id a1b2c3
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256)
for <[email protected]>; Sat, 28 Nov 2026 09:14:07 -0800 (PST)
Received: from AM0PR02MB1234.eurprd02.prod.outlook.com (2603:10a6:208:12::17)
by AS8PR02MB5678.eurprd02.prod.outlook.com with HTTPS;
Sat, 28 Nov 2026 17:14:05 +0000
Received: from [192.168.1.20] (unknown [198.51.100.7])
by AM0PR02MB1234.eurprd02.prod.outlook.com with ESMTPSA;
Sat, 28 Nov 2026 17:14:04 +0000
Read them from the bottom up:
- The sender's laptop (private address
192.168.1.20, seen from outside as198.51.100.7) submitted the message to Microsoft 365 with authentication (ESMTPSA). - Microsoft passed it between its own servers.
- Microsoft's outbound server (
40.107.22.101) delivered it to Gmail over TLS 1.3, at 17:14:07 UTC. That's the same instant as 09:14:07 PST.
Each line has the same parts: from (the previous server, with the name it gave, its reverse DNS name and its IP address in brackets), by (the server writing the line), with (the protocol), and a date after the semicolon.
Reading the protocol
SMTP: plain delivery.ESMTP: the extended version most servers use.- An
Safter ESMTP (ESMTPS) means the connection was encrypted with TLS. - An
A(ESMTPA,ESMTPSA) means the sender logged in, which you'll usually see at the first hop.
Finding delays
Compare the timestamps of consecutive lines. Watch the time zones: each server writes its own local time with an offset (-0800, +0000), so convert to UTC before subtracting. A long gap between two hops shows where the message waited: in the sender's outbox, in a filtering service, or at a receiving server that was greylisting or throttling. Small negative gaps just mean one server's clock is a little off.
Authentication-Results: the verdicts
The receiving provider records the outcome of its SPF, DKIM and DMARC checks in one header, defined by RFC 8601. Stripped of the comments each provider adds in parentheses, it looks like this:
Authentication-Results: mx.receiver.example;
dkim=pass header.d=example.com header.s=selector1;
spf=pass [email protected];
dmarc=pass header.from=example.com
mx.receiver.example: the server that ran the checks. Only trust this header when that's your own provider.dkim=pass header.d=example.com header.s=selector1: a signature fromexample.comwith selectorselector1verified. Some providers write the signer as[email protected].spf=pass [email protected]: SPF passed for the envelope sender's domain,example.com. Providers usually add the sending IP address in a comment.dmarc=pass header.from=example.com: DMARC passed for the visible From domain. Many providers also note the domain's policy and what they did with the message.
The domain names are what matter. A DKIM pass for mailservice.net or an SPF pass for bounces.mailservice.net doesn't help DMARC for example.com. See SPF, DKIM and DMARC explained for why.
Microsoft's version
Microsoft 365 writes a similar header with one extra result:
Authentication-Results: spf=pass (sender IP is 209.85.220.41) smtp.mailfrom=example.com;
dkim=pass (signature was verified) header.d=example.com;
dmarc=pass action=none header.from=example.com;
compauth=pass reason=100
compauth is Microsoft's composite authentication verdict, combining DMARC with its own spoof intelligence. compauth=fail reason=000 means the message failed the sender's DMARC policy; reason=001 means Microsoft judged it a spoof even though the domain has no enforcing DMARC policy.
The other headers worth knowing
| Header | What it tells you |
|---|---|
Return-Path | The envelope sender, where bounces go and the address SPF checks. Often a service's bounce domain rather than the From address. |
Reply-To | Where replies go. A Reply-To at an unrelated domain is a classic phishing sign. |
DKIM-Signature | The signature itself. d= is the signing domain, s= the selector, h= the signed headers. Check the key with the DKIM checker. |
Message-ID | A unique ID assigned when the message was created. Its domain often reveals the real sending system. |
ARC-Seal, ARC-Message-Signature, ARC-Authentication-Results | ARC (RFC 8617, an experimental standard). Added by forwarders and mailing lists to vouch for the authentication results the message had before they changed or relayed it. |
Received-SPF | An older, SPF-only result header that some servers still add. |
List-Unsubscribe, List-Unsubscribe-Post | The unsubscribe address and one-click unsubscribe support that bulk senders need. |
X-Mailer, User-Agent | The program that composed the message, when the sender's app includes it. |
Spam filter headers
Microsoft 365 and Outlook.com
Microsoft records its filtering decisions in X-Forefront-Antispam-Report, a list of FIELD:value pairs:
X-Forefront-Antispam-Report: CIP:198.51.100.50;CTRY:US;LANG:en;SCL:5;SRV:;IPV:NLI;
SFV:SPM;H:mail.example.net;PTR:mail.example.net;CAT:SPM;SFTY:;DIR:INB;
| Field | Meaning |
|---|---|
CIP | The connecting IP address that delivered the message to Microsoft |
CTRY, LANG | The country of that IP address, and the detected language of the message |
H, PTR | The name the sending server gave (HELO) and its reverse DNS name |
SFV | The spam filtering verdict. NSPM not spam, SPM spam, SKN skipped by a mail flow rule, SKA or SFE skipped by an allow list or the user's safe senders, BLK the user's blocked senders |
CAT | The category of protection that acted. NONE, SPM spam, HSPM high-confidence spam, PHSH phishing, SPOOF spoofing, BULK bulk mail, MALW malware |
SCL | The spam confidence level, −1 to 9. Microsoft notes that in the cloud it no longer decides the verdict on its own, so read SFV and CAT first |
DIR | INB inbound, OUT outbound, INT internal |
The X-Microsoft-Antispam header adds BCL, the bulk complaint level from 0 to 9: how likely a bulk message is to be unwanted. Microsoft defines 0 as not from a bulk sender, 1 to 3 as a bulk sender with few complaints, 4 to 7 as mixed and 8 to 9 as many complaints. Its default anti-spam policy treats 7 and above as bulk mail.
SpamAssassin and other filters
Many hosting providers and gateways use SpamAssassin, which adds X-Spam-Status with the score, the threshold and the rules that matched:
X-Spam-Status: Yes, score=7.4 required=5.0 tests=… autolearn=… version=…
The tests= list names each rule that matched, such as checks for missing reverse DNS or links to blocklisted domains. Other filters, such as Proofpoint, Mimecast and Barracuda, add headers of their own.
Which lines can be trusted
This is the most important thing to understand when investigating a suspicious message. A sender can write anything in the headers they create, including fake Received lines designed to make the message look like it came from somewhere else.
What you can trust is what your own provider added when the message arrived:
- the topmost
Receivedlines, down to the one where your provider received it from the outside world; - the IP address in that line, which is the server that actually delivered the message;
- the
Authentication-Resultsheader your provider wrote.
Everything below the hand-off into your provider is the sender's claim. The standard for Authentication-Results (RFC 8601) requires receivers to delete or obscure any copy that arrives claiming to come from them, so a forged one can't pass itself off as your provider's.
Spotting a phishing message
Put together, the headers usually make a phishing attempt obvious:
- DMARC fails for the domain in From, or SPF and DKIM pass only for an unrelated domain.
- The From display name claims to be a company, but the address is at another domain.
- Reply-To points to a free mail address or an unrelated domain.
- The first external hop comes from a network with no connection to the supposed sender. Look up the IP with the IP and ASN lookup, and check it against blacklists.
- The Message-ID domain belongs to a different system than the one the message claims to come from.
Frequently asked questions
Can email headers show the sender's location?
Only roughly. The first public IP address in the path often belongs to the sender's mail provider, not to their device. At best you learn the provider, and sometimes a country.
Why are there so many Received lines from the same company?
Large providers pass a message between many of their own servers: front ends, filters and mailbox servers. All of those internal hops are normal. The interesting ones are where the message moves between organizations.
Why are the times in different time zones?
Each server stamps its own local time with a UTC offset. Convert them all to UTC before comparing. The header analyzer does this for you.
Is it safe to share email headers?
Mostly, but they contain email addresses, internal server names and sometimes IP addresses. Share them with your IT team or provider, and avoid posting them publicly without removing addresses.
Why is there no Authentication-Results header?
Some mail systems don't add one, and some strip it from messages passed between internal servers. In that case the outcome of SPF, DKIM and DMARC for that message wasn't recorded.