Checks the SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance) records for a given domain. It provides color-coded safety warnings for potentially unsafe configurations, supports output to pipes and files, and includes timestamps for all logged messages.
- Checks SPF, DKIM, and DMARC records
- Provides color-coded output for easy reading
- Offers detailed analysis of each record type
- Includes timestamps for all logged messages
- Supports disabling color output for pipes and dumb terminals
-
Ensure you have Python 3.6 or higher installed.
-
Clone this repository or download the files.
-
Navigate to the project directory:
cd email_auth_checker
-
(Optional but recommended) Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
Ensure you're in the project directory and your virtual environment is activated (if you're using one), then run the script:
python email_auth_check.py pantheon.io
To check DKIM (requires knowing the selector):
python email_auth_check.py pantheon.io -s selector1
To disable colored output:
python email_auth_check.py pantheon.io --no-color
Replace pantheon.io
with the domain you want to check, and selector1
with the DKIM selector you want to use (if known).
- Checks SPF, DKIM (with provided selector), and DMARC records
- Provides color-coded output for easy reading
- Offers detailed analysis of each record type
If you encounter import errors, ensure that:
- You're running the script from the project's root directory.
- All dependencies are installed (
pip install -r requirements.txt
). - Your virtual environment is activated (if you're using one).
If issues persist, try:
PYTHONPATH=. python email_auth_check.py pantheon.io
This project is open source and available under the MIT License.