WebTools
Email deliverability

How to set up DMARC (and stop landing in spam)

What SPF, DKIM and DMARC do, the exact DNS records to add, and how to move from monitoring to protection without losing real email.

By the WebTools team · Updated 2026-11-02 · 1 min read

If your emails keep landing in spam, there is a good chance your domain is missing a DMARC record. Mail providers like Gmail and Outlook use three DNS records to decide whether an email really came from you: SPF, DKIM and DMARC.

What the three records do

  • SPF lists the servers that are allowed to send email for your domain.
  • DKIM adds a signature to every message, so the receiver can tell nothing was changed on the way.
  • DMARC tells receivers what to do when a message fails those checks, and where to send reports.

You need SPF and DKIM working first. DMARC builds on them.

The record to add

Go to your DNS provider and add a TXT record with the name _dmarc and this value:

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

With p=none, nothing gets blocked yet. You only start receiving reports about who sends email in your name.

Moving to protection

After two to four weeks, read the reports. If every service you use (your mailbox, newsletter tool, invoicing app) passes, change p=none to p=quarantine. Failing messages then go to spam. Once you are confident, switch to p=reject.

Check your setup

Run your domain through the website checker. The email section shows whether SPF, DKIM and DMARC are in place and flags common mistakes, such as two SPF records on one domain.

Check this on your own siteThe free website checker tests this and 40 other things in about 30 seconds, and links each problem to its guide.
Check my site

Questions about this topic

Why do my emails go to spam?

Most of the time a missing or broken SPF, DKIM or DMARC record is to blame. The email section of the report shows which one needs attention.

What is a DKIM selector and where do I find it?

It is the name your email provider gives your DKIM key, such as “google” or “selector1”. Your provider’s DNS setup page lists it.

Related guides

AccessibilityAccessible links, buttons and forms: quick fixes that help everyoneForm fields without labels, empty icon buttons and "click here" links confuse screen reader users. Learn the quick fixes that make your site usable for everyone.1 min readSEOCanonical tags: fix duplicate content the right wayA canonical tag tells Google which address is the main copy of a page. Learn when to use it, how to add it, and how to fix missing, wrong and duplicate canonicals.1 min readSEOThin content: how much text does a page need to rank?Pages with very little text rarely rank. Learn what thin content is, when short pages are fine, and how to expand or merge pages so they answer the searcher's question.1 min read