A professional command-line tool and HTTP API server written in Go for comprehensive email security validation, including domain security features like DNSSEC and STARTTLS support.
- Professional Email Validation: RFC 5322 compliant email format verification
- Domain Security Analysis: Comprehensive security feature checking
- Gmail Normalization: Smart handling of Gmail aliases and dot notation
- MX Record Verification: Validates mail exchange record availability
- DNSSEC Validation: Checks DNS Security Extensions support
- STARTTLS Verification: Ensures encrypted email transmission capability
- JSON API Output: Machine-readable results for integration
- HTTP REST API: Professional web service interface
- Cross-Platform Support: Linux, macOS, and Windows compatibility
- Detailed Reporting: Comprehensive validation insights
git clone https://github.com/kelvinzer0/secure-email-validator.git
cd secure-email-validator
make build
make install
./bin/secure-email-validator -email [email protected]
./bin/secure-email-validator -email [email protected] -verbose
./bin/secure-email-validator -email [email protected] -json
./bin/secure-email-validator -server -port 8587
Email Validation
curl "http://localhost:8587/[email protected]&verbose=true"
Service Health Check
curl "http://localhost:8587/health"
# Corporate email verification
$ ./bin/secure-email-validator -email [email protected] -verbose
✅ Email '[email protected]' is valid and secure
✨ Reason: Email is valid and domain supports secure mail delivery
--- Security Analysis ---
Domain: company.com
Has MX Record: true
Has DNSSEC: true
Primary MX Server: mail.company.com
Supports STARTTLS: true
$ ./bin/secure-email-validator -email [email protected] -json
{
"valid": true,
"reason": "Email is valid and domain supports secure mail delivery",
"normalized_email": "[email protected]",
"domain": "domain.com",
"has_mx_record": true,
"has_dnssec": true,
"primary_mx_server": "mx.domain.com",
"supports_starttls": true
}
- MX Record Analysis: Verifies mail server availability
- DNSSEC Compliance: Checks DNS security implementation
- STARTTLS Support: Validates encrypted transmission capability
- Email Normalization: Handles provider-specific formatting rules
- Domain Security Assessment: Comprehensive security posture evaluation
- Go 1.21 or higher
dig
utility (for DNSSEC validation)- Network connectivity for DNS/SMTP verification
make build # Build application
make build-all # Cross-platform compilation
make test # Run test suite
make clean # Clean build artifacts
make install # System-wide installation
make dev # Development server
make fmt # Code formatting
make vet # Code analysis
make lint # Linting
Perfect for:
- Web Applications: REST API integration
- Microservices: Email validation service
- CI/CD Pipelines: Automated email verification
- Enterprise Systems: Bulk email validation
0
: Email validation successful1
: Email validation failed or security issues detected
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Implement your changes
- Add comprehensive tests
- Follow Go best practices
- Submit a pull request
MIT License - Professional use encouraged