365Fanatic / Tools / SPF, DKIM and DMARC generator

Create SPF, DKIM and DMARC records

Build your records with every option explained, and copy them straight into your DNS. DMARC follows DMARCbis (RFC 9989, 9990 and 9991). With presets for Microsoft 365 and Azure Communication Services, an SPF lookup counter, DKIM keys created in your own browser, and MTA-STS, TLS-RPT and BIMI too.

Optional. With your domain we fill in the host names and you can load the records you have now. Everything is built in your browser; 365Fanatic stores nothing.

Who sends mail for you?

Always check the include in the service's documentation; it can change. Many newsletter and transactional services (SES, SendGrid, Mailgun, Postmark) use their own domain or a subdomain of yours as the envelope sender. Their include then belongs there, not on your main domain, and DKIM takes care of DMARC alignment.

Your own servers

With Microsoft 365 you usually don't need these: mx then points to Microsoft, which the include already covers. Each one costs a DNS lookup.

IP addresses cost no DNS lookup; every include does, plus everything inside that include.

What happens to everything else? all

With DMARC it makes little difference to the receiver whether you pick -all or ~all: DMARC decides. Without DMARC, -all is the clearest choice. We deliberately don't offer +all (anyone may send).

Advanced: redirect, exists, exp and no-mail domain

Useful when many domains share one policy. A redirect only applies when the record has no all; we leave all out in that case.

We don't offer ptr: the standard advises against it and large receivers ignore it.

Read an existing SPF record

Done? Check the result with our email security check. What every tag means is in the guide to every tag.

In what order?

  1. SPF: one record with every service that sends for you, under ten DNS lookups.
  2. DKIM: for Microsoft 365 and every other service, with your own domain.
  3. DMARC at p=none with a rua address, read the reports, then move through quarantine to reject.
  4. TLS-RPT and MTA-STS (testing, later enforce), and DNSSEC with DANE.
  5. BIMI last, once DMARC is at quarantine or reject.

Want to know more?