Email Forensic

Email Header Fields and Their Significance in Email Forensics

  • author image

    Written By Abhinav Sethi linkdin

  • calender

    Updated on April 28, 2022

  • clock

    Min Reading 7 Min

Summary: In this article, we have explained different email header fields and their role in email forensics. We have shared step-wise instructions for viewing email headers and performing email header analysis in Gmail and different Outlook versions. We have also provided a dedicated email forensic tool that comes with a free trial.


To investigate cases related to cyber-crimes where emails are being used, digital forensic experts scan relevant emails for evidence. Since criminals often forge messages to avoid detection, email forensics experts need to perform email header analysis to extract and collect crucial evidence.

Email headers contain vital information of the path that the message has traversed before reaching its final destination. This information includes recipients' and senders' names, time of sending/receiving email message, email client, internet service provider (ISP), IP address of the sender, etc. This information and other email header fields can help in determining the legitimacy of a suspicious or malicious email.

Email Header Analysis in Gmail

To view the header of a Gmail message, follow these steps:

  • Go to your Gmail Inbox and click the email whose header parameters you want to see.
  • Next to Reply icon , click the drop-down menu icon and select Show original.

This will display email header parameters in a new window. You can either go through these parameters directly or copy and paste the text in Google's email header analyzer for better visibility. This tool will highlight the parameters in the entire text. 

To understand email header fields in Gmail, we take a message of a sender as an example. [See Image 1]

Email header fields in gmail

Image 1: Email header fields in Gmail

1. Delivered-To


This email header field contains email address of the intended recipient. It's one of the major things to check during email analysis as it can provide details of phishing activities. If the email address in this field is not the same as the recipient's actual email address, then it can be a sign of message tampering that warrants an investigation. It's worth noting that email header tampering and spoofing is rather easy for cybercriminals these days - all they need is an SMTP server and a mailing software to launch a phishing attack.

2. Received By

Received: by with SMTP id n34csp2326299qvd;
Wed, 1 Feb 2017 00:39:09 -0800 (PST)

This field contains the details of the last visited SMTP server. The following information is disclosed:

    a) Server's IP address

    b) SMTP ID of the visited server

    c) Data and time at which the email was received by the SMTP server

3. X-Received

X-Received: by with SMTP id b14mr1702258wmb.82.1485938349292;
        Wed, 01 Feb 2017 00:39:09 -0800 (PST)

Some email parameters are not defined in Internet Official Protocol Standards and are called non-standard headers. These are created by mail transfer agents like Google mail SMTP server which may use the X-Received field to share the non-standard information. This field must not be overlooked during email header analysis as it shares the following details:

    a) IP address of the message-receiving servers

    b) SMTP ID of the server

    c) Data and time at which the email was received

4. Return Path

This field contains the email address where the message is returned, in case it fails to reach the intended recipient. This can easily happen if the sender has used a wrong email address for the recipient.

        by with ESMTPS id 5si23398790wrr.176.2017.
        for (
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 01 Feb 2017 00:39:09 -0800 (PST)

This field contains the information of the first SMTP server where the email reached. The following details can be found here:

    a) Server-related IP address

    b) Receiver's email address

    c) Encryption information

    d) Data and time at which the message was received

Received From is one of the most important fields in an email header as you can find the IP address of the sender along with other details like the host name.

6. Received-SPF

Received-SPF: pass ( domain of designates as permitted sender) client-ip=;

Sender Policy Framework (SPF) is an email security protocol that's used to verify the sender. The system forwards the message only after the sender's identity is authenticated. The technique uses the domain address for authentication and adds the check status in the header field. The following codes are used:

    a) Pass: Email source is valid

    b) Softfail: Fake source possible

    c) Fail: Source is invalid

    d) Neutral: Source validity difficult to ascertain

    e) None: SPF record not found

    f) Unknown: SPF check can't be performed

    g) Error: An error occurring during SPF check

7. Authentication Results

       spf=pass ( domain of designates as permitted sender);
       dmarc=fail (p=NONE sp=NONE dis=NONE)

Mail Transfer Agents (MTAs) apply a slew of authentication techniques on the email messages before processing them. The results of these techniques are added to the header field of messages and are separated by a semicolon.

The Authentication Results field is of great importance in email header analysis forensics as it shares the ID of the authentication performing server. It also shares the authentication techniques along with their results.

8. DKIM Signature

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt;; s=at; h=X-BBounce:X-IADB-URL:Sender:Submitter:X-Feedback-ID:From:To:Date:Subject:MIME-Version:Content-type:Content-Transfer-Encoding; bh=GytDyTyaDleCfGk0d7bL4F2bXbTuWsb/xtpIVyVaCRw=; b=sgh6nUFjt5FC7rBC2BwXFulNuG+k14R7bBsstb4erjtZfTn4z/NPHNhVb4Ax1yXoOgX+ Il6n5SCcXTCkwQdmaxpxt/BzPjWVziBdzU1WichHhPabVFeKctyp6pCjv4+d2FVIiEuxqi v5dBTcJjXBVpOwU0mqgRceh3pqcvd5Rj4=

DKIM signature header field is inserted in an email message to share details of the sender, message, and the public key which is required to perform message authentication. Many email platforms like Gmail and support this field to confirm email authenticity.

Here are the various tags of DKIM signature header:

  • v: application version. Only version 1 exists today so this field should always be set to 1.
  • a: algorithms used for encryption. It should be rsa-sha256 in most cases. Some senders may use rsa-sha1 but it's not recommended due to security risks. 
  • c: algorithms used for canonicalization  
  • s: selector record name used with the domain  
  • h: signed header fields that are used in the signing algorithm to create the hash in b= tag
  • bh: hash of the message body
  • b: hash data of the headers listed in the h= tag. It's also called DKIM signature 
  • d: domain used with the selector record

Note: All the above tags are required for DKIM mechanism to work. If any tag is missing, then verification may encounter an error. Although, there are other optional tags that may or may not be used like t= (which is DKIM timestamp) and c= (which is the canonicalization algorithm used).

Other Important Email Headers

X-BBounce: 227254537|1486804||47|0|3605|4
Sender: Ginger (
X-Feedback-ID: 3605:3605.1346802.0:G1:atgfbl
From: Ginger : (
To: "" : (
Message-ID: (
Date: Wed, 01 Feb 2017 10:39:06 +0200
Subject: Thank you for registering with Ginger!
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----7308DF8A8DBB43098928C652849D6409"

Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

    a) Reply-to: The email address at which the reply to the message is received. It's usually the sender's email address but may also be changed manually.

    b) From: Sender's email address.

    c) To: Receiver's email address.

    d) Message-ID: Unique ID of the email that makes it distinguishable. No two emails can share the same message ID.

    e) Date: Date and time at which the email was received at the destination.

    f) Subject: Email subject section that contains the main purpose of the message.

    g) MIME-Version: Shows that the message is Multipurpose Internet Mail Extension (MIME) formatted and can support formats like plain text files, video, audio, etc.

Email Header Analysis in Outlook

Email analysis and the process of extracting email headers can vary from one Outlook version to another. Below are the steps for extracting email header in different Outlook versions.

Outlook 2019, 2016, 2013, and 2010

  •  Launch Outlook and double-click the email whose header parameters you want to see.
  • Go to File > Properties. This will open Properties window.

Outlook properties

  • Refer to the Internet headers section. Here you can find the header parameters.

Outlook 2007

  • Launch Outlook and double-click the email whose header parameters you want to see.
  •  Under Message tab, in the Options section, click Dialog Box Launcher icon (the arrow button). This will open Message Options window.

Message Options window

  • Refer to the Internet headers section.

Outlook 2003, 2002, and 2000

  • Launch Outlook and open the email in a new window whose header parameters you want to see.
  • Go to View > Options. This will open Message Options window.

open Message Options

  • Refer to the Internet headers section.

Retrieving Email Headers from PST, OST and EDB Files

If you want to analyze email headers in a PST file, you can import and open the file in any Outlook account and follow the steps discussed above. However, if you need to extract email headers from an OST file, you have to open the file in the same Outlook account that created the file. If that's not possible, you can use an OST to PST Converter software to convert the OST file into PST and then open the file in any Outlook account.

Exchange database (EDB) files contain the data of mailboxes stored on the server. You can't open unmounted EDB files without the Exchange Server. To open such files, you need to use an EDB to PST Converter software. Once you have converted the EDB file into PST, you can open the file in Outlook and extract the email headers.

Email Header Analysis Forensics

By analyzing the key parameters in an email header, you can get an idea of how the message traveled from the source to the destination. For instance, you can use the originating IP to find the original sender. For this, you need to examine the first Received parameter in the email header. The first IP address here is the originating IP which is also sometimes presented in the fields X-Originating-IP or Original-IP. Borrowing the same header example:

Received: by with SMTP id n34csp2326299qvd; Wed, 1 Feb 2017 00:39:09 -0800 (PST)

The highlighted portion is the original sender of the message. You can use a free reputation service like SenderBase by Cisco to get the reputation rating of the IP. This can help ascertain whether the email is a spam or a phishing attack. Although, bear in mind that if the IP address is private, then it may not fetch any result.

Message ID is another important field that can be checked during email header analysis for spoofing. You can see it below in the highlighted region.


From: Ginger (

To: "" (

Message-ID: (

Date: Wed, 01 Feb 2017 10:39:06 +0200

Subject: Thank you for registering with Ginger!

MIME-Version: 1.0

Since Message ID is added by the mail server that processes the email, it can't be altered that easily. Also, message systems often use a date/time stamp along with the sender's domain name. So, if the domain name in the message ID doesn't match the domain name mentioned in the From: field, then it can suggest a possibility of spoofing. In the example above, the From: field shows the domain name which is the same as the Message ID. So, it's safe to assume that no spoofing took place here.

Email Headers are Useful but Seldom Enough

Email headers are replete with useful details like originating IP address and message ID that can be instrumental in investigating and tracking the suspicious email. However, to identify critical details that can point you to the right direction, you must have a good understanding of email header analysis forensics. In most cases, even if you have the knowledge, you need to use a specialized email forensic tool to gather and preserve evidence in the form of reports and email files. Tools such as Stellar Email Forensic provide advanced features such as custom search filters, multiple message views, deleted emails recovery, etc. that contribute to speedy and accurate investigation.

You can start with evaluating Stellar Email Forensic software, presently available for 60-days free trial. It offers case management facility and allows to perform granular search for emails.

89% of people found this article helpful