---
title: "RFC 5321 Implicit MX: Why Empty MX Is Not Enough"
description: "NOERROR with no MX is not a reject. RFC 5321 requires an A/AAAA fallback, and a self-referential MX with no addresses is a different shape of the same failure."
slug: "rfc-5321-implicit-mx-a-aaaa-fallback"
date: 2026-12-02
updated: 2026-12-02
last_tested: 2026-12-02
summary: "When MX is empty, SMTP falls back to the domain's A/AAAA records. A validator that stops at the empty MX answer invents deliverability; one that also mishandles self-MX invents it twice."
cluster: "DNS and RFCs"
intent: engineering
sources:
  - title: "RFC 5321 — SMTP address resolution and implicit MX"
    url: "https://www.rfc-editor.org/rfc/rfc5321.html#section-5.1"
  - title: "RFC 7505 — A Null MX Resource Record for Domains That Accept No Mail"
    url: "https://www.rfc-editor.org/rfc/rfc7505.html"
  - title: "RFC 1035 — Domain names, RCODEs and record types"
    url: "https://www.rfc-editor.org/rfc/rfc1035.html"
  - title: "Cloudflare DNS over HTTPS JSON API"
    url: "https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json/"
  - title: "nobounce.dev verdict taxonomy and fixture list"
    url: "https://nobounce.dev/v1/config"
  - title: "nobounce.dev agent reference"
    url: "https://nobounce.dev/llms.txt"
---

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](https://nobounce.dev/blog/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](https://nobounce.dev/blog/null-mx-rfc-7505-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:

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

```json
{
  "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:

```bash
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](https://nobounce.dev/blog/servfail-vs-nxdomain-email-validation/).

**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.

```bash
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](https://nobounce.dev/integrate.md).
