Email Header Analyzer
Paste the full headers of an email to see the path it took, the delay at each hop, and the SPF, DKIM and DMARC results the receiving server gave it. Runs in your browser.
How to use this tool
- Open the email and copy the full headers. Gmail: three dots, Show original. Outlook: File, Properties, Internet headers.
- Paste them in the box. The tool reads them in your browser.
- Look at Authentication-Results for pass or fail, and at the hop table for where the delay happened.
What to look for
If SPF and DKIM both fail, or pass for a domain that is not the From domain, DMARC fails and the mail lands in spam or bounces. The analyzer shows which domain each check passed for, so you can spot an alignment problem.
Slow mail? The hop table shows how long each server held the message. A big gap at one hop points to that server, often a spam filter or a queue.
Finding the slow hop
Each server adds a Received line with a time. The top line is the last server, the bottom one is the first. The table above turns that into a delay per hop, so the slow one stands out.
A few seconds per hop is normal. Minutes at one hop is usually greylisting (the receiver makes new senders retry), a busy spam filter, or a queue on the sending side.
A negative delay is not time travel. One server clock is wrong. Ignore that one hop and look at the rest.
Email header guide: how to read every line
How to view email headers in Gmail, Outlook and Apple Mail
Gmail: open the mail, three dots next to Reply, Show original. Outlook desktop: open the mail, File, Properties, the Internet headers box. Outlook on the web: three dots, View, View message source. Apple Mail: View, Message, All Headers. Yahoo: three dots, View raw message.
Copy everything above the message body and paste it into the analyzer.
How to read email headers
Read the Received lines from the bottom up. The bottom one is the first server, where the mail started. Each server above it added its line when it took the mail. The top line is the last server, the one that delivered it to you. Each line has a from, a by and a time.
Authentication-Results: spf, dkim and dmarc explained
The receiving server writes one Authentication-Results line with the verdict for each check: spf=pass, dkim=pass header.d=example.com, dmarc=pass. Look at the domain after each pass. If it is not the domain in the From line, DMARC alignment fails even with two passes.
How to tell if an email is spoofed from the headers
Compare the From address with the Return-Path and with the DKIM d= domain. A mail that says it is from your bank but passed SPF and DKIM for some random domain, or failed DMARC, is spoofed. Also check the first Received line: the sending IP should belong to the company, not a home connection in another country.
Find the original sender IP address
The IP in the lowest Received line that is outside your own provider is usually the real sender. Many webmail services hide the user IP and show only their own server. Use the IP lookup to see who owns an address.
Why is my email delayed? Finding the slow server
The analyzer computes the time between each hop. Seconds is normal. Minutes at one hop is greylisting, a spam filter scanning, or a queue on a busy server. Hours often means the sending server retried after a temporary rejection. The hop with the big gap is the one to look at.
X-headers: X-Spam-Status, X-MS-Exchange and others
Lines starting with X- are added by filters and providers. X-Spam-Status and X-Spam-Score show the spam filter verdict. Microsoft adds X-MS-Exchange-Organization-SCL, a spam confidence level from -1 to 9, 5 or more goes to junk. Google adds ARC seals when mail is forwarded.
Return-Path vs From vs Reply-To
From is what people see. Return-Path (envelope sender) is where bounces go and what SPF checks. Reply-To is where replies go. Phishing often uses a normal looking From with a Reply-To at a free mail address. Newsletters use their own Return-Path, which is why SPF passes for them and not for you.
Message-ID and tracing a mail
Every mail has a unique Message-ID. If you need your provider support to trace a lost or delayed mail, give them the Message-ID and the time. It is the fastest way for them to find it in the logs.
ARC headers and forwarded mail
When mail passes through a mailing list or forwarder, SPF breaks and DKIM may break. ARC lets the forwarder record what the results were before it touched the mail, so the final receiver can still trust it. You will see ARC-Seal, ARC-Message-Signature and ARC-Authentication-Results lines.
Analyze email headers in Outlook (new and classic)
Classic Outlook: double click the mail, File, Properties, copy from Internet headers. New Outlook and the web: three dots, View, View message details or message source. Paste the full text, including all Received lines.
Email header analyzer for Office 365 delays
Microsoft adds its own hops with names like *.prod.outlook.com and *.protection.outlook.com. Delays inside those are on Microsoft side, often message trace in the Exchange admin center explains them. Delays before them are on the sender side.
Check SPF, DKIM and DMARC from an email header
Find the Authentication-Results line written by your own provider (the top one). Pass for all three with your domain is ideal. A dmarc=fail with action=quarantine explains why a mail went to spam.
X-Originating-IP and the real sender
Some webmail services add X-Originating-IP with the user IP, many have removed it for privacy. Without it, the first external Received line shows the sending server, not the person.
Received-SPF header
Some servers add a separate Received-SPF line explaining the SPF verdict and the IP that was checked. Useful when the Authentication-Results line is short.
Email header analyzer for phishing investigation
Check: does Return-Path match From? Did SPF, DKIM and DMARC pass for the From domain? Does the first Received line come from the company servers or from an unrelated host? Is Reply-To a different address? Two or more mismatches means treat it as phishing.
Why are there so many Received lines?
Each server and filter adds one: the sender, their outbound filter, your inbound gateway, spam filter, mailbox server. Ten or more is normal for business mail through security gateways.
Timezone in email headers
Each timestamp includes an offset like +0000 or -0500. The analyzer converts them to compute the gaps. A big negative gap means a server clock is wrong, not that the mail went back in time.
Frequently asked questions
Is it safe to paste headers?
Headers contain addresses and server names but not the message body. They are parsed in your browser and never sent to us.
dkim=fail (body hash did not verify)
Something changed the message after it was signed, usually a footer, disclaimer or mailing list. Sign after that step, or exclude it.
Why are the times out of order?
Server clocks are not always right. A negative delay just means one clock is off.
Related tools
- DKIM checker: check the record the header points to
- DMARC checker: see the policy that was applied
- Phishing link checker: check links in a suspicious mail
- Email signature generator: HTML signature for Outlook and Gmail