Free tool

Email header analyzer

Paste the raw headers of a message. The tool unfolds them, lists the servers the message passed through in order, and shows the sender checks the receiving server recorded.

Runs in your browser. Nothing you enter is sent to InboxNight.

Paste the headers or the whole message, 20 to 20,000 characters. Reading stops at the first blank line.

How to use it

  1. Open the message in your mail app and choose the option that shows the original message, often called "Show original", "View source" or "Message headers", then copy the headers.
  2. Paste the text into the box, between 20 and 20,000 characters. A whole message works too: reading stops at the first blank line.
  3. Read the summary first: From, To, Subject, Date and Message-ID.
  4. Follow the route from the first server to the last. Each step shows the sending host, the receiving host and the time the receiving server wrote down.
  5. Check the authentication results, then the findings: each is marked high, medium or info, and covers the sender name, the Return-Path, the Reply-To address and the slowest step.

How the headers are read

The tool follows fixed rules and never judges a message as safe or unsafe. It reports what the headers say.

  1. A line that starts with a space or tab belongs to the line above it. Duplicate headers are kept in order, and reading stops at the first blank line.
  2. Received lines are read from the bottom up, because each server adds its line on top. The oldest server is hop 1.
  3. SPF, DKIM and DMARC results come from the Authentication-Results lines the receiving server wrote. If there are none, the tool falls back to a Received-SPF line for SPF only.
  4. The first result of each kind drives its finding. A fail is high, a soft fail, a permanent error or a temporary error is medium, and anything else is info.
  5. The sender is the address in the last angle brackets of From. An address planted in the shown name is a high finding.
  6. A Return-Path domain that is not the From domain or a parent or subdomain of it is a medium finding. A Reply-To on a different domain is medium, and on the same organisation it is info.
  7. The slowest step is reported when one hop came at least 60 seconds after the one before it.

What code decides

Nothing in this tool is guessed by a model. Every figure comes from the text you pasted.

  • The input must be 20 to 20,000 characters. Outside that, nothing is analysed and a message says why.
  • The gap between two hops is the difference between the times the two servers wrote down, in whole seconds. A clock that runs behind is shown as zero, never below.
  • A gap is shown only when both times can be read.
  • Lines that are neither a header nor a continuation are listed under the result, so nothing disappears silently.
  • Findings are sorted high first, then medium, then info, and keep their order within a level.

What this tool does not do

  • It does not decide that a message is safe, and a clean result is not a guarantee.
  • It does not run a new SPF, DKIM or DMARC check. It repeats the result a server wrote down.
  • It cannot tell whether a header was forged, because servers you do not control can write any header they like.
  • It does not look up an IP address or a domain.
  • It does not open attachments or links.

Worked examples

A message that passes every check

You enter: Headers with two Received lines, an Authentication-Results line showing spf=pass, dkim=pass and dmarc=pass, From invoices@brightmill.example and Return-Path bounce@brightmill.example.

You get: Two hops, the second 4 seconds after the first. Three info findings: SPF pass, DKIM pass and DMARC pass. No domain differences are reported.

A message that looks forged

You enter: The same headers, but From is "Billing invoices@brightmill.example" <pay@other.example>, Reply-To is refunds@thirdparty.example, and SPF and DMARC show fail.

You get: High findings: SPF fail, DMARC fail and "The shown name contains another address". Medium findings: the bounce path is on an unrelated domain and replies go to a different domain.

A paste with no checks in it

You enter: Only the From, To, Subject and Date lines copied from the top of a message.

You get: No hops and an info finding that no relay lines were found, plus an info finding that no check was stamped, and a note to paste the complete header block.

Common mistakes

  • Copying only part of the headers. The authentication lines and the Received lines are often near the bottom. Copy the whole block.
  • Reading a missing result as a failure. Results appear only if the receiving server wrote them. A missing result means the header was not in what you pasted.
  • Treating a different Reply-To as proof of fraud. Newsletters and support tools often use another domain. It is a prompt to look closer, not proof of anything.
  • Trusting the lowest Received lines. Lines added before the message reached your own provider come from servers you do not control, so they are the least reliable.

Questions and answers

What do SPF, DKIM and DMARC check?

SPF checks whether the sending server may send for the envelope domain. DKIM checks a signature on the message. DMARC checks that one of them lines up with the From domain. A pass tells you the check passed, nothing more.

Why does it say no check was stamped?

No server wrote an SPF, DKIM or DMARC result into what you pasted. Paste the complete header block of the message.

Why is a time gap missing between two hops?

A gap is shown only when both times can be read, and clocks on different servers can disagree.

Why is a pause of minutes at one server flagged?

It is reported as the slowest step. A pause of minutes is often a deliberate delay on the receiving side, so the tool marks it info.

Is my message sent anywhere?

No. The analysis runs in your browser and nothing you enter is sent to InboxNight.

Can I paste a whole message?

Yes. Reading stops at the first blank line, so only the headers are used.

Let rules tidy your inbox for you.