Skip to main content
Enter TitanOS

Question and answer

What does an SPF fail mean?

An SPF fail means the mail server that delivered a message is not on the list of servers the sending domain has approved. The receiving server looked up the domain's SPF record, checked the sending address against it, and found no match. A fail does not prove fraud. It is either a forged message or a genuine sender that nobody added to the record.

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

SPF is defined in RFC 7208. You normally see the result in the headers of a message, on a line that begins Received-SPF or inside Authentication-Results, and in bounce messages that quote the reason a message was refused.

The results you may see

RFC 7208 defines seven results. Pass means the sender is authorised. Fail means the domain says the sender is not authorised, which is the strongest negative. Softfail means the sender is probably not authorised, but the domain is not asking receivers to reject. Neutral means the domain makes no statement. None means no SPF record was found. Temperror is a temporary lookup problem, and permerror means the record itself is broken.

The ending of the record sets the difference between fail and softfail. A record ending in -all produces a fail for unlisted senders, and one ending in ~all produces a softfail. The two are compared in softfail versus hardfail.

Why a genuine email can fail

The most common cause is a service that sends for you but is missing from your record, such as an invoicing tool, a CRM or a website form. The second is forwarding. When a message is forwarded, the forwarding server becomes the connecting server, and it is not in the original domain's list, so SPF fails even though the message is real. That is why SPF alone is unreliable and why DKIM exists. See how forwarding breaks SPF.

Other causes include more than one SPF record on the domain, a record that needs more than ten DNS lookups, a typo in an address or include, and a record that was never updated after you changed providers.

What SPF actually checks

SPF checks the address used in the hidden envelope of the message, called the return path or MAIL FROM, and sometimes the name a server gives when it connects. It does not check the From address people see in their inbox. That gap is why attackers can pass SPF with their own domain while showing yours, and why DMARC adds a check that the SPF domain matches the visible From domain.

How to find out which sender failed

Open the full headers of a failing message and find the connecting IP address in the Received-SPF or Authentication-Results line. Look that address up to see which provider it belongs to. If it is a service you use, add that service's include to your SPF record. If you do not recognise it, you may be looking at forgery, and a DMARC policy is the control that deals with it. Keep one record and edit it, rather than adding a second.

Keep in mind that SPF only describes one hop of the journey. Mailing lists, forwarding rules and security gateways can all change the connecting server, so judge a single failure in context, and look at DKIM and DMARC results from the same message before deciding anything is wrong.

How to fix an SPF fail

  1. Open the failing message and copy its full headers.
  2. Find the SPF result line and note the IP address that was checked.
  3. Look up who owns that IP address, using a lookup tool or your provider.
  4. Decide whether it is a service you genuinely use.
  5. Look up your domain's current SPF record and confirm there is only one.
  6. Add the sending service's SPF include to that single record.
  7. Check the record stays within ten DNS lookups.
  8. Send a test message and confirm the result now reads pass.
  9. Enable DKIM for the same service so forwarded mail still authenticates.

Questions people ask

Is an SPF fail the same as being hacked?

No. It means a server was not on your approved list. That might be a forger, or it might be a legitimate tool you forgot to add. Check the sending address before drawing conclusions.

Will a failing message always be rejected?

No. Receivers decide for themselves. Many treat a fail as one signal among several, and a DMARC policy from the sending domain tells them how strictly to act.

What is the difference between SPF fail and DMARC fail?

SPF fail is one check failing. DMARC fails only when both SPF and DKIM fail to pass in a way that matches the visible From domain.

Can I fix SPF without touching DNS?

No. SPF lives in a TXT record on your domain, so any fix means editing DNS or asking whoever manages it to make the change.

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 (SPF)
  2. RFC 7489: DMARC
  3. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
  4. ASD ACSC: Information Security Manual, guidelines for email
Book a free call