Skip to content

Free tool

Generate your SPF and DMARC records

Pick your email provider and the services that send on your behalf. We give you both records, ready to copy into your domain’s DNS.

SPF

Other services that send email on your behalf

Separated by spaces. For example: include:example.com 203.0.113.10

What to do with emails from any other server

DMARC

Ideally one used only for this. If you leave it empty, we use dmarc@ plus your domain.

DMARC policy

What this tool generates

Two text (TXT) records for your domain’s DNS:

  • SPF, on the domain itself (the name is usually written as @): the list of servers allowed to send email on your behalf.
  • DMARC, at _dmarc.yourdomain.com: what to do with emails that fail the check and where to send the reports.

The third one, DKIM, can’t be generated from outside: your email provider creates the key (in Google Workspace, under Authenticate email; in Microsoft 365, in the Defender portal) and you just copy it into your DNS.

How to use it

  1. Choose your email provider, the one that hosts your mailbox. If it isn’t on the list, choose “Another one” and type its include in the field below: you’ll find it on its SPF help page.
  2. Tick the services that send email from your domain: the newsletter, the invoicing tool, the CRM or the online store. If you leave one out, its emails will fail SPF.
  3. For DMARC, start with p=none and an address for the reports. For a few weeks they’ll tell you who sends on behalf of your domain; once everything legitimate passes, move up to quarantine and, later on, to reject.
  4. Copy the records into your DNS, in your domain provider’s control panel. If you already have an SPF record, replace it: a domain can only have one.

Mistakes it helps you avoid

Mistake What happens How we avoid it
Two SPF records The check returns an error and it’s as if you had none We give you a single one with everything in it
More than 10 DNS lookups SPF fails We count the include entries and warn you
+all at the end Any server can send on your behalf We only offer ~all or -all
DMARC without reports You can’t see who’s using your domain We add rua with your address

Once you’ve published them, wait a few minutes and check them with the SPF, DKIM and DMARC checker. The full step-by-step explanation is in the guide SPF, DKIM and DMARC in ten minutes.

Frequently asked questions

Is it free?

Yes. The records are generated right here from what you choose: we don’t look anything up and you don’t need to sign up.

I already have an SPF record. Do I add another one?

No: a domain can only have one SPF record. Generate a new one with everything that sends on your behalf and replace the one you have.

~all or -all?

With ~all, emails from servers that aren’t on the list are marked as suspicious; with -all, they’re rejected. Start with ~all and switch to -all once you’re sure no service is missing.

When do I move from p=none to quarantine?

When the DMARC reports show that all the legitimate email from your domain passes SPF or DKIM. A few weeks of clean reports is usually enough.

Early access

Stop sending emails nobody answers.

Create your account and get started today. The first 50 customers pay half, with a 7-day free trial, no card and no lock-in.

Not convinced? Take your data with you.