How to use the dmarc record generator
- Select a policy (p). Start with
noneto collect data before enforcing. - Optionally set a subdomain policy (sp) if subdomains need different handling.
- Enter reporting URIs using the
mailto:scheme for aggregate (rua) and forensic (ruf) reports. - Adjust alignment modes, percentage and report interval to fit your infrastructure.
- Copy the generated value and create a TXT record at
_dmarc.yourdomain.comin your DNS zone.
How a DMARC record works
A DMARC TXT record tells receiving mail servers what to do when a message fails authentication checks. It relies on two underlying mechanisms: SPF and DKIM. You can generate those separately with an SPF record generator or a DKIM record generator.
The record always starts with v=DMARC1 followed by semicolon-separated tags. The most important tag is p, which sets the policy. A minimal monitoring record looks like this:
v=DMARC1; p=none; rua=mailto:dmarc@example.com;
This instructs receivers to accept all mail but send daily aggregate reports to the specified address.
Tag reference table
Every tag in the dmarc record generator output has a specific function. Here is a quick reference for the tags this tool supports.
| Tag | Name | Allowed values | Default |
|---|---|---|---|
p | Policy | none, quarantine, reject | (required) |
sp | Subdomain policy | none, quarantine, reject | same as p |
rua | Aggregate report URI | mailto: addresses | none |
ruf | Forensic report URI | mailto: addresses | none |
pct | Percentage | 0 to 100 | 100 |
adkim | DKIM alignment | r (relaxed), s (strict) | r |
aspf | SPF alignment | r (relaxed), s (strict) | r |
fo | Failure options | 0, 1, d, s | 0 |
ri | Report interval | seconds (integer) | 86400 |
Choosing the right policy
The three DMARC policies represent increasing levels of enforcement. Most organizations follow a phased approach.
- none: Receivers take no action on failing messages but still send reports. Use this phase to discover all legitimate sending sources.
- quarantine: Failing messages are delivered to the spam folder. This limits damage from spoofing while you investigate false positives.
- reject: Failing messages are blocked entirely. This provides the strongest protection but requires confidence that all legitimate mail passes authentication.
You can combine the pct tag with quarantine or reject to apply the policy to only a fraction of failing messages, allowing a gradual rollout.
Alignment modes explained
DMARC does not just check whether SPF or DKIM passed. It also verifies that the authenticated domain aligns with the visible From header. Alignment comes in two flavors.
Relaxed alignment (r): The organizational domains must match. For example, mail.example.com aligns with example.com. This is the default and works for most setups where subdomains handle sending.
Strict alignment (s): The domains must be identical. mail.example.com does not align with example.com. Use strict alignment only when you control every sending domain precisely.
You set DKIM alignment with adkim and SPF alignment with aspf. Either mechanism passing with alignment is enough for DMARC to pass.
Deploying and verifying your record
After generating your record, add it as a TXT entry in your DNS zone. The host name must be _dmarc (your DNS provider may automatically append your domain). Paste the entire output string as the value.
DNS propagation can take up to 48 hours, though most providers update within minutes. Once live, use a dmarc checker to confirm the record is published correctly and free of syntax errors.
Monitor your aggregate reports closely during the first weeks. Reports arrive as XML files usually compressed as gzip or ZIP archives. They show which IPs sent mail on behalf of your domain and whether each message passed or failed SPF and DKIM alignment.
Common mistakes to avoid
Several errors frequently break DMARC deployments. Watch out for these pitfalls:
- Missing mailto: prefix: Report URIs must start with
mailto:. A bare email address will cause receivers to ignore the tag. - Multiple TXT records: Publishing more than one DMARC record for the same domain makes the entire setup invalid. Combine all tags into a single record.
- Skipping SPF and DKIM: DMARC passes when SPF or DKIM passes and aligns with the From domain. If neither is configured, every message will fail. Set up at least one, ideally both, first.
- Setting reject too early: Jumping straight to
p=rejectwithout reviewing aggregate reports often blocks legitimate mail from marketing platforms or forwarded messages. - Forgetting how subdomains inherit: Without an
sptag, subdomains such asinfo.yourdomain.comfollowp. Setsponly when they need a different policy, for examplesp=rejectwhile the root is still atquarantine. A subdomain that publishes its own DMARC record uses that record instead.
Worked examples
| Example | Input | Result |
|---|---|---|
| Monitoring mode with aggregate reports | Policy (p): none; Aggregate report URI (rua): mailto:dmarc@example.com; Percentage (pct): 100; DKIM alignment (adkim): r; SPF alignment (aspf): r; Failure reporting options (fo): 0; Report interval (ri): 86400 | v=DMARC1; p=none; rua=mailto:dmarc@example.com; |
| Quarantine with strict alignment | Policy (p): quarantine; Aggregate report URI (rua): mailto:reports@example.com; Forensic report URI (ruf): mailto:forensics@example.com; Percentage (pct): 50; DKIM alignment (adkim): s; SPF alignment (aspf): s; Failure reporting options (fo): 1; Report interval (ri): 86400 | v=DMARC1; p=quarantine; rua=mailto:reports@example.com; ruf=mailto:forensics@example.com; pct=50; adkim=s; aspf=s; fo=1; |
| Reject policy for full enforcement | Policy (p): reject; Subdomain policy (sp): reject; Aggregate report URI (rua): mailto:dmarc@example.com; Percentage (pct): 100; DKIM alignment (adkim): r; SPF alignment (aspf): r; Failure reporting options (fo): 0; Report interval (ri): 3600 | v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@example.com; ri=3600; |
FAQ
What is a DMARC record?
A DMARC record is a DNS TXT entry published at _dmarc.yourdomain.com that tells receiving mail servers how to handle messages failing authentication. It ties together SPF and DKIM results with the visible From address.
Do I need both SPF and DKIM before using this dmarc record generator?
Yes. DMARC evaluates whether SPF or DKIM passes and aligns with the From header. Without at least one working mechanism, all your mail will fail DMARC checks.
Can I list multiple reporting email addresses?
You can include multiple URIs separated by commas, such as mailto:a@example.com,mailto:b@example.com. Each receiver will attempt to send reports to every listed address.
What happens if I set pct to 50 with p=reject?
Only 50 percent of messages that fail DMARC will be rejected. The remaining 50 percent are treated according to the next lower policy, which is quarantine. This lets you test enforcement gradually.
How often are aggregate reports sent?
By default, receivers send aggregate reports every 86400 seconds (24 hours). You can change this with the ri tag, though some receivers may ignore very short intervals.
Is my domain data sent anywhere when I use this tool?
No. This dmarc record generator runs entirely in your browser. Nothing is transmitted to any server, so your email addresses and domain details stay private.
What is the difference between rua and ruf?
The rua tag requests aggregate reports, which are daily summaries of all mail from your domain. The ruf tag requests forensic reports, which are individual failure notifications sent in near real time. Many receivers support rua but limit or ignore ruf due to volume.