SPF and DMARC record generator
generate_dns_recordsWrite an SPF record from the providers that send for a domain (with an estimate of its DNS lookups against the limit of 10), a DMARC record from a policy, and where a provider publishes DKIM. Returns host, type and value to publish. It writes records; to check what is published, use check_spf, check_dmarc and check_dkim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spfMx | No | Add the mx mechanism. Defaults to false. | |
| spfAll | No | Policy for unlisted senders. Defaults to ~all. | |
| dmarcPct | No | Percentage the policy applies to. Defaults to 100. | |
| dmarcRua | No | Address for aggregate reports, e.g. dmarc@example.com. | |
| dmarcPolicy | No | Ask for a DMARC record with this policy. p=none is fine for cold email. | |
| spfIncludes | No | Extra SPF include domains, e.g. ["_spf.example.com"]. | |
| dkimProvider | No | A provider to get DKIM setup steps for, e.g. "Google Workspace". | |
| spfProviders | No | Providers that send for the domain, e.g. ["Google Workspace", "SendGrid"]. | |
| dmarcSubdomainPolicy | No | Subdomain policy, if different. |