Back to Glossary
Email Structure

Email Header

Metadata at the top of an email containing routing information, authentication results, and sender details.

Definition

Email headers are lines of metadata at the beginning of an email message containing technical information about its journey. Headers include sender and recipient addresses, subject line, timestamps, server hops, authentication results (SPF, DKIM, DMARC), and message IDs. While mostly hidden from recipients, headers are essential for deliverability troubleshooting.

Why It Matters

Headers contain crucial information for diagnosing delivery problems. They show authentication pass/fail results, reveal the sending server path, and help identify why emails might be flagged as spam. Understanding headers helps troubleshoot deliverability issues and verify proper authentication setup.

How It Works

Each server handling an email adds header lines. Headers are processed bottom-to-top chronologically (newest at top). Common headers include From, To, Subject, Date, Message-ID, Received (showing server path), and Authentication-Results. Most email clients hide headers but allow viewing in message options.

Example

Example email headers (simplified):

Received: from mail.sender.com (192.168.1.1) by mx.gmail.com; Mon, 15 Jan 2024 10:30:00 -0800 Authentication-Results: mx.google.com; dkim=pass header.d=sender.com; spf=pass smtp.mailfrom=sender.com; dmarc=pass policy.dmarc=sender.com From: newsletter@sender.com To: recipient@gmail.com Subject: Your Weekly Update Date: Mon, 15 Jan 2024 10:29:55 -0800 Message-ID: <abc123@sender.com>

Best Practices

  • 1Learn to read headers for troubleshooting deliverability
  • 2Check Authentication-Results to verify SPF, DKIM, DMARC pass
  • 3Use header analyzers (like MXToolbox) to interpret complex headers
  • 4Monitor for unusual routing that might indicate problems
  • 5Ensure your From header matches your authenticated domain

Email Header Field Table

Header field What it shows Why it matters
From Visible sender identity Must match recipient expectations and authentication alignment
Received Server path the message took Helps trace routing and delays
Authentication-Results SPF, DKIM, and DMARC pass/fail results Core deliverability troubleshooting evidence
Message-ID Unique identifier for the email Useful for support and provider investigations

Header Troubleshooting Table

Header clue Likely issue Next step
spf=fail Sending server is not authorized Update SPF include or sending domain
dkim=fail Signature missing, broken, or mismatched Check DKIM selector and message modifications
dmarc=fail Authentication is not aligned with visible From domain Fix SPF or DKIM alignment
Many unexpected Received hops Forwarding or routing complexity Inspect where the message was modified or delayed

Header Reading Order Table

Section How to read it What to look for
Top Received lines Newest handling servers first Final delivery and spam filtering clues
Bottom Received lines Earliest sending path Original sending server
Authentication block Usually added by receiving provider Pass/fail status and aligned domains
Custom X- headers Provider-specific metadata Spam score, campaign ID, or routing tags

Frequently Asked Questions