Home › Tools › Email header analyzer
Email Header Analyzer
Not sure whether an email is really from who it claims? Paste its full headers to see the authentication results, mismatched senders and the route it took.
Headers contain email addresses and IP addresses. They are analysed in your browser and are never uploaded or stored.
How to find the headers
Gmail: open the message, choose the three-dot menu, then Show original, and copy the text at the top. Outlook: open the message, then File, Properties, and copy the Internet headers box. Apple Mail: choose View, Message, All Headers. Paste everything from the first header line down to the blank line.
What this check cannot tell you
We read the results your own mail provider recorded; we cannot re-verify signatures. Header-based checks can miss compromised real accounts and can flag legitimate mail sent through forwarding or mailing lists. When money, passwords or urgency are involved, confirm through the sender's official website or phone number.
Want to understand VPN protection?
Compare provider profiles using official sources and independent audits.
Guide
The Email Header Analyzer reads the SPF, DKIM and DMARC results that your own mail server wrote into a message's headers, compares sender, reply and bounce domains, and lists the delivery route. It runs entirely in your browser. It cannot re-verify signatures, and it trusts whichever result headers you paste, including forged ones.
What problem this tool solves and who needs it
The From line of an email is just text. Anyone can type a bank's name and address into it, and plain SMTP will carry the message. SPF, DKIM and DMARC were created to let receiving servers check that a message really came from where it claims, but the outcome is recorded in headers that most mail apps hide.
This tool surfaces those hidden lines. You paste the raw headers, and it shows the three authentication results, the addresses that matter (From, Reply-To, Return-Path, Message-ID, DKIM signing domains), a list of inconsistencies, and the sequence of servers that handled the message. The result is a verdict from no spoofing signs found to looks spoofed or malicious.
- Anyone who received an unexpected invoice, payment change or password notice and wants a second look before replying.
- Small-business owners and office managers who handle supplier emails and the occasional business email compromise attempt.
- IT helpers who receive a forwarded suspicious message and want a quick first pass before deeper investigation.
How it works, step by step
Everything below happens in the page's own JavaScript. The code contains no network calls: pasted headers are not uploaded, saved to storage or logged. The privacy section covers this in more detail.
- Step 1
You paste the raw headers and press Analyze
The text box takes up to 200,000 characters. Nothing is parsed until you click, and Clear removes both the box and the result from memory. In Gmail, open the message, choose the three-dot menu, then Show original. In Outlook, use File, Properties. In Apple Mail, choose View, Message, All Headers.
- Step 2
The header block is isolated and unfolded
The parser takes everything up to the first blank line, joins continuation lines that begin with a space or tab, and splits each line into a name and a value. Names are lower-cased and a name can appear several times, as Received does.
- Step 3
The result headers are read
It reads spf, dkim and dmarc outcomes from every Authentication-Results header and from every ARC-Authentication-Results header. If no SPF outcome appears there, it falls back to the first word of Received-SPF. Where several outcomes exist it reports the worst one, except for DKIM, where a single passing signature is enough.
- Step 4
Addresses and domains are compared
The tool extracts domains from From, Reply-To, Return-Path, Message-ID and the d= value of each DKIM-Signature. It compares them by organisational domain, using the last two labels, or three for common two-level suffixes, rather than the full Public Suffix List.
- Step 5
Findings are scored and a route is built
Each finding carries 0.5, 2 or 4 points. The total decides the verdict using the same thresholds as our link checker. The Received headers are reversed so the oldest hop is first, and each shows from, by and an IP address where one is found.
| Finding | Triggered when | Points |
|---|---|---|
| SPF fail | Result is fail | 4 |
| SPF soft fail or permanent error | Result is softfail or permerror | 2 |
| DKIM fail | Result is fail or permerror | 4 |
| DMARC fail | Result is fail or permerror | 4 |
| SPF, DKIM or DMARC missing | Result is none or not reported | 0.5 each |
| Display name spoof | The display name contains a domain different from the real sending address | 4 |
| Return-Path mismatch | Bounce domain differs from the From domain | 2 |
| Reply-To mismatch | Replies would go to a different domain | 2 |
| DKIM misaligned | No signing domain matches the From domain | 2 |
| No authentication results | No result headers at all | 0.5 |
A verdict of looks spoofed or malicious needs 6 or more points, or 4.5 or more with at least one risk-level finding. Be careful starts at 2 points. Below that the verdict is no spoofing signs found.
How to read the results
First recall what each protocol proves. SPF checks whether the connecting server is authorised by the domain used in the SMTP envelope (the Return-Path). DKIM checks a cryptographic signature from a domain named in d=, which proves the signed content was not changed but does not by itself say the signing domain matches the visible From address. DMARC, since replaced by RFC 9989, ties these together: at least one of SPF or DKIM must pass and its domain must align with the visible From domain.
| Case | What the headers show | Tool verdict |
|---|---|---|
| Fake supplier invoice | From billing@supplier-co.example, spf=fail, no DKIM, dmarc=fail | Looks spoofed: SPF fail (4) + DMARC fail (4) + DKIM missing (0.5) = 8.5 |
| Genuine newsletter sent through a mailing platform | spf, dkim and dmarc all pass; Return-Path on the platform's domain; Message-ID from the platform | Be careful: Return-Path mismatch (2) + Message-ID mismatch (0.5) = 2.5, even though authentication passed |
| Display-name impersonation from a free mailbox | Display name shows support@bank.example but the address is a free-mail account; Reply-To also differs | Looks spoofed: display name spoof (4) + Reply-To mismatch (2) = 6 |
| Mail from a small company with no DMARC record | spf=pass, dkim=pass, dmarc=none | No spoofing signs: only 0.5 points for missing DMARC |
The second row is the most useful lesson. An authenticated message from a legitimate sending platform is common, and domain mismatches that are normal for bulk mail can still lift the verdict to caution. Read the finding list, not just the colour. The third row shows the opposite: authentication can pass for a message that is still fraudulent, if the attacker sends from a domain they control and the display name does the impersonating.
Limitations, false positives and false negatives
- It reads results; it does not verify them. The tool cannot fetch DNS records or re-check a signature. It believes the Authentication-Results lines you paste. RFC 8601 describes that header as trustworthy only if the receiving system strips untrusted copies, so a forged line added by the sender and left in place would be read as genuine. The code does not check which server (the authserv-id) wrote a line.
- Forwarding and mailing lists break checks. Forwarders can change the envelope sender and so cause SPF to fail on mail that was legitimate when sent. The tool merges ARC-Authentication-Results headers and reports the worst outcome, so an SPF failure recorded at an earlier hop can show even when the final server's DMARC evaluation passed.
- A compromised real account passes everything. If a genuine mailbox has been taken over, SPF, DKIM and DMARC all pass and the tool will report no spoofing signs.
- Lookalike domains authenticate fine. A message from a domain that looks like a real one but belongs to an attacker can pass all three checks, because the attacker controls the look-alike domain's DNS. The tool compares domains, but has no list of brands.
- A display name that looks like a domain can cause a false positive. A name such as john.smith contains a dot and letters, and the display-name check can read it as a domain.
- The Received parser looks for any run of hexadecimal characters and colons to find an IPv6 address, so a hex-like word in a server name, or a time such as 10:15:30, can be reported as the IP address in place of the real one.
Privacy and data handling
Headers are sensitive. They contain the sender's and recipient's email addresses, internal server names, IP addresses and message subjects. The component that powers this tool does not call the network at all: it parses the pasted text with a local function, holds the result in the page's memory and discards it when you press Clear or leave the page.
We do not receive, store or log what you paste. There is also no use of browser storage for the text. That is a property of how this page was written, and you can check it yourself by opening your browser's developer tools and watching the network tab while you press Analyze: no request should be sent. Our site does load analytics once you consent to them, but the page code does not pass the text box content to them.
When to use something else
- Your mail provider's own warnings and its report-phishing button. They have the DNS and reputation data this tool does not.
- The RFCs when you need exact behaviour: SPF, DKIM, DMARC and Authentication-Results.
- The M3AAWG email authentication best-practices document and Google's bulk sender guidelines, if you operate a domain and want to set up authentication correctly.
- Our link safety checker for any URL inside the message. This tool never examines links in the body.
How this relates to VPN use
A VPN has no effect on a message that has already arrived. The headers record the path the message took between mail servers, which does not include your device and never passed through your tunnel. Turning a VPN on or off cannot change SPF, DKIM or DMARC results for mail you received.
A VPN can matter in one narrow case: mail you send. Some mail services include the address of the connecting client in the headers, and a VPN would replace that with its exit address. Many large webmail providers do not expose it. A VPN also does not prevent spoofed mail from reaching you, and it does not protect an account that is lured to a fake sign-in page. For the broader picture, see AI phishing and deepfakes and VPN and two-factor authentication. A VPN is not a substitute for checking suspicious mail.
Troubleshooting
- That does not look like email headers: the text must contain From:, Received: or Authentication-Results: lines. Copy from the first header line and include the whole block.
- SPF shows fail on mail you expect to be genuine: look for forwarding or a mailing list in the route and check whether DKIM and DMARC passed.
- An IP in the route looks odd: it may be a hex-like word or time matched in error. Check the original Received line.
Frequently asked questions
- Are the email headers I paste uploaded to your server?
- No. The analyzer runs only in your browser and the component makes no network request. The text stays in page memory until you press Clear or leave. You can confirm this by watching your browser's network tab while you press Analyze. Even so, avoid pasting headers you do not need to analyze.
- What do SPF, DKIM and DMARC each tell me?
- SPF says whether the sending server is authorised for the envelope domain. DKIM says whether a signature from a named domain still matches the signed content. DMARC requires one of them to pass and align with the visible From domain. None of them proves a message is honest, only where it came from.
- If all three checks pass, is the email safe?
- No. Passing means the message is consistent with the sending domain's policy. A taken-over genuine account, or a look-alike domain the attacker controls, will pass all three. Check the request itself: urgency, payment changes and login links deserve confirmation through a separate channel.
- Can someone fake the Authentication-Results header?
- Yes, if the receiving system does not remove untrusted copies. RFC 8601 says the header has no integrity protection of its own and relies on the receiving server stripping forged versions. The tool does not verify which server wrote a line, so use headers from your own provider's copy of the message.
- Why does a legitimate newsletter get a caution result?
- Bulk mail often uses a sending platform's bounce domain and Message-ID, which the tool reads as mismatches with the visible From domain, adding 2.5 points even though authentication passed. The finding list names each reason, so check whether SPF, DKIM and DMARC passed before treating the message as suspect.
- Does a VPN change any of the results?
- No. The headers describe how the message travelled between mail servers before it reached you, so your VPN status cannot alter them. A VPN encrypts your own connection and hides your IP, but it does not stop spoofed mail, and it is no replacement for checking sender authentication.
Sources
Facts on this page were last checked against the sources below on 2026-10-23. VPN Advisor does not run its own speed, streaming or leak tests; see how we work.
- RFC 7208: Sender Policy Framework (SPF) — Result values, HELO and MAIL FROM identities, forwarding limitation, 10-lookup limit
- RFC 6376: DomainKeys Identified Mail (DKIM) Signatures — d= and s= tags, what is signed, the l= tag risk, DKIM does not assert the From address
- RFC 7489: DMARC (obsoleted by RFC 9989) — Identifier alignment and policy values; page notes it has been replaced
- RFC 9989: DMARC (current) — Obsoletes RFC 7489; adds np and psd tags and the DNS tree walk
- RFC 8601: Message Header Field for Indicating Message Authentication Status — authserv-id, trust boundary, removal of forged header copies, security considerations
- RFC 5321: Simple Mail Transfer Protocol — Received trace fields added by each relay
- Google Workspace Admin Help: Email sender guidelines — SPF, DKIM and DMARC requirements and alignment for bulk senders
- M3AAWG: Email Authentication Recommended Best Practices (September 2020) — Sender recommendations for SPF, DKIM, DMARC and ARC