# SPF (Sender Policy Framework)

> A DNS record that lists which servers are allowed to send email for a domain, so receivers can spot mail from unauthorized sources.

SPF is an email authentication standard. A domain owner publishes a TXT record in DNS, starting with `v=spf1`, that names the servers and services allowed to send mail for that domain. When a message arrives, the receiving server looks up the SPF record for the domain in the envelope sender (the return-path address, not necessarily the visible From) and checks whether the connecting server's IP is on the list.

The record is built from mechanisms such as `ip4`, `ip6`, `a`, `mx` and `include`, followed by a catch-all rule: `-all` to fail anything not listed, or `~all` for a softer fail. Each `include` pulls in another domain's SPF record, which is how you authorize email platforms, CRMs and sales engagement tools. The standard limits evaluation to ten DNS lookups; going over causes a permanent error.

SPF has known gaps. It checks the envelope sender rather than the From address people see, and it often breaks when mail is forwarded. That is why it is used together with DKIM and DMARC, which add a signature and tie the result to the visible From domain.

## How Dizo handles it
SPF is a sending-side setting that you configure in your own DNS; Dizo does not send mail on your behalf, so nothing needs to be added to your SPF record for Dizo. Dizo covers the list side of deliverability: the email finder returns a work email only when it validates, at 1 credit if found, and a miss is a free 404.

Docs: [/docs/email-find](https://dizo.ai/docs/email-find.md)

Related terms: [DKIM (DomainKeys Identified Mail)](https://dizo.ai/glossary/dkim.md), [DMARC](https://dizo.ai/glossary/dmarc.md), [MX record](https://dizo.ai/glossary/mx-record.md), [Email deliverability](https://dizo.ai/glossary/email-deliverability.md)


## What SPF is

Sender Policy Framework, or SPF, is a way for a domain to publish a list of servers that are allowed to send email on its behalf. The list lives in DNS as a TXT record. When a receiving mail server gets a message, it can look up that record and check whether the server that delivered the message is on the list. If it is not, the receiver has a reason to distrust the message.

SPF exists because the basic email protocol lets any server claim to send mail from any domain. Without authentication, a spammer can put your domain in the sender address and there is no built-in way to tell. SPF gives receivers a simple check: is this IP address one the domain owner authorized?

It is one of three standards that work together. SPF authorizes sending servers. [DKIM](/glossary/dkim) adds a cryptographic signature to each message. [DMARC](/glossary/dmarc) ties both results to the From address the recipient actually sees and tells receivers what to do when checks fail. SPF alone is useful but incomplete.

## Why SPF matters for GTM teams

Mailbox providers increasingly expect authenticated mail, and Google and Yahoo both publish sender guidelines that include SPF or DKIM, with stricter expectations for higher-volume senders. Check their current guidance directly, since requirements change. Mail that fails authentication is more likely to be filtered to spam or rejected, which directly hurts outreach results.

For go-to-market teams, the practical problem is sprawl. A typical company sends mail through a workspace provider, a marketing platform, a sales engagement tool, a CRM, a support desk and a billing system. Each of those needs to be authorized in SPF, or covered by DKIM and DMARC alignment. When a new outbound tool is added without updating DNS, its mail fails SPF and deliverability drops, often without anyone noticing for a while.

SPF also protects the brand. Without it, it is easier for someone else to send convincing phishing mail as your domain, and the complaints from that abuse can damage your [sender reputation](/glossary/sender-reputation).

## How an SPF record is built

An SPF record is a single TXT record at the root of the sending domain, starting with `v=spf1`. After that come mechanisms, each describing a set of allowed senders, and a final rule for everything else. A simple example looks like `v=spf1 include:_spf.example-mail.com ip4:203.0.113.10 -all`. The main building blocks are:

- `ip4` and `ip6`: authorize specific IP addresses or ranges.
- `a` and `mx`: authorize the IPs behind the domain's A or MX records.
- `include`: pull in another domain's SPF record, used to authorize third-party sending services.
- `-all`: fail any sender not listed, the strict option.
- `~all`: soft-fail unlisted senders, a cautious option while you audit your senders.
- `?all`: neutral, which gives receivers little to act on.

## How SPF is checked

The receiving server checks SPF against the domain in the **envelope sender**, also called the return-path or MAIL FROM address. This is set during the SMTP conversation and is often different from the From address shown in the email client. Many sending platforms use their own domain or a subdomain for the envelope sender so they can process bounces.

The receiver fetches the SPF record for that domain, evaluates the mechanisms in order and returns a result such as pass, fail, softfail, neutral, none, temperror or permerror. The result is recorded in the message headers and becomes one input to the spam filter and to DMARC.

Because SPF checks the envelope domain, a message can pass SPF while showing a completely different From domain to the reader. That is the gap DMARC closes with **alignment**: for SPF to count under DMARC, the envelope domain must match the visible From domain, either exactly or at the organizational level depending on the policy.

## Common SPF mistakes

**Too many DNS lookups.** The SPF standard limits evaluation to ten DNS lookups, counting mechanisms such as `include`, `a`, `mx` and redirects, including nested ones inside included records. Exceeding the limit produces a permanent error, which receivers may treat as a failure. Teams that keep adding `include` entries for every new tool hit this limit surprisingly often.

**More than one SPF record.** A domain should have exactly one SPF record. Publishing two, for example one added by IT and one added by marketing, makes the result invalid. Merge them into a single record.

**Forgetting a sender.** A new sales engagement tool, CRM or support desk that sends as your domain but is not authorized will fail SPF. Audit your senders whenever you add a tool, and use DMARC reports to find ones you missed.

**Relying on SPF alone.** SPF often fails on forwarded mail because the forwarding server is not on your list. Pair it with DKIM, which survives most forwarding, and DMARC, which uses whichever of the two aligns.

## How to check and evaluate your SPF setup

Start by listing every system that sends mail as your domain: workspace mail, marketing, sales engagement, CRM, support, billing and any product notifications. Compare that list with the mechanisms in your SPF record. Anything missing needs an `include` or an IP entry, or should send from a subdomain with its own record.

Use a DNS lookup tool or your provider's diagnostics to read the record and count lookups. Then send a test message to an inbox you control and inspect the headers for the SPF result. Look for pass on mail from each sending tool, not just your main mailbox.

Finally, publish a DMARC record with reporting turned on. Aggregate reports show every source sending as your domain and whether it passed SPF and DKIM. They are the most reliable way to find forgotten senders before you tighten your policy.

## SPF for outbound sending domains

Teams that run cold outreach from a separate domain need a separate SPF record for it, authorizing only the tools that send from that domain. Keeping it minimal makes the lookup count easy to manage and the setup easy to audit. Subdomains used for bulk or tool-specific sending also need their own records; SPF is not inherited from the parent domain.

When you retire a tool, remove its `include` as well. Stale entries waste lookups and keep authorizing a service that no longer sends for you, which widens the set of servers that could send mail as your domain. A short quarterly review of the record, checked against DMARC reports, keeps it accurate as the sales and marketing stack changes.

Remember that authentication proves identity, not quality. A perfectly configured SPF record does nothing to offset a list full of addresses that bounce. The domain's reputation still depends on who you mail and how they react.

## Where Dizo fits

SPF is configured in your own DNS for the systems that send your mail. Dizo is a data API and MCP server; it does not send email for you, so it does not need to be authorized in your SPF record. Your sending tools do.

Dizo covers the other big input to deliverability: list quality. The [email finder](/docs/email-find) returns a work email only when it validates, with `status: "verified"` and a 0 to 1 `confidence` score, at 1 credit only if found. If no valid email exists you get a free `404 not_found`. Dizo does not verify lists you already hold; for a list with known bounces, re-identify those contacts with person enrich and the email finder, and suppress the rest. A team finding 5,000 fresh emails before launching a new authenticated outbound domain would spend at most 5,000 credits, or $125 at the $0.025 entry rate, and less when some lookups miss.

Pairing correct authentication with a list of validated addresses gives a new domain the cleanest possible start. The [deliverability use case](/use-cases/deliverability) covers the data side in more detail.

## Related concepts

SPF works alongside DKIM and DMARC, and relies on DNS records including the [MX record](/glossary/mx-record) for the `mx` mechanism. Together these support email deliverability and sender reputation, while list quality is measured through bounce rate and email verification.

## FAQ

### What does an SPF record look like?
It is a DNS TXT record such as `v=spf1 include:_spf.example-mail.com ip4:203.0.113.10 -all`. It starts with `v=spf1`, lists allowed senders with mechanisms like `include` and `ip4`, and ends with a rule for everything else, usually `-all` or `~all`.

### Should I use -all or ~all?
`-all` tells receivers to fail unlisted senders, while `~all` asks for a soft fail. Many teams use `~all` while auditing their senders and move to `-all` once they are confident every legitimate source is listed. DMARC policy ultimately governs what happens on failure.

### What is the SPF ten-lookup limit?
The standard allows at most ten DNS lookups while evaluating a record, including those triggered by nested `include` entries. Going over produces a permanent error. Remove unused includes, or move some senders to subdomains with their own records.

### Can a domain have two SPF records?
No. A domain should publish exactly one SPF record. Two records make the result invalid, so merge all mechanisms into a single TXT record.

### Why does SPF fail on forwarded email?
The forwarding server delivers the message from its own IP address, which is not in your SPF record. DKIM signatures usually survive forwarding, which is why DMARC accepts either an aligned SPF pass or an aligned DKIM pass.

### Do I need to add Dizo to my SPF record?
No. Dizo provides contact data through its API and does not send email from your domain. Only the tools that actually send your mail need to be authorized.
