DNS validation fallacy
msigley opened this issue · comments
Matthew Sigley commented
It is perfectly valid for a domain to not have an MX record but have a valid A record instead and receive email. Its definitely not best practice but it follows the spec for email delivery.
I wrote a similar PHP library in the past and handled this issue and bad dns providers who return results for all A record look ups. Feel free to reference it to fix this issue.
Chris Coleman commented
True. The official (RFC
specified) fallback for no MX
record in the zone, is the A
record.
Dave Earley commented
Thanks for the info @msigley! I'll update the code to reflect this