Mail Header Analyzer – MHA


Mail header analyzer is a tool written in flask for parsing email headers and converting them to a human readable format and it also can:

  • Identify hop delays.
  • Identify the source of the email.
  • Identify hop country.

MHA is an alternative for the following:

MessageHeaderGoogleNot showing all the hops.
EmailHeadersMxtoolboxNot accurate and slow.
Message Header AnalyzerMicrosoftBroken UI.

Install system dependencies:

sudo apt-get update
sudo apt-get install python-pip
sudo pip install virtualenv

Create a Python virtual environment and activate it:

virtualenv virt
source virt/bin/activate

Clone the GitHub repo:

git clone

Install Python dependencies:

cd MHA
pip install -r requirements.txt

Run the development server:
python -d
You can change the bind address or port by specifying the appropriate options: python -b -p 8080
Everything should go well, now visit https://localhost:8080.

Dockerfile is provided if you wish to build a docker image.

docker build -t mha:latest .

You can then run a container with:

docker run -d -p 8080:8080 mha:latest


[insight_button align=”center” link=”|title:Download||”]
Priyanka R
Cyber Security Enthusiast, Security Blogger, Technical Editor, Author at Cyber Safe News

    Passive Web Scanner – Paskto

    Previous article

    P4wnP1: A Open Source USB Attack Platform

    Next article

    You may also like

    More in Tools


    Leave a reply

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