# SPF Softfail (~all): What It Means and When to Use -all

SPF softfail means a sending server probably isn't authorized for your domain. Learn what ~all and -all tell receivers, how DMARC treats a softfail, and why your mail might show spf=softfail.

Your SPF record ends in `~all`, or an email's headers show `spf=softfail`, and a checker flags it. Is that a problem, and should the record end in `-all` instead?

SPF lets a domain list the servers allowed to send mail for it. The last part of the record says what receivers should conclude about every other server. This guide explains the softfail result, how it differs from a hard fail, how DMARC changes the decision, and what to do when your own mail shows softfail.

## What softfail means

Each SPF mechanism can carry a qualifier that sets the result when it matches. RFC 7208, the SPF standard, defines four:

| Qualifier | Example ending | Result | What it tells receivers |
| --- | --- | --- | --- |
| `+` (default) | `+all` | pass | Any server is allowed. Never use this ending. |
| `-` | `-all` | fail | Servers not listed are not authorized. |
| `~` | `~all` | softfail | Servers not listed are probably not authorized. |
| `?` | `?all` | neutral | The domain makes no statement about other servers. |

A softfail is a weak statement. The standard says receivers should treat it as somewhere between a fail and a neutral result, and should not reject a message based on softfail alone, though they may give it closer scrutiny. A hard fail is an explicit statement that the server isn't authorized, and a receiver may reject the message for it.

## How DMARC changes the decision

If your domain publishes DMARC, receivers use SPF as one input. DMARC only counts SPF when the result is **pass** and the domain SPF checked matches the From domain. A softfail and a fail look the same to DMARC: neither passes. A message then needs an aligned DKIM signature to pass DMARC, and your DMARC policy decides what happens to mail that fails both.

That's why, for a domain with DMARC and working DKIM, the choice between `~all` and `-all` matters less than it once did. Your DMARC policy, not the SPF ending, is what tells receivers to quarantine or reject spoofed mail.

## Should you use ~all or -all?

A practical rule:

- **Use `~all` while you're still finding every service that sends as your domain.** A newsletter tool, a CRM or a helpdesk you forgot to add will soft-fail rather than fail while you fix the record. DMARC aggregate reports show which sources are missing.
- **Move to `-all` once the record lists every legitimate sender** and your mail passes DKIM. A domain that never sends mail at all can publish `v=spf1 -all` straight away.

Whichever you choose, keep the record within SPF's limit of 10 DNS lookups, or receivers return an error instead of a result. The [SPF checker](/tools/spf-checker/) counts them.



### Check every record behind your sending domain

MailSlurp checks SPF, DKIM, DMARC, MX and blocklist results on a schedule and alerts your team in email, Slack, Microsoft Teams or a webhook when something changes.

[Start monitoring for free](https://app.mailslurp.com/sign-up/?onboardingRequest=deliverability)



## Why your own mail shows spf=softfail

If a message you sent shows `spf=softfail` in its `Authentication-Results` header, the server that delivered it isn't in your SPF record. The usual reasons:

- **A sending service is missing from the record.** Add its `include:` mechanism, which the service publishes in its setup instructions.
- **The message was forwarded.** When a mailbox forwards your message, the forwarding server delivers it, and it isn't in your record. SPF results on forwarded mail are expected to fail; an aligned DKIM signature survives forwarding when the message isn't modified.
- **SPF checked a different domain.** SPF checks the envelope sender (the `Return-Path`), not the visible From address. If your provider uses its own bounce domain, SPF passes or fails for that domain and doesn't align with yours. Set up a custom return-path or bounce domain with the provider, or rely on aligned DKIM.

To see the result for yourself, send a message to an inbox you can read and open its headers, or paste them into an email header analyzer. In an automated test, a MailSlurp inbox returns the received headers through the API, so you can check that `spf=pass` and `dkim=pass` appear after each DNS or provider change.

## Frequently asked questions

### What does SPF softfail mean?

The sending server isn't listed in the domain's SPF record, and the record ends in `~all`, which marks other servers as probably not authorized. Receivers usually accept the message but may treat it with more suspicion.

### Is softfail bad for deliverability?

A softfail on its own rarely blocks mail, but it means SPF didn't pass. If DKIM also fails or isn't aligned, the message fails DMARC, and your DMARC policy decides whether it's quarantined or rejected.

### What is the difference between ~all and -all?

`~all` returns softfail for servers not in the record, a weak "probably not authorized". `-all` returns fail, an explicit "not authorized" that receivers may reject on.

### Does Gmail require SPF?

Gmail requires every sender to authenticate with SPF or DKIM, and senders of 5,000 or more messages a day to use SPF, DKIM and DMARC.
