---
title: "SPF record generator"
url: "https://coldagentai.com/tools/spf-generator.md"
canonical_url: "https://coldagentai.com/tools/spf-generator"
last_updated: "2026-10-19"
type: "tool"
summary: "Build the SPF TXT record for your domain from the services that send its mail, with a DNS lookup count against the limit of 10."
related: ["https://coldagentai.com/tools.md", "https://coldagentai.com/tools/dmarc-generator.md", "https://coldagentai.com/tools/domain-checker.md", "https://coldagentai.com/tools/spintax.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# SPF record generator

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Build the SPF TXT record for your domain from the services that send its mail, with a DNS lookup count against the limit of 10.

Pick the services that send mail for your domain, add any IP addresses, and get the TXT record to publish, with the DNS lookups it costs against the limit of 10.

## Inputs

- Domain
- Sending services
- Extra include domains
- IPv4 and IPv6 addresses or ranges
- Allow the domain's own address (a)
- Allow the domain's MX hosts (mx)
- Policy for unlisted senders (~all, -all or ?all)

## How it works

- Tick the services that send mail for your domain: Google Workspace, Microsoft 365, SendGrid, Mailchimp, Amazon SES, Zoho Mail or Mailgun. Each adds one include: term, using the value the provider's own help page names (sources are listed under the tool, read 2026-10-18).
- Add other include domains, IPv4 and IPv6 addresses or CIDR ranges, which are checked as you type, and switch on a (your domain's own address) or mx (your MX hosts) if those servers send mail.
- The record starts with v=spf1 and ends with ~all (soft fail, recommended while you test), -all (hard fail) or ?all (neutral, no protection).
- The lookup count adds a fixed number for each service, one for mx and one for a. The numbers come from walking each provider's published records on 2026-10-18 and can change. Above 10, receivers return a permanent error (RFC 7208 section 4.6.4), so the tool warns.
- Publish exactly one SPF record, as a TXT record at the host @. A record over 255 characters is also shown in its split, quoted form.

## Worked example

For example.com sending through Google Workspace, Mailchimp and one IP range, the generator emits this TXT value at the domain itself (2 of 10 lookups counted):

```
v=spf1 ip4:203.0.113.0/24 include:_spf.google.com include:servers.mcsv.net ~all
```

## Limits

- Everything runs in your browser. The text you type is never sent anywhere.
- The lookup count is a lower bound when you add an include by hand, because we cannot see inside it. The domain checker counts the true total across nested includes.
- Providers change their sending records. A count or include that was right when we read it can go stale.
- Postmark is not in the list: its own help page says an SPF include does nothing for it and it authenticates through a Return-Path CNAME instead.
- No account is needed and no mail is sent.

## In ColdAgentAI

ColdAgentAI reads SPF, DKIM and DMARC for the domains you send from and shows the fix for each problem. See [Deliverability](https://coldagentai.com/product/deliverability.md).

## Related

- [Free cold email tools](https://coldagentai.com/tools.md)
- [DMARC record generator](https://coldagentai.com/tools/dmarc-generator.md)
- [Domain email checker: SPF, DMARC, MX](https://coldagentai.com/tools/domain-checker.md)
- [Spintax expander and validator](https://coldagentai.com/tools/spintax.md)
