Email Header Analyzer
Operator: Abdulla Al Fahad. How tools are built and checked
The headers of an email are its flight recorder: every server that handled the message added a Received line, and the receiving server usually wrote down whether SPF, DKIM and DMARC passed. They are also unreadable in the raw, one long folded line per hop, listed newest first.
Key features
- Received hops reordered oldest first, with from, by, protocol, TLS mention, timestamp, the delay since the previous hop and a bar chart of the delays
- Authentication-Results parsed into methods, results and properties such as smtp.mailfrom, header.d and header.from, plus Received-SPF and DKIM-Signature details
- ARC chains checked for contiguous instance numbers, complete sets and consistent cv values
- An alignment section that explains, in words, how the SPF and DKIM domains relate to the From domain
- Spam-filter headers from SpamAssassin, Rspamd and Microsoft filters read into scores
- A list of indicators such as a Reply-To on another domain or a display name that contains a different address
How Received, Authentication-Results and ARC headers are read
Headers are unfolded (a line that starts with a space or tab continues the one before). Addresses are read before anything is decoded: the address is taken from the last <...> outside quotes and comments, and only then are encoded words such as =?UTF-8?B?...?= in the display name decoded, as RFC 2047 requires. That order matters, because a display name written as "PayPal Support <support@paypal.com>", quoted or encoded, would otherwise be mistaken for the sender. A Received header has the shape from X by Y with PROTOCOL id Z for ADDRESS; DATE, and the page pulls those parts out, takes the first IPv4 or IPv6 address from the from clause, and reads the date after the last semicolon. A hop's delay is its timestamp minus the previous hop's, so a negative delay means the two servers' clocks disagree, and that is reported.
Authentication-Results follows RFC 8601: an authserv-id, then entries of the form method=result with optional reason and property=value pairs. The value after dmarc= is what the receiving server concluded; this page does not recompute it. ARC (RFC 8617) adds numbered sets of ARC-Seal, ARC-Message-Signature and ARC-Authentication-Results that mailing lists and forwarders use to preserve results; instance 1 states cv=none and each later one cv=pass when the earlier chain looked fine to it.
DMARC passes when SPF or DKIM passes and the domain that passed matches the From domain. Matching is by organisational domain (relaxed) or by exact domain (strict). The page works out both from the domains in the headers, using a hand-kept subset of the Public Suffix List (country suffixes such as co.uk, com.au, com.vn and gov.in, and hosting suffixes such as github.io) instead of the full list. A country suffix that is not on the subset is treated as a two-part suffix and the Alignment tab says so, so two unrelated .com.xx domains are never merged into one.
Authentication-Results can be written by anyone who can add a header, so only the receiving server's counts. The topmost header is used, with a note when its authserv-id matches no server named in the Received lines, and a header lower down is used only if its authserv-id is the server in the top Received line. Any other header is listed with a Not trusted badge, raised as an indicator and left out of the Alignment verdict.
How it works
Each domain comparison is made on facts in the header: the smtp.mailfrom or Return-Path domain for SPF, the header.d or the d= of the DKIM-Signature for DKIM, and the domain of the first From address. The explanation text states those facts and the conclusion that follows, for example that SPF passed for a bounce domain that does not align.
No DNS lookup is made. SPF records, DKIM keys and DMARC policies live in DNS, so the page cannot tell you whether a record exists or a signature verifies, only what the receiving server reported.
When this helps
- A support agent is told a receipt arrived 40 minutes late, pastes the headers and sees that almost all of the wait sits between two consecutive hops, which names the server that held the message.
- An IT administrator checks an invoice that came from an unfamiliar sender and sees a display name containing finance@vendor.example on a message sent from a different domain. The From line, whether the name is quoted or encoded, still resolves to the real sender address, and the mismatch is flagged.
- A deliverability engineer compares two newsletters and finds that one passes SPF only for the sending platform's domain, while the other aligns through DKIM with the brand's own domain.
- A postmaster reading a forwarded message finds ARC instance 2 stating cv=fail, which means that forwarder could not validate the chain it received, so later hops should not lean on the earlier results.
Opening a file
- Copy the full original headers from your mail client (Gmail: the three-dot menu, then Show original; new Outlook: open the message, then the three-dot menu, View, View message details; classic Outlook: File, Properties, Internet headers), or drop an .eml file.
- Press Analyze and read the Summary tab: sender fields, indicators and counts.
- Open Hops to see where the time went, and Authentication for the results the servers recorded.
- Open Alignment for the plain-language reading of SPF, DKIM and DMARC against the From domain.
Example
The bundled order-shipped message (four Received headers, sent through a mailing service)
From: "Shop Example Orders" <orders@shop.example>
Return-Path: <bounce-4412@bounce.mailer.example>
Reply-To: Support Desk <help@shop-support.example>
Authentication-Results: dkim=pass header.i=@shop.example; spf=pass smtp.mailfrom=bounce-4412@bounce.mailer.example; dmarc=pass header.from=shop.exampleHops, alignment and indicators
4 hops, 43 s first to last: delays 1 s, 41 s, 1 s
SPF passed for bounce.mailer.example, which does not align with shop.example; DKIM d=shop.example passed and aligns, so DMARC is satisfied through DKIM
3 indicators: Reply-To points to a different domain (check), Return-Path domain differs (note), 2 hops mention no TLS (note)Tips for best results
- Read hops from the one where the message first reaches a server you trust. Lines below it were written by systems you cannot vouch for, and anything in them could be forged.
- A DKIM-Signature x= tag only states an expiry time; compare it with the final hop's time, since mail that is delivered after x= should fail verification.
- A negative delay (drawn in amber) points to clock skew between two servers, not to a message that arrived before it was sent.
Limits
Anyone can add Received lines before the first trusted server, so only the hops written by servers you operate or trust carry weight.
Authentication-Results is only as good as the server that wrote it. A server that does not check DMARC may still write dmarc=none, and a sender that guesses your server's name can put it in a forged header's authserv-id; the page's trust rule narrows that risk but cannot remove it.
The organisational domain comes from a hand-kept suffix list. For a domain under an unusual public suffix, the relaxed-alignment verdict may be wrong, and the Alignment tab names the domains where it had to guess.
Indicators are signals, not a verdict. Legitimate mailing services trip several of them, and a message that trips none can still be fraudulent.
Headers pasted from some web clients are reformatted, with lines re-wrapped or headers dropped, which can hide the oldest hops.
Common errors and how to fix them
- "No header lines (Name: value) were found."
- The text does not contain lines like From: or Received:. Paste the message source, not the rendered message, and make sure nothing above the first header was added by the mail client.
What the indicators mean
Reply-To on another domain is marked as something to check because replies would go to a different party than the sender shown, which is the usual pattern in invoice fraud. A display name that contains an address on a different domain is marked the same way, since many mail apps show only the name. Internationalised domains, and Latin letters mixed with another script such as Cyrillic or Greek in the name or domain, are marked because they can imitate a familiar domain.
Notes are lower: a Return-Path or Message-ID domain that differs from the From domain is normal for any mailing service, and hops with no mention of TLS may simply not record it. The Summary tab lists them anyway so you can decide.
Which spam headers are read
X-Spam-Status, X-Spam-Score, X-Spam-Level, X-Spam-Flag, X-Rspamd-Score, X-Barracuda-Spam-Score, X-Forefront-Antispam-Report (SCL, SFV and CAT), X-Microsoft-Antispam (BCL), X-MS-Exchange-Organization-SCL and a few related headers are listed with their raw value and, when the layout is known, the number read from it. The page does not decide whether a score is good, because thresholds differ between installations: SpamAssassin writes its own threshold in the same header as required=5.0, and that is shown.
Frequently asked questions
Does it check SPF, DKIM and DMARC itself?
No. That needs DNS lookups and the original message bytes. It reports what the receiving server wrote, and states which server wrote it.
Is a long delay between two hops always queuing?
No. A delay is the difference between two servers' timestamps, so it mixes real waiting (greylisting, virus scanning, a retry after a temporary refusal) with any difference between their clocks. A negative delay, drawn in amber, is the clearest sign of clock skew; the page cannot tell the two causes apart for a positive one.
What does "Not trusted" next to an Authentication-Results header mean?
That header was not written by the receiving server as far as the headers show: it sits below the topmost one and names a different server. A sender can add such a header with passing results for its own domain, so the page lists it but leaves it out of the SPF, DKIM and DMARC reading.
Can it open a whole mailbox?
No. It analyses one message at a time. Only the header block at the top of an .eml file is read, so attachments do not slow it down.
Why is a message marked with a Return-Path difference if it is legitimate?
Because the page cannot know. Mailing services send with their own bounce domain on purpose; the note only tells you the two domains differ, and the Alignment tab then shows whether DKIM covers the gap.