Skip to main content

Configuring DMARC

DMARC tells mailbox providers what to do when SPF or DKIM fails, and where to send reports. It also ties those checks to the From address your recipients see.

DMARC is the record that makes SPF and DKIM useful together. Without it, a provider can still deliver a failed message and you never hear about it.

A safe starting record​

Create a TXT record on _dmarc.example.com:

v=DMARC1; p=none; rua=mailto:[email protected]; adkim=r; aspf=r; pct=100
  • v=DMARC1 starts the record.
  • p=none means "monitor only". Do not block mail yet.
  • rua is the address that receives summary reports.
  • adkim=r and aspf=r use relaxed alignment. A subdomain can match its main domain. Strict alignment requires an exact match.
  • pct=100 applies the policy to all mail.

Use a mailbox you actually read. Reports arrive as XML files and can be large.

Step 1: Start with monitoring​

Publish p=none and wait. Reports show which servers send mail for your domain and whether SPF and DKIM pass.

Check that your website, email provider, and any other service that sends as your domain are listed in SPF or sign with DKIM.

Step 2: Fix what fails​

Look for sources that fail both SPF and DKIM. Common causes are:

  • A contact form or host that sends through PHP mail.
  • A marketing tool that was never added to SPF.
  • A provider with a missing or broken DKIM record.

Fix those before you tighten the policy.

Step 3: Move to quarantine​

When reports look clean, change the policy:

v=DMARC1; p=quarantine; rua=mailto:[email protected]; pct=100

Quarantine asks providers to put failing mail in spam. Watch for a few weeks before going further.

Step 4: Move to reject​

v=DMARC1; p=reject; rua=mailto:[email protected]; pct=100

Reject tells providers to block failing mail. Use it only when you are confident every legitimate sender passes SPF or DKIM.

If you are not ready for a full policy, keep p=quarantine and raise pct in steps.

Common mistakes​

MistakeResultFix
Starting with p=rejectYour own mail is blockedStart with p=none
No rua addressYou get no reportsAdd a mailbox you monitor
Record on the wrong hostDMARC is ignoredUse _dmarc on the sending domain
Multiple DMARC recordsThe record is invalidKeep one record
SPF or DKIM brokenDMARC fails tooFix those records first

Check it​

dig TXT _dmarc.example.com

You should see one record that starts with v=DMARC1.

Next steps​