MX record lookup
MX records say which servers receive mail for a domain, lowest number first. This lists them, then reads the rest of the domain's mail set-up while it is there.
Priority
The number before each server is its preference: senders try the lowest first and the next only if it does not answer. Equal numbers share the load.
No MX at all
Without MX records, senders fall back to the domain's own address - usually a web server that does not accept mail. A domain that receives no mail on purpose can say so with a null MX: priority 0 and a single dot.
Where mail goes is not who may send it
MX is about receiving. Who may send as the domain is SPF and DKIM, and what happens to forgeries is DMARC - all read below the servers.
The same check reads SPF, DKIM, DMARC, MTA-STS, DNSSEC, CAA and BIMI together, with one grade for the domain: email and domain security checker.