SPF fail and softfail: does not designate as permitted sender
Updated · 4 min read
Any receiver that checks SPF:spf=failspf=softfailspf=none
In short
- The server that sent the message is not on the list of permitted senders that the return-path domain publishes in SPF.
- fail means the record ends in -all, softfail means ~all, and none means there is no SPF record to check at all.
- Add the real sender to your one SPF record using its documented include, and sign with DKIM so forwarded mail still passes DMARC.
Check the SPF record now
Type the domain the result names after domain of — usually the domain in your return path.
On this page
The wording, from the SPF standard and Microsoft
failThe SPF standard's example of a failing resultdomain of myname@example.com does not designate 192.0.2.1 as permitted sender
softfailHow Microsoft's header documentation defines itAlso known as soft fail. The message source isn't included in the SPF record for the domain, and the domain instructs the destination email system to accept and mark the message (~all).
noneMicrosoft's example, for a domain with no SPF recordReceived-SPF: None (protection.outlook.com: o365e.onmicrosoft.com does not designate permitted sender hosts)
Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.
- IETF: RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1
- Microsoft: Anti-spam message headers (page updated )
- Microsoft: Email nondelivery reports (NDRs) and SMTP errors in Exchange Online (page updated )
- Microsoft: Set up SPF to identify valid email sources for your Microsoft 365 domain (page updated )
The receiving server fetched the SPF record of the message's return-path domain, compared its list of permitted senders with the address the message came from, and did not find it there. The wording comes from the SPF standard, RFC 7208, whose example of a failing result reads just like this, and most receivers print something close to it in a Received-SPF or Authentication-Results header.
The result word matters. fail is the record's -all speaking: refuse anything unlisted. softfail is ~all: probably not authorised, so accept it but treat it with suspicion. With none, Microsoft's wording is that the domain does not designate permitted sender hosts — there is no SPF record to check at all.
The domain checked is the envelope sender, also called the return path. It is often your domain, but on mail from a sending platform it can be the platform's bounce domain, so read which domain the result names before changing anything.
Most likely causes
- A service that sends as the domain is missing from the record: a newsletter platform, a helpdesk, a CRM, or a new mail provider added without updating SPF.
- The message was forwarded. A forward re-sends your message from the forwarder's server, whose address is not in your record. This is expected, and it is why DKIM matters: a forwarded message that was not changed still passes DKIM, and DMARC needs only one of the two.
- A server, website or device sends directly, from an address the record never lists.
- There is no SPF record at all, or it is published where nobody looks: at www, at a name your DNS panel extended into example.com.example.com, or only as the old SPF record type instead of TXT.
- The record was overwritten. A provider's setup wizard replaced your record with its own instead of adding to it, dropping every other sender.
What a receiver does with each result
RFC 7208 leaves the outcome to the receiver. For fail it says the disposition is a matter of local policy, and a receiver that refuses the message during the SMTP conversation uses code 550. For softfail it says the receiver should not reject on that result alone, but may look at the message more closely.
Under DMARC, fail and softfail are both simply SPF failures. Microsoft's SPF documentation adds a detail worth knowing: DMARC policy is effectively ignored for ~all failures when the message also lacks a DKIM signature, which is why Microsoft recommends -all.
With none there is nothing to fail. The receiver judges the message on other evidence, and DMARC can only pass through DKIM.
When a checker says no SPF record was found
If you published a record and checkers still find none, look it up the way a receiver does: one TXT record at the domain itself, starting with v=spf1 exactly. The usual reasons it is not found are a record at the wrong name — www, or the zone appended twice — a value that does not start with v=spf1, or a record published only as the old SPF record type, which RFC 7208 discontinued in favour of TXT.
If the domain really has no SPF record, publish one that lists every service that sends as you, and end it in ~all until you have confirmed the list.
How to fix it
Identify the sender from the address in the result: your mail logs or the Received lines show which system it is.
Add that sender to your existing SPF record with the include or address range its documentation gives. Never add a second SPF record.
Keep the record under ten DNS lookups, and end it in ~all while you confirm the list, then -all.
Switch on DKIM signing with your domain for every sender, so mail that is forwarded still passes DMARC.
How to confirm the fix worked
Run the SPF check: the record should be found and parse, stay within ten lookups, and its include tree should contain the sender you added.
Send a test and read the headers: spf=pass for the return-path domain, and dmarc=pass.
Check your domain with the SPF checker