Email authentication error
SPF ~all or -all: what softfail and hardfail mean in practice
The last part of an SPF record says what receivers should conclude about a server that is not on your list. A tilde before all, written ~all, marks it as a softfail: probably not authorised. A hyphen, written -all, marks it as a fail: definitely not authorised. The choice sounds technical, but it changes how strongly you tell the world to distrust mail that does not match your list.
By Kyle Deligny, Titanos, Brisbane. Last reviewed 1 December 2026. General information, not legal advice.
Most small businesses should end up on -all once their list of senders is complete. This page explains what the standard says each ending means, how receivers behave, and how the choice interacts with DMARC.
The four endings and what the standard says
Every mechanism in an SPF record can carry a qualifier. RFC 7208 lists four: plus for pass, hyphen for fail, tilde for softfail and question mark for neutral. When no qualifier is written, plus is assumed. The all mechanism always matches, so it is placed last as the default answer for anything not matched earlier.
A common ending reads v=spf1 include:_spf.google.com ~all. Anything not covered by Google's servers returns softfail. The same record ending in -all returns fail for those sources. A question mark ending, ?all, returns neutral and says nothing at all about unlisted servers, which is rarely what you want.
Mechanisms written after all are never tested, and the standard says they must be ignored. A record that has an include placed after -all does not authorise that include.
| Ending | Result | Meaning |
|---|---|---|
| +all or all | pass | Every server is authorised. Never use this. |
| ~all | softfail | A weak statement that the host is probably not authorised |
| -all | fail | An explicit statement that the host is not authorised |
| ?all | neutral | No statement either way |
How receivers treat softfail and fail
Section 8.5 of RFC 7208 says a softfail result ought to be treated as somewhere between fail and neutral. Receiving software should not reject a message based only on a softfail, but may examine it more closely. Section 8.4 says what happens on a fail is a matter of local policy, and a receiver that rejects during the SMTP session should use code 550 with enhanced status 5.7.1.
So the difference is one of strength, not of kind. Many receivers fold SPF into a wider spam score along with DKIM, DMARC and sender reputation. A -all is a firmer signal than ~all, but neither one decides the outcome alone.
Where DMARC is in use, the effect shifts again. DMARC counts SPF only when it passes with an aligned domain, so softfail and fail are both just not a pass for DMARC purposes. What your DMARC policy does with the message then decides its fate. RFC 7489 notes that some receivers evaluate SPF before DMARC, so a -all can cause rejection early, before DMARC is even considered. Operators who choose -all should be aware of that.
When ~all is the sensible choice
Use ~all while you are still discovering who sends as your domain. If your marketing tool, your accounting package or a print supplier is missing from the record, -all invites receivers to reject their mail outright, while ~all gives you room to find them in the DMARC reports first.
A reasonable pattern is to publish ~all alongside a DMARC record at p=none with an rua address. Read the reports for a month, add the senders you find, then move on.
When to switch to -all
Switch to -all when the reports show no legitimate source failing SPF and DKIM together, and when the record is under the 10 lookup limit. Also use it straight away on domains that never send mail, where the entire record can be v=spf1 -all. A parked or retired domain has no legitimate senders to protect from false failures.
One caution applies to forwarding. When a recipient forwards your mail on to another address, the forwarder's server usually becomes the connecting host, so SPF fails at the final destination whatever you publish. This is why DKIM matters as the second route to a DMARC pass, and why -all alone is not a complete defence.
What not to expect from either ending
Neither ending tells receivers what to do with a failure. A stricter ending does not block spoofing of your visible From address, because SPF checks the hidden envelope sender. Only DMARC, with aligned SPF or DKIM and a quarantine or reject policy, links the check to what your recipient sees. Treat the SPF ending as one part of a three-part setup, not a replacement for the other two.
Choose between ~all and -all
- Look up your current v=spf1 record and note how it ends.
- Confirm it has exactly one SPF record on the domain.
- List every service that sends mail as your domain.
- Compare that list with the includes and IP ranges in the record.
- Keep ~all while the aggregate reports still show unrecognised senders.
- Check that the lookup count is 10 or below before tightening anything.
- Make sure every sender also signs with DKIM for your domain.
- Change ~all to -all and wait for a full reporting cycle.
- Read the reports for new failures and add any missing sender quickly.
- Publish v=spf1 -all on any domain that never sends mail.
Questions people ask
Is -all more secure than ~all?
It is a firmer statement, but not a stronger block. RFC 7208 leaves the handling of a fail to the receiver's local policy, and receivers often weigh it with other signals. Real protection against spoofing comes from DMARC at quarantine or reject.
Will -all cause my legitimate mail to bounce?
It can, if a real sender is missing from the record or if mail is forwarded through another server. Complete the list of senders first and rely on DKIM as a second route.
What is the default if I write no qualifier?
The qualifier defaults to plus, meaning pass. A bare mechanism such as include:example.net therefore authorises that source, and a bare all at the end would authorise everything, which is almost never intended.
Does a softfail result land my mail in spam?
Not by itself. The standard says receivers should not reject on softfail alone, though some use it as one input among many. Fixing the record is the reliable way to avoid problems.
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.
Sources
- RFC 7208, Sender Policy Framework, sections 4.6.2, 5.1 and 8.4 to 8.5
- RFC 7489, DMARC, section 10.1 issues specific to SPF
- ASD, Essential Eight overview
General information, not legal advice. Laws and guidance change: check the linked primary sources and ask a qualified adviser about your own situation. Written by Kyle Deligny with AI assistance, last reviewed 1 December 2026. How we write and check: editorial policy.
