SafeMX is your first line of defense against email spoofing and phishing attacks. Effortlessly check your domain's SPF, DKIM, and DMARC records to ensure your emails are authenticated and secure.
- π‘ SPF, DKIM, and DMARC record validation
- β‘ Fast, reliable, and easy to use
- π JSON and console output formats for flexibility
- π Cool modern design with easy setup and execution
Follow these simple steps to install and use SafeMX:
- Python 3.x
pip
package manager
-
Clone the repository:
git clone https://github.com/MarkoGordic/SafeMX.git
-
Navigate to the project directory:
cd safemx
-
Install the required dependencies:
pip install -r requirements.txt
Run SafeMX to check SPF, DMARC, and DKIM records for a domain. You can specify the output format (console or JSON).
-
To check SPF:
python3 main.py example.com -spf
-
To check DMARC:
python3 main.py example.com -dmarc
-
To check DKIM:
python3 main.py example.com -dkim -selector default
-
Console Output (default):
python3 main.py example.com -spf -dmarc
-
JSON Output:
python3 main.py example.com -spf -dmarc --output json --outfile result.json
[+] SPF record for example.com found!
spf: "v=spf1 ip4:192.0.2.0/24 -all"
[+] DMARC record for example.com found!
dmarc: "v=DMARC1; p=quarantine; adkim=s; aspf=s;"
{
"spf": {
"record": "v=spf1 ip4:192.0.2.0/24 -all",
"version": "v=spf1",
"mechanisms": [
{
"type": "ip",
"value": "ip4:192.0.2.0/24"
},
{
"type": "all",
"value": "-all"
}
]
},
"dmarc": {
"record": "v=DMARC1; p=quarantine; adkim=s; aspf=s;",
"fields": {
"v": "DMARC1",
"p": "quarantine",
"adkim": "s",
"aspf": "s"
}
}
}
SafeMX is open-source software licensed under the MIT License.