← Guides

How to set up DMARC, step by step

DMARC tells receiving mail servers what to do with email that claims to be from your domain but fails SPF and DKIM checks, and asks them to send you reports about it. It is the record that actually stops spoofing, and it is also how you find out which services send mail as you.

Updated 2026-10-23

Why it matters

  • Without DMARC, SPF and DKIM only inform the receiver; nothing says what to do when they fail.
  • The reports show every service sending as your domain, including ones you forgot about.
  • Gmail and Yahoo expect a DMARC record from domains that send in bulk.

How to fix it

  1. Start in monitoring mode (p=none): nothing is blocked, and you get daily reports of who sends mail as your domain at the address in rua=.
  2. Use an address you can actually read, or a DMARC report service. Once the reports look clean, move to p=quarantine and then p=reject.

After you deploy, re-check the site. A CDN or the browser cache can keep serving the old headers for a few minutes.

TXT record on _dmarc.example.com
_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

Common mistakes

  • Starting at p=reject. Begin with p=none, which blocks nothing, and read the reports for a few weeks.
  • Using a report address nobody reads. Use a mailbox you check, or a DMARC report service that summarises them.
  • Moving to quarantine or reject before every legitimate sender passes SPF or DKIM. Fix those first.

Check that it worked

Run your domain through the free spf and dmarc checker. It takes a few seconds, needs no account, and shows anything still missing.

Open the spf and dmarc checker

Questions

What are the steps?
Publish p=none with a reporting address. Read the reports for two to four weeks and fix any legitimate sender that fails. Move to p=quarantine, ideally with pct=25 then 100. When nothing legitimate is caught, move to p=reject.
Where does the record go?
It is a TXT record on _dmarc.yourdomain.com, for example _dmarc.example.com.

Related guides

Don't want to check by hand? Upzy watches your site around the clock and tells you when a header, certificate or email record slips. Start free.