pyIsEmail icon indicating copy to clipboard operation
pyIsEmail copied to clipboard

Null MX validation

Open jace opened this issue 4 years ago • 2 comments

RFC 7505 specifies "null MX" for when a domain explicitly does not support email. This is testable with the example.* domains:

example.org mail is handled by 0 .

However, pyIsEmail when using check_dns=True does not test for RFC 7505 and accepts null MX records as valid.

>>> is_email('[email protected]', check_dns=True, diagnose=True)
<ValidDiagnosis: VALID>

jace avatar Aug 24 '20 11:08 jace

This looks reasonable. I'd be happy to accept a PR.

michaelherold avatar Sep 16 '21 19:09 michaelherold

Hi there, Is this why Domains with MX that has no A Record, validated?

IPENprj avatar Jan 17 '22 14:01 IPENprj

Opened PR #22 which checks the returned MX record(s) preference.

bmcculley avatar Oct 14 '22 00:10 bmcculley