What is an e-mail header analyzer?
Every e-mail carries, above the text you read, a block of header lines that mail servers write as the message travels. They say who sent it, which servers handled it and when, whether the sender's domain passed its checks, and, when delivery fails, why. Mail programs hide them, and in raw form they are long, folded and full of encoded words, so reading them by hand is slow.
This analyzer takes the headers (or a whole .eml file) and shows the parts people usually look for. The summary lists From, To, Subject (with any RFC 2047 encoding decoded), the date in UTC, the Message-ID, Return-Path and the program that wrote the message. The authentication block shows SPF, DKIM and DMARC from the Authentication-Results header with both a colour and a word (pass, fail, none, softfail), so the result is clear without relying on colour. The route table lists every Received header from the oldest to the newest, with the server names, IP addresses, protocol and the time each hop added, which makes a slow delivery easy to find.
It also reads bounces. A delivery status notification (DSN) is the message a server sends back when it cannot deliver. The tool finds the failed recipient, the action (failed or delayed), the status such as 5.1.1, the remote server and the diagnostic text. It explains the enhanced status code of RFC 3463 and the SMTP reply code in plain words, and it tells you what usually fixes it. For OVH mail it also decodes the X-VR-SPAMCAUSE header into readable text.
One limit is important. The tool reports what the headers say. It does not verify a DKIM signature or query DNS for SPF, so "pass" is the receiving server's verdict, not a check made here. Everything runs in your browser and the message is not sent anywhere.
How to analyze a message
- Get the headers. In Gmail open the message menu and choose "Show original". In Apple Mail use View > Message > All Headers. In Thunderbird press Ctrl+U. In Outlook use File > Properties > Internet headers. You can also save the message as an
.emlfile. - Paste them in the box, or press "Open .eml file". The page starts with an example message.
- Read the summary first. Check that From matches who you expected and that the date is plausible.
- Look at the authentication block. Three passes are the healthy case. A fail on SPF or DMARC with a different Return-Path is a classic sign of forged mail.
- Read the route from the first row down. A delay of minutes between two hops points to the server that held the message.
- If the message is a bounce, read the bounce block for the code, the explanation and the suggestion.
Examples
A healthy message
SPF, DKIM and DMARC all show PASS, the Return-Path domain is the same as From, and four hops add up to a few seconds. Nothing to worry about.
A forged sender
spf=fail smtp.mailfrom=bad@evil.test
dmarc=fail header.from=bank.exampleThe From says a bank, but the server that sent it is not allowed to send for that domain. The tool also warns that the Return-Path domain is different.
User unknown
Action: failed
Status: 5.1.1
Diagnostic-Code: smtp; 550 5.1.1 <nobody@dest.example>: Recipient address rejectedThe code 5.1.1 is "bad destination mailbox address": the mailbox does not exist. Check the address for typos.
A slow delivery
A hop shows a delay of 40 minutes between two servers. That second server was the one that queued the message, so it is where to look, for example for greylisting or a full queue.
Common mistakes
- Pasting only part of the headers. A header can continue on lines that start with a space. Copy the whole block up to the blank line.
- Trusting the From line. It is typed by the sender. The route and the authentication results are the useful evidence.
- Reading the top Received as the origin. The top line is the last server, closest to you. The route table already reverses them.
- Comparing hop times across different zones. Each Received line has its own zone. The table converts all of them to UTC.
- Believing the first Received line from the sender. Anyone can add false lines at the bottom of a message. Trust the ones written by your own provider.
- Using this on an Outlook .msg file. The format is binary and is not supported. Copy the Internet headers from the message properties or save it as
.eml.
Frequently asked questions
Does it verify DKIM or SPF itself?
No. It reads the Authentication-Results header, which the receiving server wrote. Verifying a DKIM signature needs the sender's public key from DNS, and SPF needs a DNS lookup, and this page makes no network request.
What do the status codes like 5.1.1 mean?
The first digit is the class: 2 success, 4 a temporary failure the server will retry, 5 a permanent failure. The second is the subject, for example 1 for addressing and 7 for security or policy. The third is the detail. The HTTP status codes page covers a different protocol; for mail use the explanation shown in the bounce block.
Why is the delay negative?
Two servers disagree about the time. The tool marks it and warns that delays around it are not reliable.
Can it show where an IP is?
It lists the IP addresses of each hop and marks private ones. For the details of an address use the IPv4 address converter or the IPv6 analyzer.
Can I decode an encoded subject on its own?
Yes, with the MIME header decoder.