SPF and DMARC Generator

Build the SPF and DMARC DNS records for your domain from the services that send your mail, with checks on lookup limits and report addresses.

Processed on your device. Files are not uploaded

How to create SPF and DMARC records

  1. Pick your senders

    Tick the services that send mail as you and add your own servers.

  2. Set the DMARC policy

    Start with monitor only and a report address.

  3. Add the records

    Create the TXT records shown in your DNS provider.

Worked example

This is what SPF and DMARC Generator gives for its own sample values. Open the tool above and change anything to try your own.

Your domain
example.com
Your MX servers send mail (mx)
Yes
Your website's server sends mail (a)
No
IPv4 addresses or ranges
IPv6 addresses or ranges
Other include domains

Result

SPF: record type and host
TXT at example.com (often written @)
SPF: value
v=spf1 mx include:_spf.google.com ~all
DMARC: record type and host
TXT at _dmarc.example.com
DMARC: value
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

When to use SPF and DMARC Generator

Gmail or Outlook is sending your mail to spam and you have no SPF or DMARC record yet.

You are adding a new email service such as a newsletter tool and need to update your SPF record.

Tips for a better SPF and DMARC Generator result

List every service that sends as your domain before tightening the policy, including billing, support and marketing tools.

Send DMARC reports to a mailbox or service that parses them, since the raw reports are XML files.

SPF and DMARC Generator: limits and what to check

Changing DNS can take hours to reach everyone, so wait before judging whether a new record works.

DKIM must be set up in each sending service as well, since DMARC passes when SPF or DKIM matches your domain.

About SPF and DMARC Generator

Gmail, Yahoo and Microsoft now expect bulk senders to publish SPF and DMARC. SPF lists the servers allowed to send your mail; DMARC tells receivers what to do when a message fails and where to send reports. The checks count SPF's DNS lookup limit and warn about report addresses on other domains.

FAQs

What is the 10 lookup limit?

SPF may trigger at most 10 DNS lookups, including those inside each include. Past that, receivers treat SPF as broken.

Which DMARC policy should I use?

Start with p=none and read the reports for a few weeks, then move to quarantine and finally reject.

I already have an SPF record. Can I add a second?

No. Two SPF records make both invalid. Merge the entries into one record.

Related tools