Documentation Email authentication
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 instead.
Publish these records
Make these changes at your DNS provider (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.
| 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.
- SPF: no server may send as this domain. The SPF standard, RFC 7208, 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. - DMARC: refuse mail in this domain's name that fails the checks. With no server allowed to send for it, no 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=rejectasks receivers to refuse it. If the domain already has a DMARC record, setp, andspandnpif the record has them, toreject, and removet=yandpctif they are there. To get reports, addrua=mailto:and an address: see See who tries to send as it. - Null MX: the domain accepts no email. RFC 7505 defines it: one MX record with priority
0and.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). 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 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.
- In each service that used to send for the domain, check its sending log or settings to confirm it no longer does.
- 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 withp=noneand a report address. Not every receiver sends reports, so step 1 still counts. - 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._domainkeyon 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. - Publish the records above:
-all, andp=rejectwith the report address you added, and the null MX only if no one receives mail at the domain.
Subdomains
- Subdomains that don't exist, such as
invoices.example.comwhen you never created it:p=rejectcovers them. DMARC's new standard, RFC 9989, gives them their own tag,np; without it, receivers usesp, thenp. On this domain,npadds nothing; see DMARC is now RFC 9989 for domains that send mail. - Subdomains that exist, such as
www: DMARC covers them throughp, orspif you set it;sp=noneleaves 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 not=yorpct. To answer SPF for them too, publishv=spf1 -allon each one that nothing sends from and that has no CNAME record, as RFC 7208's example does forwww.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 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.
Check your domain
See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.
Last updated : 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.
For AI agents: this page in Markdown, llms.txt, the index of guides and public pages