Skip to main content

A tool to check domain's SPF, DMARC, and DKIM records.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safemx-0.1.5.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safemx-0.1.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file safemx-0.1.5.tar.gz.

File metadata

  • Download URL: safemx-0.1.5.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for safemx-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0bf22f5c1a3c9c82497ef3af6a605a42a931c4fdc2731425014f33a4097cf5aa
MD5 14c6210ac344a4e6c6bf19c96e032960
BLAKE2b-256 fa527faa3ab62cb0b8e57c11710960c4375fbc03c154928ca1286bdfa8032e6c

See more details on using hashes here.

File details

Details for the file safemx-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: safemx-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for safemx-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9c3a18c4b1c3e6e83b1a39d3e5c0052b25e55dc0e93a8af2bf54d31e5d7109d8
MD5 b5a75a478286e718677709f7d64b8d80
BLAKE2b-256 3e7b9dea9f82ee8eaa5ac8d8ac970060b7f7c7b68692d1304fbb5fedb9bc234f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page