Search
  • For Individuals
      « Back
    • Windows Data Recovery

      Recovers lost or deleted Office documents, emails, presentations & multimedia files.

      Free Standard Professional Premium

    • Mac Data Recovery

      Recovers deleted files, photos, videos etc. on Mac.

      Free Standard Professional Premium

    • Photo Recovery

      Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

      Free Standard Professional Premium

    • Video Repair
    • Photo Repair
    • iPhone Data Recovery
  • For Business
      « Back
    • Email Repair & Converter

      Repair for Exchange Converter for EDB Converter for OST Converter for NSF Converter for OST MBOX Repair for Outlook

    • Database & File Repair

      Repair for MS SQL Repair for Access Repair for QuickBooks Software Repair for Excel Extractor for Windows Backup Repair for MySQL

    • Data Recovery & Erasure

      Data Recovery Professional Data Recovery Technician Mac Recovery for Technician Virtual Machine Recovery File Erasure Software Mobile Erasure Drive Erasure File Eraser Software File Eraser Software for Mac

    • Toolkit

      Exchange Toolkit Outlook Toolkit File Repair Toolkit MS SQL Toolkit Data Recovery Toolkit

    • Forensic

      Email Forensic Exchange Auditor Log Analyzer for MySQL Log Analyzer for MS SQL

  • Store
  • Partners
  • Services
  • Offers
  • Support

 

  • For Individuals
    DIY software for anyone who works with data.

    Windows Data Recovery Recovers lost or deleted Office documents, emails, presentations & multimedia files

    Free Standard Professional Premium

    Mac Data Recovery Especially for Mac users to recover deleted documents and multimedia files from macOS

    Free Standard Professional Premium

    Video Repair Windows Mac Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

    StandardPremium

    Photo Recovery Windows Mac Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

    Standard Professional Premium

    iPhone Data Recovery Windows Mac Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad

    Recover Erase Toolkit

    Photo Repair Windows Mac Repair multiple corrupt photos in one go. Supports JPEG & other formats.

    Standard Professional Premium


  • For Business
    • Email Repair
    • Email Converter
    • File Repair
    • Data Recovery & Erasure
    • Toolkit
    • Forensic

    Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365

    Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts

    OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items

    Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST

    Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form

    EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST

    OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST

    NSF to PST Convert IBM Notes NSF file & export all mailbox items including emails & attachments to PST

    MBOX to PST Convert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST

    OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form

    GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST

    EML to PST Convert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST

    Office 365 to PST Connect to Office 365 account & export mailbox data to PST and various other formats

    DBX to PST Convert Outlook Express (DBX) file & export all mailbox data - emails, attachments, etc. - to PST

    SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form

    Access Repair Repair corrupt .ACCDB and .MDB files & recover all records & objects in a new database

    QuickBooks Repair Repair corrupt QuickBooks® data file & recover all file components in original form

    MySQL Repair Repair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.

    Excel Repair Repair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.

    BKF Repair Repair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data

    Database Converter Interconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files

    PowerPoint Repair Repair corrupt PPT files and restore tables, header, footer, & charts, etc. like new

    File Repair Toolkit Repair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form

    Data Recovery Windows Mac Recover lost or deleted data from HDD, SSD, external USB drive, RAID & more.

    Technician Toolkit

    Tape Data Recovery Retrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.

    Virtual Machine Recovery Recover documents, multimedia files, and database files from any virtual machine

    File Erasure Permanently wipe files and folders, and erase traces of apps and Internet activity.

    Standard Corporate

    Mobile Erasure Certified and permanent data erasure software for iPhones, iPads, & Android devices

    Drive Erasure Certified and permanent data erasure software for HDD, SSD, & other storage media Windows Mac

    Exchange Toolkit 5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.

    Outlook Toolkit Comprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.

    File Repair Toolkit Powerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.

    MS SQL Toolkit 5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.

    Data Recovery Toolkit Software helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.

    Email Forensic Advanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.

    Exchange Auditor Exchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.

    Log Analyzer for MySQL Analyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.

    Log Analyzer for MS SQL Track & analyze MS SQL Server database transactions log files.

    Email Forensic
    STELLAR EMAIL FORENSIC

    Advanced email forensic tool to analyze and collect the mailbox data of email clients

    Learn More arrow


    All Products arrow

    All Products arrow

    All Products arrow

    All Products arrow

  • Our Partners
  • Lab Services
  • microphone-icon-android

    Trending Searches

    Data Recovery

    Photo Recovery

    Video Repair

    iPhone Data Recovery

    File Erasure Software

    Exchange Repair

    OST to PST

    PST Repair

    Raid Recovery

    MS SQL Repair

  • English Deutsch Français Nederlands Italiano Español 日本語 简体中文
  • Support
Email Forensics 5 minute read

Importance of MX Records in Email Forensic Investigation

Updated on May 27th, 2022
Abhinav Sethi
Written By
Abhinav Sethi
Kuljeet Singh
Approved By
Kuljeet Singh

An MX Record or Mail Exchange Record is a type of Domain Name System (DNS) record that points to the mail server that is responsible for handling email for a given domain. It defines how email messages will be routed while being in line with Simple Mail Transfer Protocol (SMTP).

Stellar

The main purpose of MX Records is to ensure that emails are sent to the correct destination address. MX records are a vital part of a working email system. They can play an important role in email forensic investigations.

MX Record Format

The standard format of an MX Record includes [name] [TTL] [class] [type] [priority] [rdata]. This is an example of MX record:

google.com.     3600  IN        MX     0  alt3.aspmx.l.google.com

  • name: The first field contains the domain name.
  • TTL: It stands for Time To Live, which defines the period (in seconds) for which the email client can retain MX record information in its cache memory. In the above example, it is 3600, which translates to 60 minutes or one hour. So, a client can keep this MX record information in its cache for one hour. If this time lapses, then it must again fetch the record from the name server. The name server is the server that stores DNS records. 
  • class: The Class field specifies the type of network. It is always set to IN, which stands for Internet.
  • type: The DNSrecord type. In this case, it is set to MX (for MX Records).
  • priority: This field defines the mail server’s priority. The lower the value of this field, the higher is the mail server’s priority. When there are multiple servers for the same domain, this field establishes the priority order of the servers. In the above example, the priority of the mail server is set to 0 which is the highest priority.
  • rdata: This is a resource data field that defines the name of the mail server. In the above example, the rdata field is alt3.aspmx.l.google.com, which means all emails for the domain google.com will be delivered to  alt3.aspmx.l.google.com.

Contents

  • How do MX Records Work?
  • How to Fetch MX Records?
  • Role of MX Records in Email Forensics

How do MX Records Work?

Whenever you send an email message, your Mail Transfer Agent (MTA) accesses the MX record of the receiver’s domain name. It then tries to send the email to the mail server that has the highest priority in the record. If delivery fails, it retries with the remaining mail servers in the record in their increasing preference order, until the message is delivered.

How to Fetch MX Records?

Finding MX records is easy. On a Windows system, you can use the nslookup command-line tool. You can run the following script in command prompt (CMD) to find the MX records for domain google.com:

nslookup -type=MX google.com

This will provide you with a non-authoritative answer to the query. 

Figure 1 highlights the non-authoritative answer for the google.com domain. A non-authoritative answer means the answer is not fetched from the authoritative DNS server for the queried domain name.

A DNS system is divided into three tiers:

  • root DNS servers
  • top-level domain DNS servers
  • authoritative DNS servers

There’s another class of DNS Server, usually called local DNS server, whose IP address is specified in your operating system.

When your browser connects to a website such as google.com, the browser first queries the local DNS server to get the IP address of the website.

  • If the local DNS server doesn’t have the record, i.e. a record of google.com, it will query one of the root DNS servers.
  • The root DNS server would say, “I don’t have a record of google.com, but I know the top-level domain DNS server which is responsible for .com domains”.
  • Then the local DNS server queries the top-level domain DNS server which is responsible for .com domains. The top-level domain DNS server would respond as: “I don’t know, but I know which DNS server is authoritative for google.com”.
  • Now, the local DNS server queries the authoritative DNS server. Since the actual DNS record is stored on that authoritative DNS server, it will give the local DNS server, an answer.

This query result then gets cached on the local DNS server but it can get outdated. When the [TTL] time gets expired, the local DNS server would update the query result from the authoritative DNS server. Whenever you query a DNS record on the local DNS server, it would return a non-authoritative answer. In order to get an authoritative answer, you need to specify the authoritative DNS server while using nslookup or other utilities. A local DNS server can also be called as a caching DNS server.

Stellar

Figure 1: Non-authoritative answer for google.com domain

You can use the following command to find the primary name server of the domain:

nslookup -type=soa google.com

Stellar

Figure 2: Fetching primary name server of google.com

Now that you have the name of the primary name server, which is ns1.google.com, you can run the following command to get an authoritative answer:

nslookup -type=mx google.com ns1.google.com

Stellar

Figure 3: Authoritative answer for google.com domain

The command gives you the most up-to-date information about the domain including the internet addresses and IPv6 addresses of the mail servers that are used.

If you don’t want to use CMD, you can also fetch MX records of domains with web services, such as DNSChecker and MXToolbox.  

Role of MX Records in Email Forensics

MX records can help in email forensics in the following ways:

1. Check Discrepancies in Email Headers

An email header contains important information such as details of sender and receiver, hops, etc. which help in tracking the message’s journey. So, when you analyze an email, you can check if the details in the header match the MX records of the domain.

Suppose, you are analyzing an email that was sent a few years back. If you find that the email service provider mentioned in the email header is one that the target domain switched to only recently, it can be considered a red flag. In this situation, you can investigate further to get more information about the discrepancy and can find smoking guns.

2. Data Collection from Additional Sources

Change in MX records doesn’t necessarily mean that the email service provider was changed. Sometimes, domain owners start using additional services to improve email security or to archive emails. When this happens, the MX records may show the details of these servers as they work on top of existing email servers. In other words, the emails go through these additional servers first, and then to the main email servers.

Looking up the historical MX records of a domain can help you to discover additional sources for data collection. For instance, if you find out that a domain is using an archival service in addition to the main email servers, then the archival service may have backup files that you can collect and scan for additional data.

Conclusion

In email forensics, fetching MX Records for a domain name can be useful in many ways. It can help in verifying that the recipient of an email used the correct email service provider. It can also help in checking if the owner of a domain changed their service provider and lead you to additional sources for data collection.

Need an email forensics software that is user-friendly and offers a wide range of useful features? Try Stellar Email Forensic! It supports 25+ email file formats such as PST, EDB, OST, and MBOX. The software makes email analysis easy with features like advanced search functions, deleted email recovery, tagging and bookmarking, and more. Download Stellar Email Forensic now. It is available for a free 60-day trial.

About The Author

Abhinav Sethi

Abhinav Sethi is a Senior Writer at Stellar. He writes articles, blog posts, knowledge-bases, case studies, etc. for different technologies. He also has a keen interest in digital forensics and helps forward-thinking companies fight different threats with apt solutions.

Best Selling Products

Stellar Reporter & Auditor for Exchange Server

Stellar Reporter & Auditor for Exchange Server

Exchange reporter & auditor is an automa

Read More
Stellar Repair for Active Directory

Stellar Repair for Active Directory

It is a professional Active Directory re

Read More
Stellar Toolkit for Exchange

Stellar Toolkit for Exchange

5-in-1 suite of specialized tools, highl

Read More
Stellar Toolkit for Outlook

Stellar Toolkit for Outlook

It is 8-in-1 software kit to automate ad

Read More

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

34  +    =  35

Table of Contents    

  1. How do MX Records Work?
  2. How to Fetch MX Records?
  3. Role of MX Records in Email Forensics

Categories

Related Posts

related post
Email Forensics

Challenges while Recovering Deleted Emails from Email Clients and Services

Stellar Author Abhinav Sethi August 26, 2020 Read More
related post
Email Forensics

Approaches to Filter Emails for Forensic Investigation

Stellar Author Abhinav Sethi August 25, 2020 Read More
related post
Email Forensics

Forensic Analysis of EDB Files: Challenges and Solution

Stellar Author Abhinav Sethi July 8, 2020 Read More

Stellar Official Website

Stellar Data Recovery Inc.
48 Bridge Street Metuchen,
New Jersey 08840,
United States

ALSO AVAILABLE AT

Partner Logo

About

  • About us
  • Career
  • ISMS Policy
  • Privacy Policy
  • Terms of Use
  • License Policy
  • Refund Policy
  • End User License Agreement

RESOURCES

  • Blog
  • Articles
  • Product Videos
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Software Catalog

NEWS & EVENTS

  • News
  • Events

PARTNERS

  • Affiliates
  • Resellers
  • Distributors

Useful Links

  • Contact Us
  • Support
  • Special Offers
  • Student Discounts
  • Awards & Reviews
  • Downloads
  • Store
  • Sitemap
Follow Us

tw in yt

Stellar & Stellar Data Recovery are Registered Trademarks of Stellar Information Technology Pvt. Ltd. © Copyright 2022 Stellar Information Technology Pvt. Ltd. All Trademarks Acknowledged.

Hippa Logo tuv footer partner logo DMCA.com Protection Status
We use cookies on this website. By using this site, you agree that we may store and access cookies on your device Read More Got it!