Python script that verifies email addresses via SMTP handshake, MX record lookup, and syntax validation. Catch bad emails before they bounce. Runs on Python 3.10+ stdlib only — no pip installs needed.
RFC 5322 email syntax validation with detailed error messages
MX record lookup and priority-based server selection
SMTP handshake verification (HELO, MAIL FROM, RCPT TO)