email-check icon indicating copy to clipboard operation
email-check copied to clipboard

Returns valid when Null MX record is set

Open bmcculley opened this issue 2 years ago • 0 comments

What is this feature about (expected vs actual behaviour)?

RFC 7505 specifies "null MX" for when a domain explicitly does not support email.

Even if a null MX record is set this check will still return that the address is valid.

How can I reproduce it?

$emailCheck = EmailCheck::isValid("[email protected]", false, false, false,  true);

// expected false
// got true

Does it take minutes, hours or days to fix?

In isDnsError instead of using checkdnsrr it could use dns_get_record and then check the priority.

Any additional information?

bmcculley avatar Oct 14 '22 01:10 bmcculley