Skip to content
Black Friday: 30% off monthly or 50% off yearly, for as long as you stay. Runs through Dec 31.

Free tool

SPF and DMARC record generator

Bought a separate domain for outreach? Before it sends a single pitch, it needs SPF and DMARC records. Pick your mail provider and policy, then copy the host and value straight into your DNS.

Who sends mail from this domain?

Use an inbox you read, ideally on your main domain.

SPF record

Type
TXT
Host
@ (the root of the domain)
Value

DMARC record

Type
TXT
Host
_dmarc
Value

Don't forget

  • DKIMGenerate it in your mail provider and publish the TXT record they give you.
  • MXAdd your provider's MX record so replies reach you.
  • WebsitePoint the domain at a page (or redirect it to your main site) so people who check it see a real company.

What does the SPF and DMARC record generator do?

It builds the two TXT records a new sending domain needs, SPF and DMARC, from the providers and policy you pick, and shows the exact host and value to paste into your DNS. It also:

  • counts the top-level SPF lookups (green up to 4, amber up to 8, red above) so you stay under the 10-lookup limit;
  • writes DMARC with relaxed or strict alignment and pct=100;
  • warns when reports go to another domain, and gives the extra record that domain needs to accept them;
  • shows the MX records for Google Workspace, Microsoft 365 and Zoho so replies reach you.

How to read the result

Each panel is one DNS record: Type is always TXT, Host is where it goes (@ for SPF, _dmarc for DMARC) and Value is what you paste. The note under each record tells you about anything to fix before publishing. DKIM isn't generated here because your mail provider holds the private key.

Worked example

With the defaults (sending domain getmargin.example, Google Workspace, ~all, quarantine, reports to dmarc@margin.example) you get:

RecordHostValue
SPF@v=spf1 include:_spf.google.com ~all (1 top-level lookup)
DMARC_dmarcv=DMARC1; p=quarantine; rua=mailto:dmarc@margin.example; adkim=r; aspf=r; pct=100
Report authorisationgetmargin.example._report._dmarc on margin.examplev=DMARC1
MX@smtp.google.com, priority 1

The third row is the one people miss: because reports go to the main domain, margin.example has to publish a record saying it accepts them. Otherwise most receivers won't send reports at all.

Common SPF and DMARC mistakes

  • Publishing a second SPF record instead of replacing the old one. Two records means SPF fails everywhere.
  • Selecting providers you don't send through. Each include costs lookups and authorises servers that aren't yours.
  • Starting on p=reject. If one legitimate sender isn't set up, its mail disappears. Start on none or quarantine.
  • No rua address. Without reports you can't tell whether mail passes, so you never know when it's safe to tighten the policy.
  • Forgetting DKIM and MX. Without DKIM, forwarded mail fails DMARC and Gmail treats the domain as unauthenticated for bulk sending. Without MX, nobody's reply arrives.

Why outreach goes from a separate domain

Cold outreach gets a share of spam complaints even when every pitch is relevant. If those complaints land on your main domain, they can drag down the deliverability of your password resets, invoices and customer emails. A second domain, like getyourbrand.com, keeps that risk away from your business email. It needs its own SPF, DKIM and DMARC, its own mailbox, and a slow ramp-up before it sends at full volume.

Read the full deliverability guide for link outreach, or plan the ramp with the mailbox warmup calculator. On a paid BacklinkGenie plan, we register the domain, publish these records and ramp the mailbox for you.

Sending from Google Workspace? Our guide to Workspace setup and limits for outreach covers the DKIM key and daily caps. When the records are live, confirm them with the SPF, DKIM and DMARC checker, and before the first send, check your email itself with the CAN-SPAM compliance checker.

FAQ

Questions people ask

What do SPF, DKIM and DMARC actually do?

SPF lists which servers may send mail for your domain. DKIM adds a signature that proves the message wasn't altered and came from your domain. DMARC tells receiving servers what to do when a message fails those checks, and where to send reports. Gmail and Yahoo require all three for anyone sending in volume, and they help any outreach domain land in the inbox.

Where do I add these records?

In the DNS settings of the domain you send from, at your registrar or DNS host (Cloudflare, Porkbun, Namecheap and so on). SPF is a TXT record on the root of the domain, shown as @. DMARC is a TXT record on the host _dmarc. Each domain can have only one SPF record, so merge providers into it rather than adding a second.

Which DMARC policy should a new outreach domain use?

Start with p=none and a reporting address for the first week or two, so you can see that legitimate mail passes. Then move to p=quarantine. Use p=reject once you're sure nothing legitimate fails. A brand-new outreach domain that sends only from one provider can usually reach quarantine quickly.

What's the 10 DNS lookup limit?

SPF allows at most 10 DNS lookups when a receiver evaluates your record. Each include, a, mx and redirect counts, and so do includes nested inside them. Past 10, SPF fails. The tool counts your top-level lookups; providers like Google use a few internally, so keep your list short.

How do I get a DKIM record?

Your mail provider generates it, because they hold the private key. In Google Workspace it's under Apps, Gmail, Authenticate email. In Microsoft 365 it's in the Defender portal under DKIM. You publish the TXT value they give you. This tool doesn't generate DKIM keys.

Can BacklinkGenie do this setup instead?

Yes. BacklinkGenie is an AI link-building outreach agent, and on every plan ($99, $249 or $499 a month) it buys a separate sending domain, publishes SPF, DKIM and DMARC, sets up the mailbox and warms it before the first pitch. It then finds relevant posts, finds and verifies each editor, writes one pitch per post for you to approve, sends it, follows up and checks won links weekly.

Keep reading

Related

Skip the DNS setup.

On every plan, BacklinkGenie buys a separate sending domain, publishes these records, sets up the mailbox and warms it. Then it finds relevant posts in your niche, pitches each editor and follows up.

The BacklinkGenie genie The BacklinkGenie genie