Dashboard
Edit Article Logout

What is an email header?

Written by: Rob Howard

What is an email header?

An email header, also called the message header, is the block of technical information that travels with every email. It includes the sender and recipient addresses, the subject line, the date and time, a unique message ID, and a record of every server that handled the message on its way to the inbox. It also carries the results of authentication checks that show whether the email is really from who it claims to be.

Your email app shows only a few header fields, like From, To and Subject. The full header stays hidden unless you open it, but it's essential for troubleshooting delivery problems and spotting fake emails.

Common email header fields

FieldWhat it shows
FromThe sender name and address shown to the recipient. This is easy to fake
To / CCThe visible recipients. BCC recipients are not included
Reply-ToWhere replies go if different from the From address. See what reply-to means
SubjectThe subject line
DateWhen the message was sent, according to the sender's system
Message-IDA unique identifier assigned to the message
Return-PathWhere bounce notices go, also called the envelope sender
ReceivedOne line added by each server that handled the message, with the newest at the top
DKIM-SignatureThe cryptographic DKIM signature added by the sending domain
Authentication-ResultsThe receiving server's verdict on SPF, DKIM and DMARC
List-UnsubscribeThe unsubscribe link or address mailbox providers use for their built-in unsubscribe button

How to view email headers

  • Gmail: open the email, click the three-dot menu next to Reply and choose Show original.
  • Outlook on the web and new Outlook: open the email, select the three-dot menu, then View and View message details.
  • Classic Outlook for Windows: open the email in its own window, then go to File, Properties and look in the Internet headers box.
  • Apple Mail: open the email, then choose View, Message and All Headers.

Gmail's Show original page also lists the SPF, DKIM and DMARC results at the top, which is the quickest way to check whether a message passed authentication.

How to read an email header

Raw headers look intimidating, but you usually only need a few lines. Here's a simplified example:

Return-Path: <bounces@mail.example.com> Received: from mail.example.com (mail.example.com [203.0.113.25]) by mx.recipient.com; Tue, 24 Nov 2026 10:15:02 -0800 Authentication-Results: mx.recipient.com; spf=pass smtp.mailfrom=mail.example.com; dkim=pass header.d=example.com; dmarc=pass header.from=example.com From: Example Store <news@example.com> Reply-To: support@example.com Subject: Your order has shipped Message-ID: <abc123@mail.example.com> List-Unsubscribe: <https://example.com/unsubscribe?id=123> List-Unsubscribe-Post: List-Unsubscribe=One-Click
  1. Start with Authentication-Results. Look for spf=pass, dkim=pass and dmarc=pass. A fail or none on a message claiming to be from a well-known company is a red flag.
  2. Check that the domains line up. The domain in the From address should match, or be related to, the domains in the DKIM signature (header.d) and Return-Path.
  3. Read the Received lines from bottom to top. The bottom line shows where the message started, and each line above it is the next server along the way. Large time gaps between lines can explain delivery delays.
  4. Compare From and Reply-To. A Reply-To address at a completely different domain is a common sign of a scam.

Email headers and email spoofing

Header fields are the main target of email spoofing. The basic email protocol, SMTP, doesn't verify senders on its own, so attackers can fake the From, Reply-To and Return-Path fields to make a message look like it came from a trusted source.

Authentication standards fight back by adding signals to the header that receiving servers can check. SPF confirms the sending server is allowed to send for the domain, DKIM adds a signature proving the message wasn't changed, and DMARC tells receivers what to do when those checks fail. DKIM2, still under development at the IETF, would add a signed record of each server that handles a message.

Headers can be faked too

Attackers can add fake Received lines and other headers. The most trustworthy lines are the Authentication-Results and Received headers added by your own mail provider, which appear at the top of the header.

Why email headers matter for marketers

Headers are where mailbox providers look to decide whether your marketing emails can be trusted. Gmail, Yahoo and Microsoft require bulk senders to pass SPF, DKIM and DMARC, and to include List-Unsubscribe and List-Unsubscribe-Post headers that support one-click unsubscribe. Learn more about the Gmail and Yahoo inbox protection rules.

Emails that pass these checks are more likely to reach the inbox, and inbox placement is what makes clicks possible.

Frequently asked questions

Can an email header show the sender's location?

Sometimes, but not reliably. Received lines can include IP addresses of mail servers, which may hint at a general region. Most email services, including Gmail, don't include the sender's personal IP address, and attackers often route mail through other servers.

Why does my email say "via" or "on behalf of" another domain?

The email app shows this when the domain that signed or sent the message doesn't match the From address. Setting up DKIM for your own domain with your email platform usually removes it.

Is the email header the same as the top of the email?

No. The visible top of a marketing email, often a logo or banner, is part of the email body. The technical header is hidden metadata that your email app reads.

Get your headers right with DailyStory

DailyStory helps you send authenticated email from your own domain, with SPF, DKIM and DMARC alignment and one-click unsubscribe headers on marketing emails. Explore our email marketing features or see pricing.

Related Articles