Skip to content

SafeMX is a tool for checking and validating SPF, DKIM, and DMARC records to secure your email system and prevent spoofing.

License

Notifications You must be signed in to change notification settings

MarkoGordic/SafeMX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage Example


Python License

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.

Usage Example

Features

  • πŸ›‘ 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

πŸš€ Getting Started

Follow these simple steps to install and use SafeMX:

Prerequisites

  • Python 3.x
  • pip package manager

Installation

  1. Clone the repository:

    git clone https://github.com/MarkoGordic/SafeMX.git
  2. Navigate to the project directory:

    cd safemx
  3. Install the required dependencies:

    pip install -r requirements.txt

πŸ› οΈ Usage

Run SafeMX to check SPF, DMARC, and DKIM records for a domain. You can specify the output format (console or JSON).

Checking SPF, DMARC, and DKIM

  • 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

Output Formats

  • Console Output (default):

    python3 main.py example.com -spf -dmarc
  • JSON Output:

    python3 main.py example.com -spf -dmarc --output json --outfile result.json

Example Output

Console Output:

[+] 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;"

JSON Output:

{
  "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"
    }
  }
}

πŸ“œ License

SafeMX is open-source software licensed under the MIT License.

About

SafeMX is a tool for checking and validating SPF, DKIM, and DMARC records to secure your email system and prevent spoofing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages