Facebook tracking pixel

MailGenius

How to Check SPF When Your Email Fails Authentication

Nobody looks up an SPF record for fun. People check SPF because something broke. A new sending platform started landing in spam, a partner reported a soft fail, or a DMARC report came back with rows that should have passed and did not. So we will start where you actually are, with the failure, and work back to the record.

The symptom that sends most people to check SPF

The classic version goes like this. Email from your main platform is fine. You add a second tool, a billing system or a support desk or a new marketing platform, and email from that tool starts getting filtered while everything else keeps working.

That asymmetry is the tell. Your domain is not in trouble. One sending source is simply not authorized to send for it, and every receiver checking SPF is noticing.

The second most common version is subtler. Everything passes at most receivers and fails at a few, intermittently. That usually means your record is technically present but has grown past a hard limit, and different resolvers are hitting the ceiling at different moments.

Either way the first move is the same. Look at the record, then look at the result code it produced.

How to check your SPF record in about a minute

An SPF record is a plain DNS TXT record published at the root of your sending domain. It begins with a version tag and lists the servers permitted to send email using that domain in the envelope sender address.

A minimal, valid record looks like this.

v=spf1 mx a ~all

That authorizes the hosts named in your MX and A records and asks receivers to treat everything else as a soft fail. Most real records are longer, because most organizations send through third-party platforms and have to authorize each one with an include mechanism pointing at the platform’s own SPF domain.

You can read the raw TXT record with any DNS query tool. What that will not tell you is whether the email you are actually sending passes, which is the part that matters. MailGenius approaches it from the message side instead. You send one email from the platform you are worried about to the address the tool gives you, and check your SPF record against what that message really presented at the connection. A record can look perfect in DNS and still fail for email sent through a platform you forgot to authorize.

If the record does not exist at all, receivers get a result of none, which is not the same as a fail. It means you have published no policy, so there is nothing for a receiver to enforce and nothing for DMARC to align against.

What each SPF result code is telling you

SPF returns one of a small set of results, and the difference between them decides your next step.

Pass. The sending server was listed in your record. Nothing to do.

Fail. The sending server was not listed and your record ends with a hard fail qualifier. Receivers are entitled to reject the message outright. This is the code you want when authentication is fully mapped, and the one that hurts most when it is not.

Softfail. The server was not listed and your record ends with a soft fail qualifier. The message is usually accepted and marked as suspicious. Most senders live here during rollout, and many never move off it.

Neutral. Your record explicitly declines to assert anything about the server. It carries almost no value and is rarely what anyone intended.

None. No SPF record was found for the domain, or the domain does not exist.

Permerror. Your record is malformed or breaks a protocol limit. This is the dangerous one, because a permerror is not a partial pass. Receivers treat it as an unusable policy, so email that would have passed a working record now does not.

Temperror. A DNS lookup failed transiently. Retry before changing anything.

Five SPF misconfigurations behind most failures

More than one SPF record on the domain

A domain may publish exactly one SPF record. Two TXT records both starting with the version tag is a permerror, not a merge. This happens constantly when two teams each add a record for their own platform. The fix is to combine every mechanism into a single record.

Too many DNS lookups

SPF caps the number of DNS-querying terms a receiver has to resolve at ten. Include, a, mx, ptr, exists, and the redirect modifier all count against that cap, and includes nest, so one platform’s include can consume several lookups on its own. Cross the limit and you get a permerror. Flat IP mechanisms do not count, which is why consolidating rarely-changing platforms into explicit IP ranges is the standard remedy. The specification also limits void lookups, the ones that return nothing, to two.

A missing include for a sending platform

Every service that sends email using your domain needs to be authorized, and each one publishes its own instructions. Our platform-specific walkthroughs cover the ones we get asked about most, including how to publish a Salesforce SPF record and a SendGrid SPF record. Add a platform to your stack, add it to your record the same day.

Authorizing the wrong domain

SPF validates the envelope sender, the address in the return path, not the address your recipients see in the From field. Many platforms send with their own envelope domain unless you configure a custom return path. When that happens SPF can pass for the platform’s domain while being useless to you, because it no longer aligns with your visible From domain. That distinction is the whole reason DMARC exists, and it is covered in our overview of SPF, DKIM, and DMARC.

Leaning on the ptr mechanism

The ptr mechanism is discouraged by the specification and some receivers ignore it entirely. If it is in your record, replace it.

Where SPF stops and DKIM and DMARC take over

SPF alone cannot protect your From address. It authorizes servers, and it breaks on forwarding, because the forwarding host is not in your record even though the message is legitimate.

DKIM fills that gap by signing the message itself, so the signature survives a hop that SPF cannot. You can confirm that leg with the DKIM checker once SPF is clean.

DMARC then requires that at least one of the two passes and that the passing domain aligns with the domain your recipients see. Verify that final leg with the DMARC checker.

That is why we treat the three as one job rather than three. If you are building all of it from scratch, our guide on how to set up SPF, DKIM, and DMARC walks the whole sequence in order.

Check your SPF record now

Fix the record, then verify with a real message rather than a DNS query, because a DNS query cannot see which envelope domain your platform actually used.

Check your SPF record free in 30 seconds. Send one email to the address the tool shows you, pull your score, and you will see the result code your email produced, the mechanisms that were evaluated, and whether the result aligns with the domain your recipients read.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today