[Documentation](https://mailglo.com/docs/) / Email authentication

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

# Protect a domain that sends no email

A domain you own but never send email from can still be forged: anyone can put it in the From address of a phishing message. An SPF record says no server may send as the domain, and a DMARC record asks receiving mail servers to refuse the mail that results. A third record, a null MX, makes mail sent to the domain bounce at once. This suits parked domains, old brand names, typo domains you bought to protect your name, and domains used only for a website. If anything still sends email with the domain or any of its subdomains, such as a newsletter from `news.example.com` or a service's return address on a subdomain, this guide isn't for it: see [DMARC](https://mailglo.com/docs/dmarc/) instead.

## Publish these records

Make these changes at your DNS provider ([where your records are kept](https://mailglo.com/docs/check-a-domain/#where-your-records-are-kept)). `example.com` stands for your domain. If the domain sent mail before, start with [If the domain sent mail before](https://mailglo.com/docs/no-email-domain/#if-the-domain-sent-mail-before).

| Name | Type | Value |
|---|---|---|
| `example.com` | TXT | `v=spf1 -all` |
| `_dmarc.example.com` | TXT | `v=DMARC1; p=reject` |
| `example.com` | MX | `0 .`, only if no one receives mail at the domain |

Many DNS providers want only the part before your domain in the name: `@` for `example.com`, `_dmarc` for `_dmarc.example.com`.

1. SPF: no server may send as this domain. The SPF standard, [RFC 7208](https://www.rfc-editor.org/rfc/rfc7208.html), calls this "a well-established best practice" and gives the record: `"v=spf1 -all"`. If the domain already has an SPF record, replace it; a domain needs exactly one.
2. DMARC: refuse mail in this domain's name that fails the checks. With no server allowed to send for it, no [DKIM](https://mailglo.com/docs/dkim/) key (the signing key a sending service publishes in your DNS) left for it or its subdomains, and no subdomain whose SPF record allows a server, every message in its name fails DMARC, and `p=reject` asks receivers to refuse it. If the domain already has a DMARC record, set `p`, and `sp` and `np` if the record has them, to `reject`, and remove `t=y` and `pct` if they are there. To get reports, add `rua=mailto:` and an address: see [See who tries to send as it](https://mailglo.com/docs/no-email-domain/#see-who-tries-to-send-as-it).
3. Null MX: the domain accepts no email. [RFC 7505](https://www.rfc-editor.org/rfc/rfc7505.html) defines it: one MX record with priority `0` and `.` as the server. Mail sent to the domain then fails at once instead of waiting days to retry. Remove every other MX record first; the RFC says a domain with a null MX "MUST NOT advertise any other MX RR". Skip this record if anyone receives mail at the domain.

## See who tries to send as it

With a report address in `rua=`, receivers send daily reports of the mail they saw in your domain's name. The reports show which servers try to send as it and what each receiver did with that mail. If the domain keeps receiving mail, an address on it works. With a null MX, use an address on another domain that receives mail. An address on a separately registered domain, such as `example.net` rather than `reports.example.com`, works only if that domain allows reports for yours. Report services usually do this already; otherwise its owner publishes a TXT record `example.com._report._dmarc.<that domain>` with the value `v=DMARC1`. Without it, receivers send no reports.

MailGlo's report address needs no extra record. With the domain in MailGlo, its setup panel gives a DMARC value with that address ([Connect DMARC reports](https://mailglo.com/docs/connect-reports/)). The panel keeps your current policy and suggests `p=none` when there is no DMARC record yet. For a domain that never sent mail, set `p=reject` in the value before you publish it; for one that did, follow [If the domain sent mail before](https://mailglo.com/docs/no-email-domain/#if-the-domain-sent-mail-before) first. If setup offers hosted SPF, choose **Keep my own SPF record**: hosted SPF lists sending services, and this domain has none.

## If the domain sent mail before

This includes a domain someone else owned before you: their services and DKIM keys may still be in its DNS.

1. In each service that used to send for the domain, check its sending log or settings to confirm it no longer does.
2. Keep the current DMARC policy and add a report address for a few weeks. If the record already says `p=reject`, leave it: receivers report the mail they refuse too, so a service someone forgot still shows up. If there is no DMARC record, start with `p=none` and a report address. Not every receiver sends reports, so step 1 still counts.
3. Once the reports and the services show no mail you want, delete the DKIM records of those services from DNS. Each is named `<selector>._domainkey`, on the domain or a subdomain, where the selector is the name the service gave its key. Your DNS provider's list of records shows every name ending `._domainkey` on the domain and its subdomains; delete each one nothing signs with. A key can also sit behind a CNAME or in a zone hosted elsewhere, so check those too. The check tests common selector names only, so a clean check doesn't prove the old keys are gone. Anyone who still holds a private key can sign mail that passes DMARC.
4. Publish the records above: `-all`, and `p=reject` with the report address you added, and the null MX only if no one receives mail at the domain.

## Subdomains

1. Subdomains that don't exist, such as `invoices.example.com` when you never created it: `p=reject` covers them. DMARC's new standard, [RFC 9989](https://www.rfc-editor.org/rfc/rfc9989.html), gives them their own tag, `np`; without it, receivers use `sp`, then `p`. On this domain, `np` adds nothing; see [DMARC is now RFC 9989](https://mailglo.com/docs/dmarc-rfc-9989/) for domains that send mail.
2. Subdomains that exist, such as `www`: DMARC covers them through `p`, or `sp` if you set it; `sp=none` leaves them open. A subdomain with its own DMARC record, such as `_dmarc.www.example.com`, follows that record instead, so give it the same values as the main record: `p=reject`, and no `t=y` or `pct`. To answer SPF for them too, publish `v=spf1 -all` on each one that nothing sends from and that has no CNAME record, as RFC 7208's example does for `www.example.com`. A name with a CNAME (an alias to another name) can't have a TXT record beside it, so leave it as it is: removing the CNAME would take your website off that name.

## Check your records

[Check a domain](https://mailglo.com/check/) reads the domain's records. Its MX row says "This domain accepts no email (null MX).", and **Details →** shows SPF with `-all` and DMARC with `p=reject`. DNS answers are cached, so if a new record doesn't show yet, check again in an hour.

Last updated 25 Nov 2026: New guide: the three records that protect a domain that sends no email.

Documentation version docs-2026-10-12.

Found an error, or a question this page does not answer? Email support@mailglo.com.
