E-mail header analyzer
See where an e-mail came from, which servers it passed and whether SPF, DKIM and DMARC passed. Copy the headers from "Show original" or "View source" in your mail program.
Copying the complete header
How to read e-mail headers shows where each mail program keeps the full header. Lines still get lost easily:
- Don't forward the mail. A forwarded message gets a fresh header. Forward it as an attachment instead.
- Select everything. The "Internet headers" box in Outlook for Windows is small. Click into it, then Ctrl+A and Ctrl+C.
- In Gmail, copy only the source. The SPF, DKIM and DMARC summary above it on "Show original" is not part of the header. Use the "Copy to clipboard" button.
- The whole source works too. Only the part up to the first blank line is analyzed. Above 64 KB, copy just that part.
- Mind what is in it. Headers can contain your address, internal server names and sometimes the sending device's IP address, for example in
X-Originating-IP. Use placeholders before posting a header publicly. This analysis stores nothing, but not every online tool works that way.
Finding where a mail lost time
Under "Route of the message", each stop shows the time since the previous one. Where the largest gap sits tells you who caused the delay:
- Between the first stops, still at the sender: the mail waited in the sender's queue. Newsletter services often send large lists in batches.
- At the handover to the recipient's server: the sender could not get through or was told to retry. A common reason is greylisting: the receiver temporarily turns away the first attempt from an unknown sender and only accepts a later one.
- Between two of the recipient's servers: the time was lost at your own provider, usually during spam or virus scanning.
If Date is well before the first Received line, the mail sat in an outbox, for example on a phone without signal, or the sender's clock is off. Negative gaps show as 0 and usually mean a server's clock is wrong.
Checking the sender: three domains
A mail names its sender three times: in the visible From, in the Return-Path that SPF checks and in the d= of the DKIM signature. Under "Checks recorded on the way", the tool compares the last two with the From domain.
A mismatched Return-Path alone is no alarm. Newsletter services often put their own domain there but sign with DKIM for the sender's domain, so DMARC passes through DKIM. It gets suspicious when both comparisons fail:
From: "Customer Service" <service@bank.example>
Return-Path: <x7@mailer.example.net>
DKIM-Signature: v=1; a=rsa-sha256; d=mailer.example.net; s=k1; ...
Authentication-Results: mx.example.com;
spf=pass smtp.mailfrom=mailer.example.net;
dkim=pass header.d=mailer.example.net;
dmarc=fail header.from=bank.example
SPF and DKIM pass, but for someone else's domain, which is exactly what DMARC catches. Three passes, in turn, only prove the mail comes from the From domain. Whether a domain like bank-security.example belongs to your bank at all is another question, covered in How to spot a phishing e-mail.
The most reliable detail is the IP address in square brackets on the line where your provider's server accepted the mail: it saw that connection itself. The name right after from usually comes from the sender. The tool compares main domains, so endings like .co.uk can trip it up.
Which Authentication-Results count
Every server that checks a mail adds its own Authentication-Results, starting with its name, mx.example.com in the example. Trust only your provider's: it was added last and sits on top. The tool takes each result from the topmost line that has one, and if a result comes from a lower line or from ARC, it says so below it. Lines below can come from stops on the way or from the sender.
softfail: the SPF record ends in~alland the sending server is not on it.noneandneutral: no record, or no statement.temperrorandpermerror: a temporary DNS problem, or a broken record such as two SPF records.- "not recorded": the pasted text has no result, often because part of the header is missing.
Forwarding often breaks SPF, since the forwarding server is not in the sender's record, and mailing lists that edit the subject or add a footer break DKIM. ARC (RFC 8617) helps here: each stop records what it saw in ARC-Authentication-Results and seals it with ARC-Message-Signature and ARC-Seal, numbered i=1, i=2 and so on. The final receiver can rely on that if it trusts the stop. Only if no Authentication-Results line has a result does the tool fall back to ARC-Authentication-Results.
Spam scores and the unsubscribe link
Spam filters such as SpamAssassin write their verdict into X-Spam-Status:
X-Spam-Status: No, score=2.1 required=5.0 tests=HTML_MESSAGE,...
Each rule adds or subtracts points; at the required value, 5 by default, the mail counts as spam. The tool reads these SpamAssassin-style headers, not provider-specific ones such as Microsoft's X-Forefront-Antispam-Report. Senders can add a fake No too.
List-Unsubscribe names a web address, a mail address or both:
List-Unsubscribe: <https://example.com/unsubscribe?id=8f2c>, <mailto:unsubscribe@example.com>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
The second line makes it one-click unsubscribe under RFC 8058: the mail program sends a POST request to the web address, which must use https, with no page to open. The DKIM signature has to cover both lines. Gmail and Yahoo require one-click unsubscribe for marketing mail from bulk senders. Under "Unsubscribe link" the tool says whether one-click unsubscribe is offered: an https address plus the List-Unsubscribe-Post line. Whether the DKIM signature covers both lines, it does not check. Test your own newsletters with the mail tester.