Email Header Analyser
Paste the raw headers of an email to trace its route server by server, spot delays, and read its SPF, DKIM, DMARC and ARC results.
In Gmail choose Show original; in Outlook open the message, then File › Properties › Internet headers (or More actions › View › View message details on the web); in Apple Mail use View › Message › All Headers. Pasting the whole message is fine: everything after the headers is ignored.
Analysed entirely in your browser. Nothing you paste is uploaded, stored or put in the page address.
Analysis
What email headers tell you
Every email carries a block of headers above the message you read. Some are written by the sender's mail program – From, To, Subject, Date, Message-ID – and can say anything the sender likes. Others are added by each server the message passes through on its way to you, and those are much harder to fake. Reading them lets you answer practical questions: did this really come from the company it claims to, why did it take an hour to arrive, and why did it land in spam?
This analyser unfolds the headers (long headers are wrapped onto several lines with leading spaces, per RFC 5322, and are joined back together first), then pulls out the delivery route, the authentication verdicts and anything that looks wrong. It runs entirely in your browser: the text you paste is never sent to our server, which matters because headers contain email addresses and internal server names.
Reading the Received hops
Each server that accepts the message adds a Received: line to the top of the headers, so the list reads newest first. The analyser reverses it: hop 1 is where the message started and the last hop is your own mail server. For each hop it shows the server that handed the message over (from), the server that accepted it (by), the protocol (with – ESMTPS or a TLS version means the connection was encrypted, ESMTPSA means the sender logged in), and the time.
The from part has two halves. The name written first is whatever the connecting machine called itself, which it can invent freely. The part in brackets, such as (mail.example.com [192.0.2.10]), was written by the receiving server: the reverse DNS name and the IP address it actually saw. That bracketed address is the one to trust, and it is the one linked to the WHOIS lookup.
Only the hops added by servers you trust are reliable. A spammer can put fake Received lines at the bottom of a message before sending it, so read upwards from your own provider's servers and treat anything below the first unfamiliar hop with suspicion.
Delays between hops
The delay shown for each hop is the time between that server's timestamp and the previous one (the first hop is measured against the Date header). Timestamps carry their own time-zone offsets, which are taken into account, so a hop stamped 09:12 +0100 and the next stamped 08:12 +0000 are seconds apart, not an hour. Delays of a few seconds are normal. Several minutes usually means greylisting (the receiver deliberately refuses the first attempt and waits for a retry), a queue on a busy server or slow content filtering. A negative delay means one server's clock is wrong, so delays around it cannot be trusted. Timestamps with no time zone are read as UTC and flagged.
Authentication results
- Authentication-Results is the receiving server's verdict on SPF, DKIM and DMARC. The topmost one, added by your own provider, is the one that counts; copies further down were added elsewhere and could have been forged.
- SPF checks that the sending server's IP address is authorised by the domain in the Return-Path (the envelope sender), which is often a mailing service's domain rather than the one you see in From.
- DKIM-Signature shows who signed the message:
d=is the signing domain,s=the selector used to find the public key in DNS, anda=the algorithm. A pass proves the signed headers and body were not changed in transit. - DMARC passes only if SPF or DKIM passes and the domain involved matches the visible From domain. That alignment check is why a message can pass SPF and DKIM yet still fail DMARC.
- ARC (Authenticated Received Chain) headers let forwarders and mailing lists vouch for the results they saw before they modified the message. Each set is numbered with
i=;cv=failmeans the chain is broken.
Warning signs
- A From domain that does not match the DKIM signing domain or the Return-Path. Normal for some newsletters sent by third parties; a red flag on a message claiming to be from your bank.
- A Reply-To pointing somewhere other than the sender – replies go to a different organisation from the one you think you are writing to.
- SPF, DKIM or DMARC failures, two From headers, a missing Message-ID, or a DKIM signature using the obsolete
rsa-sha1algorithm. - An origin IP address in an unexpected country or network. Follow the WHOIS link on any address to see who operates it.
What to do next
If you own the sending domain and mail is failing authentication, check its published records with the DMARC and DKIM checker, and the SPF lookup count with the SPF checker. If a hop is slow, the server named in that hop is where to look: its logs will explain the queueing. If you think a message is phishing, do not reply or click anything; report it to your provider, and in the UK forward it to the National Cyber Security Centre at report@phishing.gov.uk.
Limitations
The analyser reads what is written in the headers; it does not re-verify DKIM signatures or query DNS, so a pass is only as trustworthy as the server that wrote it. Mail programs differ in how much they show when you copy headers, and some strip the Received lines entirely. Received header formats are not fully standardised, so an unusual server may be summarised imperfectly, though the raw text of every header is always available in the list at the end of the analysis.
Common questions
How do I find the IP address an email was sent from?
The IP address an email was sent from is recorded in its Received headers. Each receiving server writes the address it actually saw in brackets, such as [192.0.2.10], next to the name the sender gave. Read upwards from your own provider's servers, because lines below the first unfamiliar hop may have been forged by the sender.
Can email headers be faked?
Email headers can be faked in part. The From, To, Subject and Date headers are written by the sender and can say anything, and a sender can also insert false Received lines before sending. Headers added afterwards by the servers that handled the message, particularly your own provider's, are much harder to fake and are the ones to trust.
Why can an email pass SPF and DKIM but fail DMARC?
An email can pass SPF and DKIM yet fail DMARC because DMARC also requires alignment. The domain that passed SPF or DKIM must match the domain in the visible From address. A message sent through a third-party service may pass both checks using that service's own domain, which proves nothing about the From address.
How can I tell where an email was delayed?
You can tell where an email was delayed by comparing the timestamps in its Received headers. Each server records the time it accepted the message, so the gap between two consecutive hops shows where the message waited. A delay of several minutes usually means greylisting, a queue on a busy server or slow content filtering.