Skip to main content
wp-config.org

Search tools

Email tools

Lock down a domain that sends no email

Build the records that tell every mail server a domain sends and receives no email, so nobody can send convincing mail as it. Then test that the lock-down is published and complete.

  • Null MX
  • SPF -all and DMARC reject
  • For parked domains and subdomains

Free, no sign-up. Results are not saved.

This tool needs JavaScript. Turn JavaScript on and reload the page.

Email DNS

What gets your email delivered in 2026

  • Gmail and Yahoo ask every sender for SPF or DKIM. Bulk senders (for Gmail, about 5,000 or more messages a day to Gmail accounts) also need both SPF and DKIM, a DMARC record (p=none at least) aligned with SPF or DKIM, and one-click unsubscribe for marketing mail. Since November 2025 Gmail has been stepping up enforcement, including rejecting mail that does not comply.
  • Outlook.com, Hotmail and Live ask domains that send more than 5,000 messages a day for passing SPF and DKIM and DMARC p=none or stronger, aligned with one of them. Since 5 May 2025 mail that fails goes to Junk.
  • Mail from your WordPress site (password resets, orders, contact forms) counts too: send it through an SMTP plugin and an email service that is in your SPF and DKIM records.

What you can do

  • Build a null MX record (0 .)

  • Build the SPF record v=spf1 -all

  • Build a DMARC record that rejects all mail, subdomains included

  • Withdraw every DKIM key with a wildcard record

  • Add an optional address for reports of forgery attempts

  • Test that the domain is fully locked down

How to lock down a domain that sends no email

  1. Make sure nothing sends as the domain

    Check that no website, mailbox, form or service uses an address at the domain. If something does, set up SPF, DKIM and DMARC for it instead.

  2. Publish the records

    Enter the domain and copy the records: a null MX, SPF -all, DMARC p=reject and, if your DNS host allows it, a wildcard DKIM record. Remove any other MX and SPF records.

  3. Test the lock-down

    After a quick Cloudflare security check, the test reads each record and says whether the domain is locked down, and what is missing if not.

Why unused domains need email records

A domain with no email records is an easy target. Nothing tells receivers to refuse mail that claims to come from it, so spammers and phishers use parked domains, old brand names and spare domains bought for typos. Four records say: this domain sends nothing and receives nothing.

The records

  • MX 0 . (priority 0, host a single dot) is a null MX (RFC 7505). Senders learn at once that the domain takes no mail, instead of retrying for days. It must be the only MX record.
  • A TXT record at the domain with v=spf1 -all says no server at all may send as it. Keep it as the only SPF record.
  • A TXT record at _dmarc with v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s asks receivers to refuse forged mail from the domain and its subdomains. Strict alignment leaves no room for lookalike subdomains. Add rua=mailto: and an address if you want reports of forgery attempts.
  • Optionally, a TXT record at *._domainkey with v=DKIM1; p= marks every DKIM key as withdrawn. With SPF -all and DMARC p=reject forged mail already fails, so leave it out if your DNS host refuses the wildcard.

Check before you lock down

These records stop every email sent as the domain, including your own. If a WordPress site uses an address at the domain, its password resets, order emails and contact-form notifications will be refused or sent to spam. Out of the box, WordPress sends as wordpress@ your site's domain, and SMTP and form plugins set their own From address. Check them before you publish, and move that mail to a domain that is set up to send, using the SPF, DKIM and DMARC tabs.

Subdomains that never send mail

The same records work for a subdomain, such as www or shop, of a domain that does send email. Publish them at the subdomain's own name: the null MX and SPF at shop.yourdomain, and DMARC at _dmarc.shop.yourdomain. Your main domain's mail is not affected. Use the DNS lookup afterwards to see what each name publishes.

Frequently asked questions

Why would anyone send email as my parked domain?

Because nothing stops them. Without SPF and DMARC, receivers have no way to tell that the domain never sends mail, so forged messages from it are more likely to be delivered. Spammers look for domains like that, especially ones that look like a real brand.

What is a null MX record?

An MX record with priority 0 and the host . (a single dot), defined in RFC 7505. It says the domain accepts no email, so senders give up at once. Never use @ as the target: on most DNS hosts it means your domain itself, which points mail at your web server. If your DNS host does not accept a single dot as the target, it cannot publish a null MX: leave the MX records empty and rely on SPF -all and DMARC p=reject, which already stop forged mail.

Will this stop WordPress emails from my site?

Yes, if WordPress sends as an address at this domain. Password resets, order emails and contact-form notifications sent as the domain are refused or marked as spam. Only lock down a domain that nothing sends from, or move your site's mail to another domain first.

Can I lock down a subdomain and keep email on the main domain?

Yes. Publish the records at the subdomain's own name, such as shop.yourdomain and _dmarc.shop.yourdomain. They do not change how mail for the main domain works.

Do I need the wildcard DKIM record?

No, it is optional. SPF -all and DMARC p=reject already make forged mail fail. The *._domainkey record with an empty p= adds a second layer by marking every DKIM key as withdrawn. Some DNS hosts do not allow a wildcard there; leave it out if yours refuses it.

Is the domain I check stored?

The result is not saved. The MTA-STS policy, BIMI logo and certificate the test downloads are read once and not kept. To count how the tool is used, this site keeps the domain you tested for 12 months, with the time, the outcome, your approximate location (country, region and city), the site you came from and your type of device and browser, but no IP address, and never the services or DKIM selectors you picked. The privacy policy has the details.

Related tools

  • Look up DNS records and check SPF, DMARC, DKIM and DNSSEC.

  • Email header decoder

    New (added recently)

    Paste an email’s full headers to see its delivery path, delays, SPF, DKIM, DMARC and ARC results, alignment and spam scores, decoded in your browser.

  • Blacklist checker

    New (added recently)

    Check whether an IP address or a domain’s website and mail servers are on spam blocklists, with what each listing means and how to get removed.

  • DNS propagation checker

    New (added recently)

    Check whether a DNS change has reached Google, Cloudflare, Quad9 and other public resolvers, and when each one refreshes.