Email header analyzer
Paste an email’s headers to see every server it passed through and how long each one held it, and whether SPF, DKIM and DMARC passed, with a check that the passing domains actually line up with the From address. Works with Gmail’s “Show original”, Outlook’s “Internet headers” and a saved .eml file.
How it works
- Route
- Every server that handles a message adds a
Receivedheader at the top, so the bottom one is the oldest. The report turns them round, oldest first, with the delay at each hop and the slowest one marked. - Verdicts
- SPF, DKIM and DMARC as the receiving server recorded them in its
Authentication-Resultsheader: the topmost one, since lower ones could have been written by the sender. - Alignment
- Worked out here: whether the domain SPF checked and the DKIM signing domain line up with the From address, by the Public Suffix List’s organisational domains.
- Privacy
- Headers are sent to this site’s server to be read and aren’t put in the address bar. With the DNS box ticked, the sender’s domain and DKIM selector are looked up through public resolvers.
What this email header analyzer does
Every email carries a block of headers above the text you read. Most of it is a log: each mail server that handled the message adds a Received line saying where it got the message from and when, and the server that took it in for your mailbox adds its verdict on whether the sender was who they claimed to be. Mail programs hide all of this, and when you do open it, it is a hundred lines of dense text in reverse order.
Paste those headers here and they are turned into a report. The route runs oldest hop first, with the time each server held the message and the slowest hop marked, so a delivery that took 40 minutes shows where the 40 minutes went. The authentication section shows what the receiving server decided for SPF, DKIM and DMARC, explains each result in a sentence, and works out for itself whether the domains that passed actually line up with the From address, which is the rule behind most “why did this go to spam?” questions. Spam-filter scores from SpamAssassin and Microsoft 365 are decoded, and the sender’s DMARC record and DKIM key can be looked up live.
Why use this email header analyzer
Delays hop by hop
Every Received header in order, oldest first, with the time each server held the message, the slowest hop highlighted and clock skew explained.
SPF, DKIM and DMARC
The receiving server’s verdicts, each with a plain sentence on what it means and which server’s results were trusted.
Alignment worked out
Relaxed and strict alignment between the From domain and the SPF and DKIM domains, by the Public Suffix List’s organisational domains.
Many server formats
Postfix, Exim, Sendmail, qmail, Exchange, Microsoft 365 and Gmail, with any line it can’t take apart shown as written.
Spam scores decoded
SpamAssassin scores and rules, Microsoft’s SCL, BCL, filter verdict, category and delivery folder, and one-click unsubscribe.
Live DMARC and DKIM
Optionally looks up the From domain’s DMARC policy and the DKIM key each signature names, with its type and size.
What you can paste
| From | How to get it |
|---|---|
| Gmail | Open the message, ⋮ (More) → Show original, then copy the whole page or press Copy to clipboard. The summary box Gmail puts above the headers is recognised and skipped. |
| Outlook (Windows) | Open the message in its own window, File → Properties, and copy everything in Internet headers. |
| Outlook on the web, new Outlook | ⋯ (More actions) → View → View message source (or View message details). |
| Apple Mail | View → Message → All Headers, or Raw Source. |
| Thunderbird | View → Message Source (Ctrl+U). |
A saved .eml file | Open .eml file or drag it onto the box. Your browser reads only the part before the first blank line, which is the headers, and puts that in the box. (With JavaScript off, the file is uploaded and only its start is read.) |
A whole message pasted in is fine too: reading stops at the blank line where the body starts. Folded lines (a header continued on the next line), Windows or Unix line endings and encoded subjects and names like =?UTF-8?B?…?= are all handled.
How to use it
- Copy the headers from your mail program as above.
- Paste them into the box. Pasting into the empty box starts the analysis straight away; otherwise press Analyze headers (or Ctrl+Enter).
- Read the overview: the subject, the sender, how long delivery took after the message was written, three SPF / DKIM / DMARC badges, and a list of anything that needs attention.
- Check the route for where the time went, and the authentication section for why a message was trusted or not. Addresses link to the WHOIS lookup and domains to the DNS lookup.
Headers often contain names, addresses and internal server names, so the report has no shareable link and nothing goes into the address bar. To show someone a result, send them the headers or a screenshot.
Reading the route bottom-up
Each server adds its Received header at the top of the message, above the ones already there. So the headers read from the top go backwards in time: the first Received is the last server, the one that delivered to your mailbox; the bottom one is usually the sender’s own mail server. The report turns the list round so it reads like a journey.
Each hop shows the server it came from (with the address and its reverse-DNS name, and the name it greeted with if different), the server that received it, the protocol (ESMTPS means encrypted, ESMTPSA encrypted with a login, SMTP or ESMTP unencrypted), the TLS version and cipher when the server records them, and the time. The delay is the time since the hop before. The Date header comes first: it is set by the sender’s mail program, not by a server, so the first delay includes anything that happened before sending, like an outbox waiting for a connection or a scheduled send.
A negative delay isn’t an error in the report. Every server stamps its own clock, and when two clocks disagree by a few seconds, the later server can look earlier. Small negative numbers are clock skew; large ones mean a server’s clock or time zone is wrong. Received lines in a layout the tool can’t take apart (some gateways write free text) are shown as they are rather than dropped.
SPF, DKIM, DMARC and alignment
| Check | What it proves | Which domain |
|---|---|---|
| SPF | The server that connected is allowed to send for the envelope sender’s domain. | The Return-Path (envelope sender), which is often the mailing service’s bounce domain, not yours. |
| DKIM | A domain signed the message, and the signed headers and body weren’t changed since. | The signature’s d=, which is whatever domain holds the key: yours, or the service’s. |
| DMARC | SPF or DKIM passed for a domain that lines up with the From address, and what to do if not. | The From address people see. |
“Lines up” is alignment. With relaxed alignment, the default, two domains align when they share an organisational domain: mail.example.com and example.com do, example.net and example.com don’t. The organisational domain comes from the Public Suffix List, so shop.example.co.uk belongs to example.co.uk, not to co.uk. Strict alignment (adkim=s or aspf=s in a DMARC record) needs the exact same name. The report shows both for every domain, and uses the record’s own setting when the DNS lookup is on.
This is the check that catches mail sent through a newsletter, CRM or helpdesk service: SPF and DKIM pass, but for the service’s domains, so DMARC fails. The fix is in the service’s settings: authenticate your domain there, so it signs with DKIM as your domain.
Which results are trusted
Anyone can write an Authentication-Results header into a message before sending it. What counts is the one the receiving server added on arrival, which is the topmost one. The report takes its verdicts from that header, names the server that wrote it, and lists the others with a note. A results header that claims to come from your own provider but sits below the point where your provider took the message in was already in the message when it arrived, and is marked as such. ARC-Authentication-Results (written by forwarders and mailing lists to vouch for what they saw) and Received-SPF are shown too.
DKIM can’t be checked again from the headers: the signature covers the body as well, which a header paste doesn’t include. So the pass or fail you see is the receiving server’s. The alignment, which only needs the domains, is worked out here.
Spam filter headers decoded
| Header | What the report shows |
|---|---|
X-Spam-Status, X-Spam-Flag, X-Spam-Score | SpamAssassin’s verdict, score against the required score, and the rules that fired. |
X-MS-Exchange-Organization-SCL | Microsoft’s spam confidence level: −1 skipped, 0–1 not spam, 5–6 spam (Junk), 7–9 high confidence. |
X-Forefront-Antispam-Report | The filter verdict (SFV: NSPM, SPM, SKA…), the category (CAT: SPOOF, PHSH, BULK…), the connecting IP, country and reverse DNS. |
X-Microsoft-Antispam | The bulk complaint level (BCL, 0–9; 7 and above goes to Junk by default). |
X-Microsoft-Antispam-Mailbox-Delivery | Where it was delivered: dest:I inbox, dest:J Junk Email. |
List-Unsubscribe, List-Unsubscribe-Post | Whether the message offers unsubscribe links and one-click unsubscribe, which Gmail and Yahoo require from bulk senders. |
Gmail writes no spam verdict into the headers, so for Gmail the authentication results are the main clue.
Who it’s for
Headers answer the two questions people ask about email: where did it go, and why was it trusted or not.
For people who send newsletters
See why your campaign lands in spam: a passing SPF and DKIM that don’t align with your From domain is the usual culprit.
For mail and IT admins
Find the hop that held a message for half an hour, check TLS on every hop and read Microsoft 365’s spam verdicts without decoding them by hand.
For anyone checking a suspicious email
See which server really sent it, whether its domain checks passed, and whether replies go somewhere other than the From address.
For support teams
When a customer says your mail never arrived or came late, their headers show exactly where it waited and what their provider decided.
Limits
- The verdicts are the receiver’s. DKIM signatures aren’t re-verified (the body is needed) and SPF isn’t re-run against today’s records; the report reads what the receiving server recorded.
- Times are only as good as the servers’ clocks. A delay is the difference between two servers’ time stamps, so a few seconds either way may be skew.
- The DNS lookup is of today’s records, not the ones in force when the message was sent. A key rotated since then shows as missing.
- Headers from your Sent folder have no
Receivedor results headers yet: they were copied before the message left. Ask the recipient for theirs. - Up to 256 KB of headers are read, far more than any real message has.
Frequently asked questions
How do I read email headers?
Read the Received lines from the bottom up: the bottom one is the first server, the top one the last. Then look at the topmost Authentication-Results, where the receiving server recorded SPF, DKIM and DMARC. Paste the headers above and both are laid out for you, oldest hop first.
Why did my email take so long to arrive?
Look at the delay on each hop. A long one means the server before it held the message: a sending queue (common at newsletter services), a retry after the receiver deferred it with greylisting, or a filter scanning it. A long gap between the Date header and the first server is on the sender’s side, such as a scheduled send or an outbox waiting for a connection.
Why did this email go to spam when SPF and DKIM passed?
Usually because they passed for the wrong domain. DMARC needs SPF or DKIM to pass for a domain that lines up with the From address. Mail sent through a mailing service often passes SPF for the service’s bounce domain and DKIM for the service’s own domain, so DMARC fails. Set up DKIM for your own domain in the service to fix it.
What is DMARC alignment?
The rule that the domain SPF checked (the Return-Path) or the DKIM signing domain (d=) must match the From domain. Relaxed alignment, the default, accepts any domain with the same organisational domain, so mail.example.com aligns with example.com; strict alignment needs the exact same name.
Can it verify DKIM signatures?
No. A DKIM signature covers the message body as well as some headers, and a header paste has no body, so nobody can re-verify it from headers alone. The report shows what the receiving server decided when it had the whole message, and reads the signature’s domain, selector and algorithm.
Which Authentication-Results header should I trust?
The topmost one, added by your own mail provider when the message arrived. Anything lower was already in the message and could have been written by the sender. The report says which server’s results it used, and marks a lower header that claims to be from your provider as suspicious.
What does a negative delay mean?
Clock skew: two servers’ clocks disagree, so the later server stamped an earlier time. A few seconds is normal; minutes or hours mean a wrong clock or time zone on one server. The message didn’t travel back in time.
What do SCL and BCL mean in Outlook headers?
They are Microsoft 365’s scores. SCL, the spam confidence level, runs from −1 (filtering skipped) through 0–1 (not spam) to 5–6 (spam, Junk folder) and 9 (high confidence spam). BCL, the bulk complaint level, rates bulk senders from 0 to 9 by how often their mail is reported; 7 and above goes to Junk by default.
Is it safe to paste my email headers here?
Headers hold names, email addresses, server names and IP addresses, but not the message text. They are sent to this site’s server to be read, never put into the address bar, and the report has no shareable link. With the DNS box ticked, the sender’s domain and DKIM selector are looked up through public DNS resolvers. See the privacy policy for what may be collected.
Can I upload an .eml file?
Yes: choose it with Open .eml file or drop it on the box. Your browser reads only the headers, the part above the first blank line, and puts them in the box. With JavaScript off, the file is uploaded and only its start is read.
Read the full story: Why did this email land in spam, or take 40 minutes? Reading the headers bottom-up (11 min read)
More network tools
- Find the Nearest Cloud Region: Test the latency from your browser to every region of AWS, Azure, Google Cloud, Oracle and 19 more cloud providers, live, and find the closest one.
- DNS Lookup & Health Check: Every DNS record of a domain, traced from the root servers and asked of its own nameservers, with each nameserver, mail server and DNSSEC key checked, and SPF expanded through every include.
- WHOIS: Who Owns a Domain or IP: WHOIS for a domain, IPv4 or IPv6 address, or AS number (ASN): who registered it, the registrar, when it expires and what its status codes mean, plus the network owner and abuse contact.
- SSL Certificate Checker: Expiry, Chain & TLS: Check a website’s SSL/TLS certificate: when it expires, whether the chain is complete, which names it covers, which TLS versions the server accepts, and who issued it.
- Website Redirect & Security Header Checker: Trace every HTTP redirect to the final address and review its security headers, cookies and CORS policy for HTTPS downgrades, loops and missing browser protections.