An SPF record checker looks up the SPF record of a domain and tells you if it is correct. SPF is a short line of text in your domain’s DNS that lists who is allowed to send email for you. If it is missing, wrong, or too long, your emails can land in spam or be rejected. This free tool reads the record, counts the DNS lookups, lists every included service and IP range, points out mistakes, and tests whether a sending IP would pass.
Key facts at a glance
| What it checks | The SPF record of a domain, a record you paste, or up to 20 domains at once. |
| What you see | Status and grade, DNS lookups (limit 10), void lookups (limit 2), final policy, problems with fixes, the include tree, all IP ranges, and MX and DMARC records. |
| Sender test | Enter an IP address and get pass, fail, softfail, neutral, none, permerror or temperror, with the reason. |
| Extras | Record builder, flattened record suggestion, CSV export, JSON report and share link. |
| How it looks things up | DNS over HTTPS, using Cloudflare or Google. If one fails, the other is tried. |
| Cost and privacy | Free, no account. Nothing is stored. The domain you check is sent only to the DNS resolver. |
| Not covered | DKIM (it needs a selector) and the deprecated ptr mechanism. |
What is an SPF record?
SPF stands for Sender Policy Framework. It is a TXT record in the DNS of your domain that lists the servers and services allowed to send email as your domain. When a mail server receives a message, it looks up your SPF record and checks whether the sending server’s IP address is on the list. The rules are defined in RFC 7208.
SPF alone does not stop every fake email, but it is one of three basic checks, together with DKIM and DMARC. Big mailbox providers expect all three, and large senders to Gmail and Yahoo have had to set them up since 2024.
How do I check an SPF record?
You type a domain, press one button, and read the result. The tool does the DNS work for you.
- Enter the domain. Type
example.com. You can also paste a web address or an email address, and the tool picks out the domain name. - Press “Check SPF”. The tool reads the TXT records, follows every include, and counts the lookups.
- Read the badge. “Valid SPF record”, “Valid, with warnings”, “Problems found”, or “No SPF record found”. A grade from A to F sits next to it.
- Follow the advice. Each problem has a short fix. Start with the red ones.
- Test a sender (optional). Open Test a sending IP, enter an IP address, and check again to see if it would pass.
What do the parts of an SPF record mean?
An SPF record is a list of terms, read from left to right. It always starts with v=spf1. The tool colours each term so you can read it at a glance.
| Term | What it does | Costs a lookup? |
|---|---|---|
| ip4:… / ip6:… | Allows one IP address or a range. | No |
| a | Allows the IP addresses of a domain (its A and AAAA records). | Yes, 1 |
| mx | Allows the mail servers of a domain (its MX records). | Yes, 1 |
| include:domain | Also allows what the other domain’s SPF record allows. | Yes, 1 plus what is inside it |
| redirect=domain | Uses the SPF record of another domain instead of this one. | Yes, 1 plus what is inside it |
| exists:name | Passes if a DNS name exists. Used with macros by advanced setups. | Yes, 1 |
| ptr | Deprecated. Slow and unreliable. Avoid it. | Yes, 1 |
| all | Matches every sender not matched before. | No |
| exp=… | Gives an explanation text for failures. | No |
What do +, −, ~ and ? mean, and which should I use?
A sign in front of a term says what to do when that term matches. No sign means “+”. The sign in front of all matters most, because it decides what happens to senders you did not list.
| Ending | Meaning | Advice |
|---|---|---|
| -all | Hard fail. Others are not allowed. | Best protection, once you are sure about all your senders. |
| ~all | Soft fail. Others are suspicious. | A safe place to start, and common. |
| ?all | Neutral. No opinion. | Gives almost no protection. Avoid. |
| +all | Everyone is allowed. | Dangerous. Anyone can send as your domain. The tool grades it F. |
What does “too many DNS lookups” mean, and how do I fix it?
SPF allows at most 10 DNS-querying terms in one check. These are include, a, mx, ptr, exists and redirect, and every lookup inside an include counts too. If the total goes above 10, receivers return a PermError, and your SPF is treated as broken. Terms like ip4, ip6 and all are free.
The tool shows your total as DNS lookups: X / 10 with a bar that turns amber near the limit and red above it. If you are over, try these fixes:
- Remove includes you no longer use. Old newsletter tools and trial services are common leftovers.
- Replace “a” and “mx” with IP ranges if your servers never change.
- Send from different subdomains. For example
mail.example.comfor newsletters. Each subdomain has its own SPF record and its own 10 lookups. - Flatten the record. The tool suggests a flattened record with the IP ranges written out. It saves lookups, but you must update it when a provider changes its IPs. Use it with care.
What does SPF actually check?
SPF does not check the “From” address you see in your email program. It checks the envelope sender, also called MAIL FROM or Return-Path, which is a hidden address used between mail servers. That is why SPF alone cannot stop someone from faking the visible From address. DMARC closes this gap by requiring that the two domains match.
When you use a service such as a newsletter tool, its servers often use their own domain as the envelope sender. SPF then passes for the service’s domain, not yours. Setting up DKIM for your own domain fixes the alignment. Your SPF record still needs the include for that service, so that the mail is accepted.
How do I build and publish an SPF record?
Open SPF record builder, tick the services that send email for you, add your own servers or IP addresses, choose the ending, and copy the result. Then press Check this record. The tool checks it as if it were already published, so you can fix problems first.
- List every sender. Think about your mailbox provider, your website’s contact form, your newsletter tool, your invoice or support system, and any servers of your own.
- Use the builder. It writes one record with the right includes,
mx,a, and IP addresses, ending in~all,-allor?all. - Check it. Press “Check this record”. Look at the lookup count and the problems list.
- Publish it. In your DNS host’s control panel, add a TXT record at the root of the domain (often shown as
@). If a record starting withv=spf1already exists, replace it. Never keep two. - Check again. After the DNS TTL has passed (often a few minutes to a few hours), check the domain to confirm it is live.
| Service | Common include |
|---|---|
| Google Workspace | include:_spf.google.com |
| Microsoft 365 | include:spf.protection.outlook.com |
| Amazon SES | include:amazonses.com |
| SendGrid | include:sendgrid.net |
| Mailgun | include:mailgun.org |
| Mailchimp | include:servers.mcsv.net |
| Postmark | include:spf.mtasv.net |
| Zoho Mail | include:zoho.com (other regions use other names) |
| Salesforce | include:_spf.salesforce.com |
| Zendesk | include:mail.zendesk.com |
| Proton Mail | include:_spf.protonmail.ch |
v=spf1 -all.What problems does the checker find?
| Problem | Why it matters | How to fix it |
|---|---|---|
| More than one SPF record | Receivers return a PermError and ignore SPF. | Merge them into one record and delete the others. |
| More than 10 DNS lookups | PermError. SPF is treated as broken. | Remove unused includes, use IP ranges, or split senders across subdomains. |
| +all | Anyone can send as your domain. | Use ~all or -all. |
| ?all or no “all” | Other senders get a neutral result, so there is almost no protection. | End the record with ~all or -all. |
| An include with no SPF record | PermError, often from a typo or a service you stopped using. | Fix the name, or remove the include. |
| Syntax error | For example a wrong IP like ip4:300.1.1.1 or an unknown term. PermError. | Correct the term. The tool names it. |
| Terms after “all” | They are never read. | Move “all” to the end. |
| redirect together with “all” | The redirect is ignored. | Keep only one. |
| The ptr mechanism | Deprecated, slow and unreliable. | Replace with ip4, ip6, a or include. |
| A very large range | For example ip4:10.0.0.0/8 allows millions of addresses. | List only the addresses you use. |
| Record longer than about 450 characters | It may not fit in one DNS response. | Remove unused includes or flatten some of them. |
| Loops | Two records that include each other. | Remove the circular include. |
The grade is a quick guide. “A” means no errors or warnings. Any error caps the grade, and “+all” or an IP range that allows every address gives an “F”.
How does the sender test work?
Open Test a sending IP, enter an IP address, and press Check SPF. The tool then follows the SPF rules in order, exactly as a receiving server would, and shows the result and the reason. You can also enter a sender address (MAIL FROM) to test records that use macros.
| Result | Meaning |
|---|---|
| pass | The IP is allowed. |
| fail | The IP is not allowed, and the record ends with -all (or a term with “−”). |
| softfail | The IP is probably not allowed (~all). |
| neutral | The domain says nothing about this IP. |
| none | The domain has no SPF record. |
| permerror | The record is broken, for example too many lookups or a syntax error. |
| temperror | A temporary DNS problem. Try again. |
This is a known weakness of SPF, not a mistake in your record. It is one more reason to set up DKIM and DMARC as well.
How we tested it, and what it cannot do
An SPF checker must follow the rules exactly, or its advice is wrong. Before writing this page, we tested the checking logic against pyspf, a well-known open-source SPF library, using a pretend DNS zone that we controlled.
- 713 test cases. They covered 31 domains and 23 IP addresses. The scenarios included include and redirect,
aandmxwith prefix lengths,existswith macros, IPv4 and IPv6, an IPv4 address written inside IPv6, qualifiers, loops, more than 10 lookups, void lookups, two SPF records, syntax errors, upper-case records, and domains that do not exist. Our results matched pyspf in all 713 cases. - Lookup counts. The number of DNS lookups matched pyspf for every sample domain we compared.
- The whole tool. We ran it in a browser with a pretend DNS service and checked the domain check, messy input, long records split into several DNS strings, the sender test, paste mode, the batch table with CSV, the automatic switch to the second resolver, the builder, the report and the share link. The finished tool was also tried on live domains.
| You might want to | What happens |
|---|---|
| Check DKIM | Not covered. A DKIM check needs the selector name your sender uses. |
| Test the ptr mechanism | Not evaluated, because it is deprecated. The tool warns about it. |
| See what a receiver really decided | Receivers add their own rules. Send a test email to a Gmail or Outlook mailbox and read the message headers for the final verdict. |
| See new DNS changes at once | Resolvers cache records for the TTL time. A change can take minutes or hours to show. |
| Know every address a service uses | The tool shows what the DNS lists today. Services may change it later. |
| Check a record with macros in include, a or mx | The analysis skips them and tells you. The sender test does expand them. |
| Check unlimited depth | The check stops at 120 DNS queries and notes it. |
| Be sure about the MAIL FROM of a service | The tool cannot see how your email service sets it. Check your service’s settings. |
Is my domain sent anywhere?
The domain you check is sent from your browser to a public DNS resolver, Cloudflare or Google, because DNS is the only way to read an SPF record. It is not sent to our servers, and nothing is stored. The IP address and sender address you type for the sender test stay in your browser.
Questions people ask
Yes. It is free, with no signup. The site may show ads around the tool to cover its costs.
An SPF record is a TXT record in a domain’s DNS that lists which servers may send email for that domain. Receiving servers use it to spot mail that does not come from an allowed server.
Type your domain in the tool and press Check SPF. You see the record, the number of DNS lookups, and a list of problems with fixes.
SPF allows at most 10 DNS-querying terms in one check. If your record, including everything it includes, needs more, receivers treat the SPF as broken. Remove unused includes, replace some with IP ranges, or send from separate subdomains.
The rules say a domain must have exactly one record that starts with v=spf1. If there are two, receivers return a PermError. Merge them into one record.
~all is a soft fail: mail from other senders is accepted but treated as suspicious. -all is a hard fail: other senders should be rejected. Start with ~all, and move to -all when you are sure every sender is listed.
Yes. Add the include for your provider, such as include:_spf.google.com for Google Workspace or include:spf.protection.outlook.com for Microsoft 365, and add any other service that sends mail for you.
When a message is forwarded, the final receiver sees the forwarder’s IP address, which is not in the original sender’s SPF record. This is a known limit of SPF. DKIM and DMARC help in this case.
Not by itself. SPF checks the hidden envelope sender, not the From address that people see. DMARC links the two and tells receivers what to do when they do not match.
It depends on the TTL of your DNS record, often a few minutes to a few hours. Some resolvers keep old answers until the TTL ends, so check again later.
It can solve the 10-lookup problem, but it has a cost. A flattened record lists IP addresses that providers may change, so you must update it by hand. Use it only when you can maintain it, or move senders to subdomains instead.
Use v=spf1 -all. It says that no server may send mail for the domain, which stops spammers from using a parked domain.
The domain is sent from your browser to Cloudflare or Google DNS to read the records. It is not sent to our servers, and nothing is stored.
Hi, I’m Waqas, the person behind Brivonto. I build each tool on this site myself, test it, and keep improving it from your feedback. I wrote this page and checked the SPF logic against an open-source reference library before publishing. If you find a mistake, or the tool gives a result you do not expect, please tell me.

