Samprix

SPF Record Checker

Check a domain’s SPF record. Every include is followed and every DNS lookup counted, and each problem comes with the fix.

  • Live DNS lookup
  • Results in seconds
  • No sign-up
  • Free
DNS lookups 0/ 10
Policy for others — No “all”
SPF records 0 Exactly one is allowed

Results for samprix.com

  • Problem:No SPF record

    Without SPF, receivers can’t tell which servers may send email for this domain, and Gmail, Yahoo and Microsoft reject or junk much of its mail. Publish one TXT record at the domain that starts with v=spf1 and lists the services you send through.

Create one with the SPF generator

Advertisement

How SPF works

When a server receives an email, it looks at the domain in the message’s return path (the “envelope from”, which is usually your domain or your email service’s) and fetches that domain’s SPF record. If the sending server’s IP address is on the list, SPF passes. If not, the “all” at the end of the record says what to report: fail, soft fail or neutral.

SPF alone doesn’t decide what happens to a message. DMARC does that, using the SPF and DKIM results. That’s why SPF needs to be right and line up with the domain people see in the From address. See SPF, DKIM and DMARC explained.

The parts of a record

TermMeansLookups
include:domainAlso allow the servers in that domain’s SPF record1, plus its own
ip4: / ip6:Allow an address or range0
a / mxAllow the domain’s own web or mail server addresses1 each
exists, ptrRarely used; ptr is deprecated1 each
redirect=domainUse another domain’s record instead1
~all / -allEverything else soft fails / fails0

Includes for common email services

Add one include for every service that sends email with your domain in the return path. A typical record for Google Workspace plus a newsletter service looks like v=spf1 include:_spf.google.com include:sendgrid.net ~all. Check your provider’s own setup page too; some services send through their own domain and need no include at all.

ServiceInclude
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
Zoho Mailinclude:zohomail.com
Proton Mailinclude:_spf.protonmail.ch
Fastmailinclude:spf.messagingengine.com
SendGridinclude:sendgrid.net
Mailguninclude:mailgun.org
Brevoinclude:spf.brevo.com
Zendeskinclude:mail.zendesk.com

Fixing the common problems

  • Over 10 lookups: remove services you no longer use, replace a and mx with the ip4 ranges they stand for, or move bulk mail to a subdomain with its own record. Full walk-through: fixing too many DNS lookups.
  • Two SPF records: merge them into one: a single v=spf1, every include from both, and one ~all at the end.
  • Malformed record: DNS panels sometimes store quote marks or spaces as part of the value. The record must start exactly with v=spf1.

Did this tool do what you needed?

All tools