An MX lookup that returns Status 0 and an empty answer is not a verdict. Under RFC 5321 section 5.1, a domain with no MX records is treated as if it published an implicit MX of preference 0 pointing at itself. The sender then resolves that name's A and AAAA records and attempts delivery there. A validator that rejects on "no MX" alone invents a rule SMTP does not have.

That fallback is why null MX exists, why no_mx_no_a is its own reason code, and why a self-referential MX with no addresses is a second failure shape that ends in the same code. The DoH JSON shapes behind these lookups are covered in MX Lookups over DNS-over-HTTPS; this page is the SMTP rule those shapes have to obey.

What RFC 5321 actually requires

Section 5.1 is unambiguous:

  1. Look up MX for the domain.
  2. If one or more MX records exist, use them. Do not fall back to A/AAAA while ignoring published MX.
  3. If no MX records exist, treat the domain as having an implicit MX of preference 0 for itself, then resolve A/AAAA.
  4. If MX records exist but none are usable, or the implicit MX is unusable, delivery fails.

"Usable" means the chosen host has at least one address record. Preference order and multi-host lists matter for senders; for a signup validator the load-bearing question is narrower: is there any mail host with a reachable address?

Null MX (0 .) short-circuits the whole chain. It is an explicit refusal of mail, not an empty answer. Without it, a domain that serves a website and publishes no MX would look deliverable because the implicit rule would throw mail at the web host on port 25. The refusal semantics and the reserved-domain trap are in Null MX, RFC 7505, and Reserved Domains.

Two live shapes that both become no_mx_no_a

Measured against Cloudflare DoH and the fixture corpus on 2026-12-02:

input MX answer A/AAAA reason
user@gmaill.com Status 0, empty Answer, SOA TTL 300 Status 0, empty for both A and AAAA no_mx_no_a
user@hotmai.com Status 0, 10 hotmai.com. Status 0, empty for both A and AAAA no_mx_no_a
user@gmail.co Status 0, 0 . not consulted null_mx

gmaill.com is the textbook implicit-MX case: no MX, so the validator must ask for addresses. Today there are none, so there is nothing to connect to. The frozen demo response:

curl -X POST https://nobounce.dev/demo/check \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@gmaill.com"}'
{
  "verdict": "undeliverable",
  "reason": "no_mx_no_a",
  "suggestion": "user@gmail.com",
  "confidence": 0.94,
  "checked": { "syntax": true, "mx": true, "typo": true, "disposable": true },
  "cached": false
}

/demo/check is fixture-only. It resolves the frozen corpus listed by GET https://nobounce.dev/v1/config and cannot validate arbitrary live addresses. Use it to pin response shapes; switch to POST /v1/check with a paid key for production DNS.

hotmai.com is the self-MX cousin. It publishes an MX that points at itself, so step 2 of RFC 5321 says "use the MX" — there is no implicit fallback past a published exchanger. The exchanger still needs an address. Live DoH returns 10 hotmai.com. with neither A nor AAAA, so the mail host cannot be reached. Trusting the MX row alone would call that deliverable. The same fixture:

curl -X POST https://nobounce.dev/demo/check \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@hotmai.com"}'

returns undeliverable / no_mx_no_a with suggestion user@hotmail.com. One reason code, two DNS stories: empty MX that fails the implicit fallback, versus a published self-MX whose host has no addresses.

Address-family rules that keep the fallback honest

The A/AAAA step is itself a place to invent false certainty.

One usable family is enough. If A returns an address and AAAA fails, or the reverse, the host is reachable. Requiring both families rejects every IPv4-only mail exchanger still on the internet.

A required address lookup that errors is not "empty". SERVFAIL, transport failure, or a malformed DoH body on the address query means the check did not complete. That is unknown / dns_error with checked.mx=false, never a cached no_mx_no_a. Collapsing "resolver broke" into "no addresses" is the same class of bug as conflating SERVFAIL with NXDOMAIN on the MX query — see SERVFAIL Is Not NXDOMAIN.

Null MX and NXDOMAIN never consult A/AAAA. A null MX is already a refusal. An NXDOMAIN is already absence. Running the fallback anyway wastes lookups and can paper over the wrong fact when a name is gone but some sibling record still answers.

What the caller should branch on

For signup UI, no_mx_no_a behaves like the other definitive DNS undeliverables: offer the suggestion when present, otherwise block. Do not invent a softer path just because the DNS story involved a fallback — the address is still undeliverable.

curl -X POST https://nobounce.dev/v1/check \
  -H "Authorization: Bearer $NOBOUNCE_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@gmaill.com"}'

Live checks need a paid key. There is no free tier: hobby is $1/mo for 1,000 checks/mo, pro $19/mo for 100,000, and scale $99/mo for 1,500,000. Keys come from redeeming an operator-minted access code or paying self-serve through Stripe cards or usevig stablecoins. Put the key in the Authorization header, never a URL or query parameter.

nobounce does not perform SMTP RCPT TO probing — permanently out of scope — and never stores a plaintext email address; anything persisted is SHA-256, with domains kept in clear because a domain is not personal data. The A/AAAA fallback answers "is there a host to attempt," not "does this mailbox exist."

Branch on reason, not on whether an MX row was present. Empty MX plus empty addresses, and self-MX plus empty addresses, are both no_mx_no_a. Empty MX plus a usable address would be deliverable under the implicit rule. Null MX stays null_mx. Resolver failure stays dns_error with checked.mx=false.

For the full verdict-to-action mapping and fail-open contract, give your coding agent nobounce.dev/integrate.md.