Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 1.93 KB

README.md

File metadata and controls

83 lines (58 loc) · 1.93 KB

Mail Server Checker (MSC)

mail_checker

Overview

The Mail Server Checker is a PHP tool designed to analyze and verify various email protocols (SPF, DMARC, DKIM) related to domain mail servers. It retrieves and displays DNS records, providing a comprehensive analysis of your email server's configuration and security.

Features

  • Retrieve and display various DNS records for a specified domain.
    • Supported record types: A, NS, MX, SOA, TXT.
  • Verify SPF, DMARC, and DKIM records for email security.
  • Clean and structured output for easy readability.
  • Detailed error reporting and suggestions for fixing issues.

Requirements

  • PHP 7.4 or higher
  • Composer

Installation

  1. Clone the repository:

    git clone https://github.com/JawherKl/mail-server-checker.git
  2. Navigate to the project directory:

    cd mail-server-checker
  3. Install dependencies using Composer:

    composer install

Usage

To check a domain's mail server configuration, run the following command:

php checker.php example.com

Replace example.com with the domain you want to check. The tool will display the DNS records and verify the SPF, DMARC, and DKIM configurations.

Example Output

Domain: example.com

A Records:
- 192.0.2.1

NS Records:
- ns1.example.com
- ns2.example.com

MX Records:
- mail.example.com (Priority: 10)

SPF Record:
- v=spf1 include:_spf.example.com ~all

DMARC Record:
- v=DMARC1; p=none; rua=mailto:[email protected]

DKIM Record:
- Selector: default
- Public Key: (Public key data here)

Analysis:
- SPF: Pass
- DMARC: Pass
- DKIM: Pass

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.