MSU IT Techbase

Analyzing e-mail headers and tracking e-mail - TB2045

This article has been retired and moved to a new location. To view the current support article, please click 400638 to be redirected to the new document within the Knowledge module of the MSU IT Service Desk application.

Please Note: As another step in enhancing our customer experience, MSU IT Services is consolidating all technology help information into one repository. This process will begin Friday, April 15, 2016, with MSU IT moving all public facing documents to the MSU IT Service Desk application. The service will be retired in the future and replaced with a new help portal. More information will be shared as timelines are confirmed.

This document will give an overview of what e-mail headers are and what they do. It will also give some hints on what to look out for if you suspect false e-mail addresses.

Analyzing full e-mail headers

The complete headers provide much information on the origin of a message and are a useful tool for tracking and stopping SPAM and virus-laden e-mail. Most e-mail readers only show the To: and From: headers, which can be easily forged. The complete message headers will look something like this:

  Return-Path: []
  Received: from ( [])
         by (8.10.2/8.10.2) with ESMTP id NAA23597;
         Fri, 12 Jul 2002 16:11:20 -0400 (EDT)
  Received: from ( [])
         by; Fri, 12 Jul 2002 13:09:38 -0700 (PDT)
  Date: Fri, 12 Jul 2002 13:09:38 -0700 (PDT)
  From: Hot Summer Deals []
  Subject: Just what you've been waiting for!!

In particular, the header lines beginning with Received: provide a trace of the message from its origin to your mail server. In many cases with spam and virus e-mail, not all of the information in the "Received:" headers can be trusted, but it can still provide many valuable clues as to the message source.

The first step in the analysis process is to find the full e-mail headers. The method for doing so varies depending on your mail reader. Refer to Finding full e-mail headers for reporting abuse issues for information on how to find full headers with your compatible e-mail client.

What not to trust in mail headers

The above example is contrived, but illustrates several of the aspects of common forged e-mail headers. Of course, you may be lucky enough to have received a message from a verifiable source; if so, you will find some consistency to the results seen when analyzing the headers.

In the above example, the following headers are contrived by the sender's system:


The contents of the To: header can be arbitrary. There is no account "My.Friends" at MSU. Additionally, "" (the old MSU e-mail server) is no longer in service.

The true recipients of a message are determined by the e-mail "envelope" address, which is not displayed in these headers.

  From: Hot Summer Deals []

Likewise, the sender's name is arbitrary. There may or may not be an account named "hot_deals" at AOL, and the sender may not be the valid owner of the account if it does exist.

Analyzing the "Received:" headers

The most useful clues to a message's origin come from the headers that begin with Received:. Each mail server which handles an e-mail message adds a Received: header set to the front of the message; the first set is therefore added by your mail server. For this example, we're assuming you read e-mail delivered to MSU's e-mail system.

Let's start with the first header:

  Received: from ( [])
	  by (8.10.2/8.10.2) with ESMTP id NAA23597;
	  Fri, 12 Jul 2002 16:11:20 -0400 (EDT)

In this header, you see that the message was received by a mail server (; the remainder of this line contains version information and the message id assigned by the mail server. The time stamp shows when the message was delivered to

The first line shows three important pieces:

  Mail server IP address:
   -This is the Internet IP address from which received the message.

  Mail server domain name:
   -This is the domain name (DNS name) which matches the above IP address.

  Mail server identification:
   -This is what the server claimed its name to be.  This may or may not
    agree with the domain name; a mail server may have more than one identity.

The second header gives more clues:

  Received: from ( [])         
	  by; Fri, 12 Jul 2002 13:09:38 -0700 (PDT)

In this header, the receiving mail server name ( matches the name shown in the first header (so far so good). The first line of this header reveals the source:

  Originating IP address:
   -This is the Internet IP address from which the remote mail server received the 

  Originating domain name:
   -This is the domain name (DNS name) which matches the above IP address. This 
    reveals that the IP address may be owned by an organization known as 
    "". This would appear to be a high-speed DSL subscriber to, but only that organization can tell you for certain.

  Originating system identification:
   -This is what the originator claimed its name to be. In this case, the sender is
    claiming to be "", but the source IP address and domain name do not fit.

From these headers, the most reliable identification of the message source is the sender's IP address, A number of tools are available for verifying the owner of an IP address. The authoritative reference for IP addresses is the American Registry of Internet Numbers. Using ARIN's "Search WHOIS" tool, you can find the identification of the IP address owner. In most instances, a message to "abuse@organization" will do the trick; be sure to include the message with its complete headers.

Note that there may be additional Received: headers that were generated by the originator of the "spam" e-mail (or by a mail virus). In general, you can only trust the "Received:" headers as far as you can verify them. If you are uncertain about their authenticity, you should go with the last one which is verifiable.

Computer System and Network Abuse at Michigan State University

Browse to to learn more about network abuse issues at Michigan State University.

Keywords for this Document

tracking headers, phishing, display headers, finding full e-mail, finding full email header, AU SAU, headers, header

Related Documents

Date Last Modified: 5/9/2016 9:17:05 AM

Was this document useful?