What DMARC does
DMARC tells receivers what to do with mail that claims to come from your domain but fails SPF and DKIM. In return you get reports on who sends in your name.
How it works
DMARC checks two things: whether SPF or DKIM passed and whether the domain checked matches the sender address in the “From” field. This match is called alignment. If both fail, your policy applies.
The record is a TXT at _dmarc.<your domain>:
v=DMARC1; p=none; rua=mailto:dmarc@your-domain.example
The policy p has three stages:
p=none: nothing changes in delivery. Throughruayou receive daily reports on who sends in your name.p=quarantine: mails that fail go to spam.p=reject: mails that fail are rejected.
What matters
quarantineorrejectin the end. Only then does DMARC protect your domain from forgeries;p=noneonly watches.pctat 100. Withpct=25the policy applies to only part of the mails. In the endpctshould be 100 or absent.- Reports to a foreign domain. The target domain must agree, with a record at
<your domain>._report._dmarc.<target domain>. - Subdomains. Without
sp=the policy also applies to subdomains.sp=noneopens them again. - DKIM with your own domain. Forwarding and mailing lists break SPF; then only DKIM carries.
How to set it up
- Create the record with
p=noneand an address for reports in the DNS settings of your domain, yourself or through your agency. - Evaluate the reports for two to four weeks. For every legitimate source, set up SPF and DKIM with your domain.
- Switch to
quarantine, later toreject. Withpctyou can make the switch in steps.