Docs / Email Servers / Understanding Email Headers and Message Flow

Understanding Email Headers and Message Flow

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 121 views · 1 min read

What Are Email Headers?

Email headers contain metadata about a message: who sent it, what servers it passed through, authentication results, and more. They are essential for debugging delivery issues.

Key Headers

HeaderPurpose
FromDisplay sender address
ToRecipient address
SubjectMessage subject
DateWhen the message was sent
Message-IDUnique identifier for the message
ReceivedEach server that handled the message (bottom to top)
Return-PathBounce address (envelope sender)
Authentication-ResultsSPF, DKIM, DMARC verification results

Reading Received Headers

Each Received header is added by a server that handled the message. Read from bottom (first server) to top (last server):

Received: from mail.example.com (198.48.63.241)
    by mx.google.com with ESMTPS
    for <user@gmail.com>
    Tue, 25 Feb 2026 10:30:00 -0600

Authentication Results

Authentication-Results: mx.google.com;
    spf=pass (google.com: domain of sender@example.com designates 198.48.63.241 as permitted sender);
    dkim=pass header.d=example.com;
    dmarc=pass (p=REJECT)

All three should show pass for reliable delivery.

View Headers in Gmail

  1. Open the email
  2. Click the three dots → Show original
  3. Use Google's header analyzer to visualize the path

Common Issues in Headers

  • spf=fail — sending IP not in SPF record
  • dkim=fail — DKIM signature invalid or missing
  • dmarc=fail — message failed both SPF and DKIM alignment
  • Long delays between Received timestamps — a server was slow

Was this article helpful?