Email Header Analyzer: Check SPF, DKIM and DMARC
Is that email really from your bank? Paste the header to read SPF, DKIM and DMARC results and the delivery route, with a spoofed example.
Contents
An email arrives from your bank saying “Your account has been temporarily suspended.” The wording is polite, and the sender name is the bank’s name. Before opening the link, you want to check whether it is real.
The sender name and sender fields shown on screen can be written freely by whoever sends the message. The clues you can trust are the records added by the server that received the email, and you cannot see them without displaying the header. In this article, I paste those records into the email header analyzer and walk through reading the signs of spoofing and the delivery route, comparing a fake example with a genuine one. What you paste is not sent anywhere; processing happens entirely in the browser.
Copy the header and paste it in
How to display the header differs by mail app. In Gmail, open the message, choose “Show original” from the “⋮” menu at the top right, and press “Copy to clipboard” in the new tab. In classic Outlook, it is the “Internet headers” box under “File” → “Properties”; in Thunderbird, it is the source that opens with Ctrl+U. The tool page also has steps for the main mail apps. Even if you paste the body too, everything up to the first blank line is read as the header.
Many mail apps on iPhone and Android cannot show the header. Open the same mailbox in a browser on a computer and display it there.
You paste it into the tool’s first input box. If you have a saved .eml file, you can load it with “Load an .eml file”. If you just want to try it, use the two sample buttons.
Here, press “Example: spoofed email”. Analysis starts automatically and the results appear below the input box.
Read the verdict heading and the list of reasons
The red heading you see first is the overall verdict: “There are strong signs of spoofing or fraud”. Below it, the reasons for that verdict are listed in order of importance.
The first reason in this example is “DMARC failed: no right to use mirai-bank.example”. DMARC checks whether a domain that passed either SPF or DKIM belongs to the same organization as the domain written in From. A fail means it could not be confirmed that the sender has the right to use mirai-bank.example in the From field. This result strongly suggests the on-screen sender was forged, and if you could look at only one item, it would be this DMARC result.
The second is Reply-To. The From field looks like info@mirai-bank.example, but the reply address is a free-mail address, mirai.bank.support@gmail.com. If you simply press “Reply”, your message goes not to the bank but to someone else’s account. That is an unnatural setup for an email claiming to come from a company or government agency.
The third, the SPF softfail, shows that the sending server is not on the list the domain authorizes. Because it is the result of a “don’t go as far as rejecting it” setting, it does not prove the message is fake on its own. Here it appears alongside the DMARC fail, so it reinforces the suspicion.
The fourth, the display name, is the trick of writing a genuine-looking address inside the display name, as in “Mirai Bank support@mirai-bank.example”. Smartphones often show only the display name, so the message looks as if it came from the real address.
The last, “no TLS record”, is treated as information (i). Servers record this in different ways, so it does not mean the message was necessarily unencrypted.
Back it up with the authentication and delivery route tables
Below the reasons come basic information such as the sender and subject, then tables of the SPF, DKIM and DMARC results and the delivery route. Rather than taking the verdict at face value, you can check the evidence here.
SPF is SOFTFAIL, DKIM is “No record” (no result was recorded), and DMARC is FAIL. There is no DKIM record because this email carries no digital signature, and if an unsigned email also fails SPF, there is no way left for it to satisfy DMARC. The “Domain policy” in the DMARC row shows that the domain owner has declared “please quarantine mail that fails authentication as spam”. You can read this as: the bank has protections in place, and an email that tried to get around them arrived anyway.
The delivery route table re-orders the Received headers from oldest to newest. In the example, the first row’s sender is localhost (192.168.1.10, a private address used inside homes and offices), and the second row, vps-1234.hosting.example.org (198.51.100.66), is the sender marked “← Sender”. It shows the message was sent not from the bank’s server but from a hosting company’s server. A note above the table explains that older records in the route can be forged by the sender, so the lower rows, added by the receiving servers, are more trustworthy.
What a genuine email looks like on the same screen
Looking only at the fake one does not give you a baseline. Press “Example: genuine email” and the input switches to a shipping notice from an online shop that passed authentication.
SPF, DKIM and DMARC are all PASS, and the DMARC domain policy is reject (mail that fails authentication is not accepted). The second row of the route also shows “ESMTPS / Encrypted”, meaning the message was handed over encrypted with TLS. In the fake example, there was no such encryption record, and five signs were listed among the reasons.
Passing authentication does not rule out a scam
However, a pass does not mean “this email came from the real bank”. All DMARC guarantees is that the From domain was not forged. If a fraudster registers a look-alike domain such as mirai-bank-login.example themselves, configures it correctly and sends from it, the message passes every authentication check.
Even when it passes, look at the “Sender domain” field in the basic information and check whether it matches the domain listed on the bank’s official website. Before opening a link, paying or entering personal information, verify through a channel separate from the email, such as a bookmarked official site, the official app or a phone number.
Using it to report and share
When you report a phishing email to your company’s IT department or to the support desk of an online shop or bank, press “Copy summary of results” to copy the verdict, sender, authentication results and delivery route as text. Headers contain your own email address and the names of internal servers, so redact them as needed before sharing. If you share an image, you can use the image mosaic and redaction tool.
If a Japanese subject or sender name is garbled and unreadable, the mojibake decoder can sometimes restore the original characters. Inside this tool too, encoded subjects and sender names such as =?ISO-2022-JP?B?…?= or =?UTF-8?B?…?= are converted to readable characters for display.
For an email that arrived late, look at “Time since previous hop” in the delivery route table. Hops with a large elapsed time are shown in red, which gives a clue about which relay point held the message up.
The standards I referred to are RFC 8601 for Authentication-Results, RFC 7208 for SPF, RFC 6376 for DKIM and RFC 7489 for DMARC, all published by the RFC Editor.