Loading
Code Deb

MX, SPF and DMARC: Three Checks That Answer Different Questions

Understand incoming mail routing, sending authorization and DMARC enforcement without claiming to verify inbox existence.

MX, SPF and DMARC: Three Checks That Answer Different Questions | Code Deb

An email validator should not describe a domain with MX records as a verified mailbox. An incoming mail exchanger can be configured correctly while an individual recipient does not exist. A company may have strict DMARC policy without being trustworthy. Each published DNS value must be read for what it actually controls.

MX records tell senders where to deliver messages

MX records contain hostnames and numerical preference values. Normally senders try entries with lower preference numbers first. Multiple entries can provide alternative routing. Looking up MX is not a live test that a server will accept a particular recipient.

RFC 7505 defines the null MX, which explicitly declares that a domain does not receive mail. RFC 5321 also describes the historical fallback to address records when there is no MX. This distinction matters when classifying unknown or inactive domains: missing MX and null MX must not be combined into a guaranteed bounce.

SPF is about authorized sending infrastructure

Sender Policy Framework uses DNS TXT records to express permitted sending systems and their qualifiers. An SPF pass concerns a mail transaction and its envelope domain. It is unrelated to whether an inbound mailbox exists or a user controls an address.

DMARC adds policy and domain alignment

DMARC combines authentication results and alignment with the From domain. Common published policies are p=none, p=quarantine and p=reject. They express a domain owner's requested handling of failed alignment; receiving systems ultimately apply their own processing. The mere presence of a strict policy cannot certify that a domain is legitimate.

Provider identification is a different question

A custom domain can host mail with Google Workspace or Microsoft 365 without being an open public Gmail or Outlook domain. One field identifies the mail infrastructure; another identifies whether anyone can register an inbox at that public domain. Conflating the two can wrongly reject business customers.

Review the raw evidence

The Code Deb MX checker shows routing and priority. The full report adds SPF, DMARC and other independent signals. Developers can inspect the reference fields and their actual status enums.

For ownership, send a confirmation link. These tools do not contact the destination mailbox or perform SMTP probing.

Specifications

More from Code Deb

Read about our agency, explore available services, or contact the team for a project discussion.