Special case MX records
If there is no MX record present, the protocol is to try to deliver the email to the A or AAAA record in the destination. For example, an email is sent to markjr@antisocial.dom but antisocial.dom has no MX records. The MTA will then do an A-record lookup for antisocial.dom and attempt delivery there.
There is also the special case of the null MX (formalized in RFC7505) which is defined as a ".", preference 0 and that means no email is expected nor accepted for this domain. MTAs are supposed to hard fail and return a Non-Delivery Notifcation (NDN) when encountering email addressed to a domain with the null MX set.
You would probably define that in conjunction with the SPF record in the domain that disavows all email ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access