Where to find the headers
- Gmail: open the message, click the three dots, then Show original.
- Outlook on the web: open the message, click the three dots, then View, then View message source.
- Apple Mail: View, then Message, then All Headers.
- Yahoo Mail: More, then View raw message.
The headers that matter most
- From: what you see. Easy to fake.
- Return-Path: where bounces go. SPF checks this domain.
- Reply-To: where your reply would go. A different domain than From is a warning sign.
- Received: one line per server hop, newest at the top.
- Authentication-Results: the receiving server's verdict on SPF, DKIM and DMARC.
Following the route
Start with the lowest Received line: that is where the message entered the internet. Each line above it is the next server. Large gaps between timestamps explain slow deliveries, and an unexpected country or hosting provider in the first hop can reveal a spoofed message.
Reading authentication results
spf=pass means the sending server was allowed to send for the Return-Path domain. dkim=pass means the content was signed by the domain in the signature and not changed. dmarc=pass means at least one of those passed and matches the visible From domain. When a message claims to be from your bank and shows dmarc=fail, delete it.
Do it automatically
Paste any header into our free email header analyzer to see the route, delays and authentication results laid out clearly. Inside our inbox, the Email X-ray does this for every message.
Walk through a real example
Authentication-Results: mx.yourprovider.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com; dmarc=pass header.from=gmail.com
Return-Path: <alex@gmail.com>
From: Alex <alex@gmail.com>
Reply-To: Alex <alex@gmail.com>
Read it like this: your provider received the message from a Google server. SPF, DKIM and DMARC all passed for gmail.com, which is also the From domain. Return-Path and Reply-To match. This is what a genuine personal Gmail message looks like.
The same thing, faked
From: "Your Bank Security" <alerts@yourbank.com>
Reply-To: support@secure-help.top
Here SPF passed, but for a completely different domain. There is no DKIM signature, and DMARC failed for the bank's domain. Replies would go to yet another domain. Every one of those is a warning sign, and together they are conclusive.
Reading Received lines in order
Each server adds a Received line at the top, so the list reads newest first. The first line is the one your provider added when it accepted the message. The last line is the one closest to the sender, and it is the easiest to fake. Read from the top until you reach a server you do not recognize; anything below that point was reported by servers you cannot verify.
Time stamps and delays
Each Received line ends with a date and time. Comparing them shows where a message was held up. A gap of hours between two lines usually means a server queued the message after a temporary error, such as greylisting or a full queue on the receiving side.
Headers you can ignore most of the time
Many headers are technical housekeeping: X-Mailer, MIME-Version, Content-Type, X-MS-Exchange lines and vendor-specific spam scores. They are useful when you debug a delivery problem, but when you only want to know whether a message is genuine, focus on four: Authentication-Results, From, Reply-To and the top Received lines. That is where the answer almost always is.
Your checklist
- Copy the full headers.
- Read Authentication-Results first.
- Follow Received lines from the top.
- Compare From, Reply-To and Return-Path.
Terms used on this page
- SPF
- Sender Policy Framework, a DNS record listing which servers may send mail for a domain, helping receivers detect spoofing.
- DKIM
- DomainKeys Identified Mail, a cryptographic signature added to emails so receivers can verify they weren't altered and came from the domain.
- DMARC
- A policy that tells receivers what to do with mail failing SPF or DKIM checks, and where to send reports.
- Phishing
- A fraudulent message designed to trick people into revealing passwords, codes or payment details, or into installing malware.
- Return-Path
- The address that receives bounce messages, also called the envelope sender or MAIL FROM.
- Reply-To
- An email header that tells mail apps where replies should go, which can be different from the sender address.
- Email header
- Metadata at the top of a message (sender, recipients, date, routing, authentication results).
- MIME
- Multipurpose Internet Mail Extensions, the standard that lets emails contain HTML, attachments and non-English text.
Free tools for this
- SPF Checker: Validate SPF, spot multiple records and estimate DNS lookups.
- DKIM Checker: Fetch a DKIM public key by domain and selector.
- DMARC Checker: See any domain's DMARC policy and what it means.
Related guides
FAQ
Can headers be faked?
Lines added before the message reached your provider can be forged. The Authentication-Results line added by your own provider is the one to trust.
Is it safe to share headers?
Headers can include your IP address and internal server names. Remove anything sensitive before posting them publicly.
Can headers show the sender's real IP address?
Sometimes. Large providers such as Gmail and Outlook usually do not include the sender's own device IP, only their own servers. Smaller servers and some apps do include it.
Are headers ever hidden by my provider?
Some internal headers are removed, but the key ones are always available in the full source.
Can I see headers on a phone?
The Gmail and Outlook apps make it hard. Use the web version on a computer.
What does "via" mean next to a sender in Gmail?
It means the message was sent by a different domain than the one in From, often an email platform.