Reading and understanding email headers: Find the source of problems
Email headers contain valuable information about the journey an email has taken. By reading headers you can trace problems, identify spam, and understand why emails don't arrive. In this article, we explain how to read and interpret headers.
What are email headers?
Email headers are metadata attached to every email message. They contain information about:
- Sender and recipient
- Route the email has traveled
- Timestamps from each server
- Authentication results (SPF, DKIM, DMARC)
- Spam scores and filtering
Why view headers?
- Troubleshooting - Why isn't my email arriving?
- Spam analysis - Is this email legitimate?
- Trace delays - Where is the delay?
- Detect spoofing - Does this email really come from who it says?
Viewing headers
Gmail
- Open the email
- Click the three dots in the top right
- Choose "Show original
- You now see the full headers
Outlook (Web)
- Open the email
- Click the three dots
- Choose "View message details
Outlook (Desktop)
- Open the email in a separate window
- Go to File > Properties
- View the "Internet headers" section
Apple Mail
- Open the email
- Go to View > Message > All Headers
- Or press Cmd+Shift+H
Thunderbird
- Open the email
- Go to View > Headers > All
- Or press Ctrl+U for source view
Important header fields
From, To, Subject
From: john@example.com
To: mary@company.com
Subject: Meeting tomorrow
Note: The "From" field can be forged. Look at authentication headers for verification.
Received headers
The "Received" headers show the route of the email. They are read from bottom to top (oldest at bottom, newest at top).
Received: from mail.company.com (192.168.1.1)
by mx.receiver.com (10.0.0.1)
with ESMTPS id abc123
for <mary@company.com>;
Mon, 13 Jan 2025 10:30:00 +0100
Interpretation:
from mail.company.com- Sending serverby mx.receiver.com- Receiving serverwith ESMTPS- Secure connection (TLS)- Timestamp shows when this hop occurred
Authentication-Results
This is one of the most important headers for troubleshooting:
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of john@example.com designates 192.168.1.1 as permitted sender);
dkim=pass header.d=example.com;
dmarc=pass (p=QUARANTINE) header.from=example.com
Interpretation:
spf=pass- SPF check passed ✓dkim=pass- DKIM signature valid ✓dmarc=pass- DMARC policy followed ✓
Possible values:
| Status | Meaning |
|---|---|
| pass | Check passed |
| fail | Check failed - possible spoofing |
| softfail | Partially failed - suspicious |
| neutral | No policy found |
| none | No record present |
X-Spam headers
Spam filters often add their own headers:
X-Spam-Status: No, score=-1.2
X-Spam-Score: -1.2
X-Spam-Flag: NO
Interpretation:
- Negative score = less likely to be spam
- Score above threshold (often 5.0) = spam
Message-ID
Message-ID: <abc123@mail.example.com>
A unique identifier for this specific message. Useful for tracking and reference.
Troubleshooting with headers
Email not arriving
-
Check Authentication-Results
- SPF failed? Check your SPF record
- DKIM failed? Check your DKIM configuration
-
Check X-Spam headers
- High spam score? Your email is being filtered
-
Check the route
- Are there unexpected servers in the chain?
Email is delayed
- Analyze Received headers
- Calculate time between each hop
- Identify where the delay is
Detecting phishing/spoofing
-
Compare "From" with "Return-Path
From: support@bank.com Return-Path: <hacker@malicious.ru>⚠️ This is suspicious!
-
Check Authentication-Results
- SPF fail + DKIM fail = probably spoofing
Header analysis tools
MXToolbox Header Analyzer
- Go to mxtoolbox.com/EmailHeaders.aspx
- Paste the full headers
- Get a structured analysis
Google Admin Toolbox
- Go to toolbox.googleapps.com/apps/messageheader
- Paste headers
- See a timeline of the email route
Need help?
We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.
0 van 0 vonden dit nuttig