generate_dmarc_record
Generate a validated DMARC record for a domain lacking one. Specify policy, optional aggregate report email, subdomain policy, and alignment strictness.
Instructions
Build a DMARC record from scratch for a domain that has none, using a validating engine — never compose one yourself. policy is none|quarantine|reject; optional rua_email (aggregate-report destination), subdomain_policy, and strict_alignment. The generated record is re-validated before it is returned. Present it verbatim; a human must approve before publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | The requested p= policy: 'none' monitors only, 'quarantine' sends failing mail to spam, 'reject' refuses it outright. Start at 'none' unless the domain's aggregate reports already justify enforcement. | |
| rua_email | No | Mailbox to receive DMARC aggregate (RUA) reports, as a plain address like dmarc@example.com. Strongly recommended: without it nobody can see who sends as the domain. | |
| strict_alignment | No | Set true to emit strict alignment (aspf=s adkim=s), requiring an exact domain match instead of the organizational-domain match. Leave false unless you know every sender aligns strictly. | |
| subdomain_policy | No | Optional sp= policy for subdomains when it should differ from the main p= policy. Omit to let subdomains inherit p=. |