Skip to main content
Enter TitanOS

Email authentication error

SPF syntax errors and typos: how to read a failing record

An SPF record is a single line of text, and receiving servers read it strictly. If the line contains a term the standard does not recognise, the whole check ends in a permanent error, called a permerror. Receivers treat that as a failure, so mail from a perfectly legitimate sender can be filtered or refused because of one stray character.

By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.

This page walks through the mistakes we see most often in small business DNS, how to read a failing record from left to right, and how to correct it without taking your email offline. The rules come from RFC 7208, the SPF standard.

What a valid record looks like

A record starts with the version tag v=spf1, followed by a space, then a list of terms separated by single spaces, and usually ends with an all term. Each term is a mechanism such as ip4, include, a or mx, or a modifier such as redirect. Mechanisms can carry a qualifier in front: plus, minus, tilde or question mark. If no qualifier is given, plus is assumed.

RFC 7208 section 4.6 sets out this grammar. Anything that does not fit it, including an unknown mechanism name, makes evaluation stop with a permerror. The parser does not skip what it does not understand, which is why a small slip has such a large effect.

The mistakes we see most

Typing the version wrongly is the first. The tag must be exactly v=spf1 in lower case with nothing in front of it. A stray space, a missing equals sign or v=spf2 means receivers do not treat the record as SPF at all, so the result is none rather than a pass.

Misspelt mechanisms come next, such as includes instead of include, or ip4 followed by a colon and a hostname instead of an address. Related to that are bad address ranges: an ip4 value needs a dotted address with an optional slash and a prefix length from 0 to 32, so a value like 203.0.113.256 is invalid.

DNS editors cause a third group of errors. Some control panels wrap long values in quotation marks and split them into several strings. That is normal and receivers join the pieces, but a quote mark pasted inside the value, or smart quotes copied from a word processor, will corrupt it. A missing space between two terms, or two spaces typed where one belongs in a copied template, can also cause trouble depending on how the value was stored.

Finally, the all term must be last. Terms placed after it are never evaluated, which hides sender entries you thought were active.

How to read a failing record

Copy the TXT value exactly as published, then split it at each space so that every term sits on its own line. Check the first term is v=spf1. For each remaining term, ask three questions: is the mechanism name one the standard defines, does it have the value it needs, and is the value well formed. A hostname after include or a should look like a domain, and an address after ip4 should be four numbers from 0 to 255.

Then test the mechanisms that point elsewhere. An include that names a domain with no SPF record produces a permerror under RFC 7208, because the standard says the included domain must publish one. So a typo in a provider's domain name, or an include for a service that has since removed its record, fails in the same way as bad syntax.

Fixing it without breaking mail

Keep a copy of the current value before changing anything. Correct one thing at a time and re-test between edits, because DNS changes can take up to the time to live of the old record to reach every receiver. Lower the TTL to a few minutes before you start if your DNS host allows it.

If you cannot tell which term is wrong, rebuild the record from a known list of senders instead of editing the broken line. Our SPF builder produces the string for the common providers and counts lookups, so you avoid the separate 10 lookup limit while you are there.

A syntax repair is only one layer. Once SPF evaluates cleanly, check that your sending services also sign with DKIM, because DMARC needs only one of the two to pass and aligned.

Check an SPF record for syntax errors

  1. Copy the published TXT value exactly and save it as a backup.
  2. Confirm the domain has one SPF record only, not two.
  3. Check the value begins with v=spf1 in lower case, with no leading characters.
  4. Split the value at each space and put one term on every line.
  5. Check every mechanism name against the list in RFC 7208 section 5.
  6. Check each ip4 address has four numbers from 0 to 255 and a valid prefix length.
  7. Look for pasted smart quotes, stray quote marks or double spaces.
  8. Check that each include names a domain that publishes its own SPF record.
  9. Move the all term to the end and pick the qualifier you intend.
  10. Publish the fix, wait out the old TTL, then send a test and read spf=pass in the headers.

Questions people ask

What is the difference between a permerror and a fail?

A fail means the record was read correctly and the sending server is not authorised. A permerror means the record could not be evaluated at all, for example because of a syntax fault. Receivers treat both as failures, but only a permerror points to a mistake in your record.

Does a typo in SPF stop all my email?

Not necessarily. Many receivers deliver the message and mark it down, and DKIM may still carry a DMARC pass. Strict receivers and a DMARC policy of quarantine or reject can filter or refuse the mail, so treat it as urgent.

Can I use more than one string in the TXT value?

Yes. RFC 7208 says receivers join multiple strings in one record without adding spaces. This is how long records are published. Keep each string within the 255 character limit and check the joined result reads correctly.

Why does my checker say none instead of an error?

A record that does not start with exactly v=spf1 is not recognised as SPF, so the result is none. Check for a misspelt tag or extra characters in front of it.

Where to from here

The free privacy policy audit reads your published privacy policy against the Australian Privacy Principles and tells you what is missing. Privacy Care keeps your policy and your shopper data practices current for AU$149 a month, with a 3-month minimum. Would it be okay if we showed you what the audit finds? A no is welcome.

Get the free auditSee Privacy CareBook a call

Sources

  1. RFC 7208, Sender Policy Framework, sections 4.6 and 5 (syntax and mechanisms)
  2. ASD, how to combat fake emails
  3. RFC 7489, DMARC
Book a free call