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=DMARC1starts the record.p=nonemeans "monitor only". Do not block mail yet.ruais the address that receives summary reports.adkim=randaspf=ruse relaxed alignment. A subdomain can match its main domain. Strict alignment requires an exact match.pct=100applies 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
| Mistake | Result | Fix |
|---|---|---|
Starting with p=reject | Your own mail is blocked | Start with p=none |
No rua address | You get no reports | Add a mailbox you monitor |
| Record on the wrong host | DMARC is ignored | Use _dmarc on the sending domain |
| Multiple DMARC records | The record is invalid | Keep one record |
| SPF or DKIM broken | DMARC fails too | Fix those records first |
Check it
dig TXT _dmarc.example.com
You should see one record that starts with v=DMARC1.
Next steps
- Fix the sender record in SPF.
- Fix the signature in DKIM.
- If mail still goes to the spam folder, read Emails going to spam.