📧

Email DNS Generator

SPF, DKIM & DMARC records, checked the way receivers read them

Domain

The domain after the @ in the From address (or in the bounce address).

Servers that send

Only if the servers that receive your mail also send it.

Only if the web server itself sends mail.

Mail services

One per line: the include each service gives in its setup guide.

Not needed for most setups: Mailchimp and Postmark send with their own bounce address, so your SPF record isn’t checked for them. HubSpot and others with a per-account include give it in their own setup page. Zoho accounts outside the US: use the include Zoho’s admin console shows for your region.

IP addresses

One per line; a range as 198.51.100.0/24.

One per line; a range as 2001:db8::/48.

Everything else

The SPF record

Share MySysAd

⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.

Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.

Email authentication records, built correctly

Gmail, Yahoo and Outlook.com require bulk senders to publish SPF, DKIM and DMARC, and one syntax mistake can send your mail to spam. Fill in your mail services, key and policy, and copy records checked the way receiving servers read them, with zone-file lines and dig commands. Count lookups follows your SPF includes to see whether you stay under the limit of 10.

Common questions

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send mail for your domain. DKIM adds a signature to each message that receivers check against a public key in your DNS. DMARC tells receivers what to do when a message fails those checks (nothing, quarantine or reject) and where to send reports.

Can I have more than one SPF record?

No. A domain must have exactly one TXT record starting with v=spf1; two of them make SPF fail with a permanent error. Merge them into one, for example v=spf1 include:_spf.google.com include:sendgrid.net -all. SPF also allows at most 10 DNS lookups, and every include counts.

Should SPF end in ~all or -all?

-all (hard fail) says mail from any other server is not yours; ~all (soft fail) says it’s probably not. With DMARC in place, receivers act on the DMARC policy either way, so ~all is a common, safe choice while you confirm every sender is listed.

What DMARC policy should I start with?

Start with v=DMARC1; p=none; rua=mailto:dmarc@example.com to collect reports without affecting delivery. Once the reports show all your real senders passing, move to p=quarantine and then p=reject.

Why does SPF fail with too many DNS lookups?

Receivers allow 10 DNS lookups while checking an SPF record, and every include, a, mx, exists and redirect counts, including the ones inside each include. Past 10, SPF fails for every message. Remove services that no longer send for you, and leave out ones that don’t need your SPF record, such as Mailchimp and Postmark, which send with their own bounce address.

What changed in DMARC in 2026?

RFC 9989, published in May 2026, replaced RFC 7489. It removes the pct, rf and ri tags and adds np (the policy for subdomains that don’t exist), psd and t, the test mode: t=y asks receivers to apply one step lighter. Existing v=DMARC1 records keep working.

How do I check my records after publishing them?

dig TXT example.com +short shows SPF, dig TXT _dmarc.example.com +short shows DMARC, and dig TXT selector._domainkey.example.com +short shows a DKIM key (the selector comes from your mail provider). Changes can take until the old TTL expires to show everywhere.

Related tools: DNS Propagation Checker · DNS Zone File Checker · Error Message Decoder · All tools A–Z