Free SPF and DMARC record generator

Choose your senders and policy, then copy the TXT records to your DNS provider.

Generation runs entirely in your browser. Nothing you type is sent to a server until you choose to check your records.

SPF senders

Publish exactly one SPF record. Replace or combine your existing SPF record rather than adding a second one.

Publish exactly one TXT record listing every service that sends as the domain — the mailbox provider, the newsletter tool, the app that sends receipts — and end it with -all (or ~all while you check nothing is missing). The record may trigger at most 10 DNS lookups (include, a, mx and similar). A domain that sends no mail should still say so.

Only direct includes are counted here. Nested includes can add lookups; no DNS is fetched, so this is a lower bound, not a validation of the full lookup budget.

DMARC policy

Start with p=none and a rua address to receive aggregate reports. Read them for a few weeks to find every legitimate sender, fix their SPF and DKIM, then move to p=quarantine and finally p=reject.

DMARC is published with p=none: reports are collected, but spoofed mail is still delivered.

Your TXT records

Add this TXT record at your DNS provider for each entry below. Use the host/name and TXT value shown, following your provider's instructions for entering names.

SPF

Type: TXT

DMARC

Type: TXT

Provider documentation

Use your sender's domain authentication instructions for the domain it tells you to configure.

Questions

How do I set up an SPF record, and what is the right syntax?

Publish exactly one TXT record listing every service that sends as the domain — the mailbox provider, the newsletter tool, the app that sends receipts — and end it with -all (or ~all while you check nothing is missing). The record may trigger at most 10 DNS lookups (include, a, mx and similar). A domain that sends no mail should still say so.

Read the SPF record guide

How do I set up a DMARC record?

Start with p=none and a rua address to receive aggregate reports. Read them for a few weeks to find every legitimate sender, fix their SPF and DKIM, then move to p=quarantine and finally p=reject.

Read the DMARC record guide

Check your records

After publishing, verify with the SPF and DMARC checker. It shows saved findings or offers a full passive audit with a public report. The first audit needs no account. The checker does not follow nested SPF includes or count DNS lookups.

Related tools

All free tools