ADR-0008: Email lockdown, without MTA-STS or TLSRPT#

  • Status: accepted
  • Date: 2026-07-30

Context#

This domain neither sends nor receives email, and there is no plan for it to.

A domain with no mail records is more spoofable than one that forbids mail: with no MX, a sending server falls back to the A record and attempts delivery there; with no SPF or DMARC, a receiver has no policy to consult when someone forges From: anything@testz.dev. Silence is not default-deny.

The instinct is then to publish the full modern email-security set — SPF, DKIM, DMARC, MTA-STS, TLSRPT, BIMI. Two of those turn out to be actively wrong here.

Decision#

Publish four records that unambiguously declare "no mail":

RecordValue
MX0 . (RFC 7505 null MX)
TXT @ apexv=spf1 -all
TXT @ *._domainkeyv=DKIM1; p=
TXT @ _dmarcv=DMARC1; p=reject; sp=reject; adkim=s; aspf=s; pct=100

Do not publish MTA-STS. Do not publish TLSRPT by default. Do not include a DMARC rua=.

Alternatives considered#

Publish MTA-STS as well. This is the interesting rejection. RFC 8461 requires an MTA-STS policy file to list at least one mx host. This domain publishes a null MX under RFC 7505, declaring it has no MX hosts. The two specifications cannot both be satisfied honestly.

Publishing anyway would mean either a fabricated mx entry — advertising a mail host that does not exist — or a policy that fails validation. Both are worse than omission: they advertise a capability that is not there. The contradiction is a real property of the specifications, not an oversight in either.

Publish TLSRPT. TLSRPT reports on the TLS quality of inbound SMTP connections. A null-MX domain accepts none, so the record would describe nothing. Available behind enable_tlsrpt for completeness, off by default. Publishing records that do nothing is cargo cult, and cargo cult is the opposite of what this project is demonstrating.

Include a DMARC rua=. Aggregate reports need a mailbox. This domain has none. A reporting address that black-holes is worse than no address, because it looks like it works. A third-party reporting service would work but adds a dependency and shares DNS metadata for no benefit on a domain that sends nothing.

~all instead of -all in SPF. Softfail is the cautious default when you might have forgotten a legitimate sender. There are no legitimate senders here, so hard fail is correct and cautious is just weaker.

No records at all. The status quo for most domains, and strictly worse than this for the reasons in the Context.

Consequences#

Positive: forged mail from this domain fails SPF, fails DKIM against every possible selector, and is rejected under DMARC policy. Sending servers fail fast on the null MX rather than timing out against the web server. Zero cost, nothing to run. The record set demonstrates real understanding — including of when not to publish something.

Negative: enabling mail later is not a one-line change; the null MX and -all must come out together and in the right order, and DMARC p=reject will reject your own mail until SPF and DKIM are correctly configured first. Some compliance scanners flag missing MTA-STS without understanding why it is absent, which is what this ADR is for.

Neutral: no security.txt is published, and CAA publishes no iodef at all: with no mailbox, no IODEF receiver and no other public contact channel there is nowhere honest to send reports. Both follow from the same decision. (An earlier version published security.txt with an https:// contact URL; it was removed so the site carries no link to the source repository.)

Revisit when#

Mail is actually wanted. The cheapest serverless route is SES receiving plus a Lambda forwarder (a few cents a month). At that point MTA-STS and TLSRPT both become correct rather than contradictory, and this ADR gets superseded.

Built 2026-11-25 from commit 33bfabf6a27d4baeecf228c31bd5d636a3965070. This page was generated from the same source that provisions the infrastructure it describes.