Home › SPF/DMARC generator
Free tool

SPF & DMARC generator

Without SPF and DMARC, almost anyone can send email in your domain's name – fake invoices, CEO fraud. Build the right DNS records here in a few minutes. Right in your browser, nothing leaves this page.

1. SPF record

Which services send email for your domain? Tick everything that applies.

Your own IP addresses or more includes, separated by spaces. ip4/ip6/include are detected automatically.

How to add it: at your DNS provider, create a TXT record on the root name of the domain (host "@") with exactly this content. Only ONE SPF record per domain.

2. DMARC record

DMARC tells receiving servers what to do with forged mail – and sends you reports.

Optional but recommended: see who sends in your name.

How to add it: TXT record on the host "_dmarc" of your domain with this content. Start with p=none and a rua address, read the reports for 2–4 weeks, then move to quarantine and later reject.

3. DKIM – explained honestly

DKIM signs your email cryptographically. The key cannot be "generated" here – it must come from the service that sends your mail, otherwise the signature won't match. Here is where to get it:

Microsoft 365
Admin Center → Security (defender.microsoft.com) → Policies → DKIM → your domain → enable. Microsoft gives you two CNAME records (selector1._domainkey, selector2._domainkey) to add at your DNS provider.
Google Workspace
Admin console → Apps → Google Workspace → Gmail → Authenticate email. Google creates the key and shows a TXT record (google._domainkey) to add in DNS; then "Start authentication".
Newsletter/sending services (SendGrid, Brevo, Mailchimp …)
In the service under "Authenticate domain / Sender Authentication". The service shows CNAME or TXT records – add exactly those in DNS.

Are the records actually live?

The free Exolos external check verifies SPF, DMARC, DKIM and 7 more areas live on your domain –.

Check your domain for free
Notes: only one SPF record per domain. Check the includes against your providers' docs – mistakes can cause real mail to be rejected. Start SPF with ~all and DMARC with p=none before tightening. This tool is a help, not a legal or deliverability guarantee.

Frequent questions

What is the difference between SPF, DKIM and DMARC?

SPF defines which servers may send for your domain. DKIM signs mail cryptographically. DMARC ties both together and says what happens to mail that fails – plus reports to you.

Why can't the DKIM key be generated here?

Because the private key must live at the sending service to sign mail. A key generated here would be worthless. So we only show the honest route via your provider.