What this email header analyzer checks
Every email carries a header: dozens of lines added by each server it passes through, hidden by your mail app. The email header records who sent the message, the route it took, and what the receiving server decided about it. Reading it by hand is slow. This email header analyzer, which Microsoft calls a message header analyzer, reads it for you and answers five questions:
- Did the email authenticate? The SPF, DKIM and DMARC results the receiving server recorded, plus Microsoft’s composite authentication (compauth) and ARC when present.
- Did it align? We compare the From domain with the SPF domain (Return-Path) and the DKIM signing domain (
d=) ourselves, so you can see why DMARC passed or failed, not just that it did. - What did the spam filter think? Microsoft 365’s SCL, BCL, SFV and CAT codes and the delivery folder (Inbox or Junk) are decoded into plain words, along with SpamAssassin, Proofpoint, Barracuda and Mimecast scores.
- Which way did it travel? Every Received hop in order, with its server names, IP address, TLS version and the delay since the previous hop. Slow hops are flagged.
- Who really sent it? The sending platform (Google Workspace, Microsoft 365, Amazon SES, SendGrid and others), the receiving platform, the sending server IP and the mail client, plus red flags such as a Reply-To on another domain or a display name that shows a fake address.
The email header checker runs entirely in your browser. Nothing you paste is uploaded, logged or added to the page address, which matters because headers contain real email addresses and internal server names.
How to analyze email headers: step by step
- Copy the full original header of the email as it arrived in the recipient’s inbox (see the next section for each mail app). A copy from the Sent folder has no authentication results.
- Paste it into the email header analyzer above. The whole message source works too; the body is ignored.
- Press Analyze header and read the summary: authenticated, warnings, or problems found.
- Check the Authentication cards. SPF, DKIM and DMARC should all say pass, and at least one of SPF or DKIM should say “aligned”.
- Read “What we found” for every problem in order of severity, then the spam filter verdicts if the receiver was Microsoft 365 or ran SpamAssassin.
- Follow the delivery path to see where time was lost, then use the links under the report to check the DNS records behind any failure.
No email to hand? Use Try a sample to analyze email headers from a clean Gmail-to-Outlook delivery and from a spoofed email.
How to get the full email header in every mail app
Mail apps hide the header but all of them can show it. Copy everything from the first line down to the first blank line, or copy the whole source.
| Mail app | Where to find the email header |
|---|---|
| Gmail (web) | Open the email, click the three dots next to Reply, choose Show original, then Copy to clipboard. |
| New Outlook, Outlook on the web | Open the email, choose More actions (…), then View, then View message source. |
| Classic Outlook for Windows | Double-click the email to open it, choose File, then Properties. Copy the Internet headers box. |
| Outlook for Mac | Right-click the email and choose View Source. |
| Apple Mail | View, then Message, then Raw Source (Option-Command-U). |
| Yahoo Mail | Open the email, click the three dots (More), choose View raw message. |
| Thunderbird | View, then Message Source (Ctrl-U or Command-U). |
| Phone apps | The Gmail, Outlook and Apple Mail phone apps cannot show headers. Open the same email in a browser or desktop app. |
How to read email headers: the fields that matter
A full header can run past a hundred lines, but a handful of fields carry most of the meaning. To read email headers well, start with these:
| Header | What it tells you |
|---|---|
From | The sender the reader sees. This is the domain DMARC protects, and the only one most people check. |
Return-Path | Where bounces go, also called the envelope sender or MAIL FROM. SPF is checked against this domain. |
Reply-To | Where replies go, if different from From. On another domain it is a classic phishing sign. |
Received | One line per server the email passed through, newest at the top. Each names the server it came from, the server that took it, and a timestamp. |
Authentication-Results | The receiving server’s verdict on SPF, DKIM and DMARC. The top one is the final receiver’s. |
Received-SPF | The SPF result on its own, with the connecting IP (client-ip). |
DKIM-Signature | The signature: signing domain (d=), selector (s=), algorithm and the headers it covers. |
ARC-Seal, ARC-* | Authentication results carried through forwarding services and mailing lists, so they survive the forward. |
Message-ID | A unique ID set by the sending server. Its domain often reveals the platform, such as @mail.gmail.com. |
X-Forefront-Antispam-Report, X-Microsoft-Antispam | Microsoft 365’s spam verdict: SCL, BCL, SFV, CAT and more. |
List-Unsubscribe, List-Unsubscribe-Post | The unsubscribe link mail apps show, and the one-click unsubscribe Gmail and Yahoo require from bulk senders. |
Authentication-Results: SPF, DKIM, DMARC and alignment
The Authentication-Results line is the heart of any email header. A clean one from Gmail looks like this:
Authentication-Results: mx.google.com; dkim=pass header.i=@yourdomain.com header.s=google; spf=pass smtp.mailfrom=you@yourdomain.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yourdomain.com
- spf=pass means the sending server’s IP is listed in the SPF record of the
smtp.mailfromdomain. Test any IP against your record with the SPF checker. - dkim=pass means the signature verified with the public key published under the selector (
header.s) for the signing domain. Check that key with the DKIM checker. - dmarc=pass means SPF or DKIM passed for a domain that matches the From domain.
p=is the domain’s policy anddis=is what the receiver actually did. Check the policy with the DMARC checker.
That middle step is DMARC alignment, and it is where most failures hide. SPF can pass for your email service’s bounce domain and DKIM can pass for the service’s own domain, yet DMARC still fails because neither matches your From address. This email header analyzer works out alignment itself and labels each result “aligned” or “not aligned”, so you see the cause straight away. Microsoft adds compauth, its composite verdict that also weighs reputation; compauth=fail is treated as spoofing.
The Received chain: tracing hops and delays
Each server that handles an email adds a Received line at the top, so the chain reads newest first. To trace an email, read the Received lines from the bottom up: the lowest is where the email started, the highest is the server that put it in the inbox. The email header analyzer turns them the right way round and shows, for each hop, the server it came from, its IP address, the server that took it, whether TLS was used, and how long it took since the hop before.
- Delays of a few seconds are normal. A hop of minutes usually means greylisting, a queue on the sending side or a busy filter. The analyzer flags any hop over five minutes.
- Negative delays mean one server’s clock is wrong. It does not affect delivery.
- Private IPs (10.x, 172.16 to 31.x, 192.168.x) are inside the sender’s network. The first public IP is the server that connected to the outside world, and the one to check against SPF and blacklists.
- TLS shows as a version (TLS 1.3, TLS 1.2) or a protocol such as ESMTPS. Not every server records it, so a missing note is not proof the hop was unencrypted.
Microsoft message header analyzer: SCL, BCL and the antispam report
When the recipient uses Microsoft 365 or Outlook.com, the header holds Microsoft’s whole spam verdict in a few coded fields. Microsoft’s own message header analyzer lists them; this one decodes them in the same report as everything else. The ones that decide where your email lands:
| Field | Value | Meaning |
|---|---|---|
| SCL (spam confidence level) | -1 | Filtering skipped: trusted sender, internal mail or a mail flow rule |
| 0, 1 | Not spam: delivered to the inbox | |
| 5, 6 | Spam: delivered to the Junk Email folder | |
| 8, 9 | High-confidence spam: Junk or quarantine | |
| BCL (bulk complaint level) | 0 | Not bulk mail |
| 1 to 3 | Bulk mail from a sender with few complaints | |
| 4 to 7 | Bulk mail with a mixed record; the default policy acts at 7 | |
| 8, 9 | Bulk mail from a sender with many complaints | |
| SFV (spam filter verdict) | NSPM, SPM, SKA, SKB, SFE, BLK | Not spam, spam, allowed by an allow list, blocked by a block list, on the user’s Safe Senders, on the user’s Blocked Senders |
| CAT (category) | NONE, BULK, SPM, HSPM, PHSH, SPOOF | The protection that acted: none, bulk, spam, high-confidence spam, phishing, spoofing |
| dest (delivery folder) | I, J | Delivered to the Inbox, or to the Junk Email folder |
SCL, SFV, CAT, CIP (connecting IP), CTRY and PTR are in X-Forefront-Antispam-Report; BCL is in X-Microsoft-Antispam; the folder is in X-Microsoft-Antispam-Mailbox-Delivery as dest:I or dest:J. A cold email that passes SPF, DKIM and DMARC but shows SCL 5 or dest:J has a reputation or content problem, not a DNS one. Paste any email from an Outlook or Microsoft 365 mailbox into the message header analyzer above to decode these fields.
Gmail header analyzer: reading a Gmail header
Gmail is quieter than Microsoft. It records SPF, DKIM and DMARC in Authentication-Results: mx.google.com and adds ARC-* headers, but it writes no spam score. Whether Gmail treated the email as spam shows only in the folder it landed in. Two parts of a Gmail header are still worth reading:
- The DMARC comment, such as
(p=REJECT sp=REJECT dis=QUARANTINE):dis=is what Gmail did after DMARC failed. - The first Received line from outside Google, which shows the server and IP that handed the email to Gmail.
Use this as a Gmail header analyzer in the same way: open the email, choose Show original, copy and paste. Google’s Show original page already shows SPF, DKIM and DMARC at the top; the email header analyzer adds alignment, the hop timings and the red flags.
Why did my cold email go to spam? What the header tells you
For cold email, the most useful header is one from your own test: send a campaign email to a Gmail and an Outlook address you own, then analyze email headers from both: paste each one above. Four problems turn up again and again:
- DKIM signs with Google’s or Microsoft’s domain, not yours. If you never set up DKIM, Google Workspace signs with a domain like
yourdomain-com.20230601.gappssmtp.comand Microsoft 365 withyourtenant.onmicrosoft.com. DKIM passes, but it does not align, so DMARC rests on SPF alone. The header shows this as “DKIM passed, but not for the From domain”. Turn on DKIM for your own domain in the admin console. - SPF is missing your provider. SPF softfail or fail for your own domain means the record does not include Google (
include:_spf.google.com) or Microsoft (include:spf.protection.outlook.com). - No DMARC record.
dmarc=nonemeans the domain has no policy. Gmail and Yahoo require one from bulk senders; publish at leastp=none. - Everything passes but the email still lands in Junk. Then the problem is reputation, not setup: SCL 5 or more, or
dest:J, on a new inbox usually means it sent too much too soon. Warm up new inboxes and keep each to a modest number of cold emails a day.
Cold email tools such as Instantly and Smartlead send through the Google Workspace or Microsoft 365 inboxes you connect, so the header shows Google or Microsoft as the sender. That means the inbox and domain setup decides most of what you see in the header. The full list is in the cold email deliverability checklist.
Spotting a spoofed or phishing email from its header
Phishing emails often look perfect in the inbox and fall apart in the header. Paste any suspicious email into the email header analyzer and look for these signs, all of which it flags:
- DMARC fail for a well-known brand’s domain: the email claims to be from a domain that did not authorise it.
- A display name that shows an email address different from the real From address, such as
"support@yourbank.com" <x@other-domain.net>. - A Reply-To on another domain, so your reply goes to the attacker.
- SPF or DKIM passing for an unrelated domain: the attacker authenticated their own domain, not the one you see.
- A first public hop from a server or country that has nothing to do with the sender, or a script mailer such as PHPMailer named as the client.
If an email fails these checks, do not click its links or reply. Report it as phishing in your mail app.
Email header checker or DNS checker: which one do you need?
An email header checker and a DNS record checker answer different questions. The header shows what happened to one email: which server sent it, what the receiver decided, and where it landed. A DNS checker shows how a domain is set up right now. Use the header to find which check failed, then fix it with the right DNS tool: the SPF checker (it can test the exact sending IP from the header), the DKIM checker, the DMARC checker or the MX lookup. The report above links straight to each one for the From domain, or test all four together in the free email deliverability test.
Is it safe to paste an email header?
A header holds the sender’s and recipient’s email addresses, server names, internal IP addresses and sometimes the subject. It does not hold the email body, attachments or passwords. Even so, it is worth keeping private. This email header viewer was built so the header never leaves your device: the analysis is plain code running in your browser, with no upload, no logging and nothing added to the page address. Close the tab and it is gone.
Want headers that pass every time? PureMail sets up Google Workspace and Microsoft 365 inboxes on your own domains with SPF, DKIM and DMARC aligned, in about four hours, from $2.90 an inbox.