A simple Python tool to analyze email security configuration for any domain.
- SPF - Sender Policy Framework
- DMARC - Domain-based Message Authentication, Reporting & Conformance
- DKIM - DomainKeys Identified Mail
- MX - Mail Exchange records
- MTA-STS - Mail Transfer Agent Strict Transport Security
- TLS-RPT - TLS Reporting
- BIMI - Brand Indicators for Message Identification
# Install dnspython directly
pip3 install dnspython
# Create a venv and install
python3 -m venv .mailscanvenv
source .mailscanvenv/bin/activate
pip3 install dnspython
Risk analysis (default):
python mailscan.py example.comView DNS records only:
python mailscan.py example.com --recordsBoth risk analysis and records:
python mailscan.py example.com --both- Python 3.6+
- dnspython
