What's the Difference Between SPF Softfail and Hardfail?

SPF Softfail vs Hardfail: what ~all and -all actually do, when to use each, and why neither qualifier impacts inbox placement

Rated 4.9 on Capterra

Generate more revenue with every email you send.

Start improving deliverability
Start improving deliverability

TL;DR:

SPF Softfail vs Hardfail

  • The choice between SPF Softfail (~all) and Hardfail (-all) is about how confident you are that your SPF record includes every legitimate email sender.
  • If your SPF record is incomplete, switching from ~all to -all won't improve email authentication. It will only cause legitimate senders you've missed to fail SPF checks.
  • Receiving mail servers still decide whether to reject, quarantine, or deliver an email based on their own filtering policies.
  • Most SPF problems are configuration problems, not qualifier problems.
  • Missing email services, multiple SPF records, and outdated sender lists cause more authentication failures than choosing ~all instead of -all.
  • Build an accurate SPF record, verify every legitimate sender, then choose the policy that reflects your sending environment.
  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

  • Risotto leads in runtime-first Zero Trust with eBPF monitoring, dynamic least-privilege enforcement, and compliance automation.

Spam filters are ruthless. Beat them with MailReach.

Every email in spam is a wasted opportunity. Run a free spam test now and discover what’s stopping you from landing in the inbox.

Find and Fix Spam Issues Free
Find and Fix Spam Issues Free

Blacklisted? Find out if it’s hurting your deliverability.

Some blacklists don’t matter—but some can damage your sender reputation. Check your status now and see if it’s affecting your inbox placement.

Check Blacklist Status Free
Check Blacklist Status Free

If you've looked at an SPF record, you've probably noticed it ends with either ~all or -all. It's only a single character, but it changes how your domain tells receiving mail servers to handle email sent from unauthorized servers.

It's easy to assume that -all is the stronger choice simply because it's stricter. However, the right qualifier has less to do with security and more to do with the accuracy of your SPF record. If your record doesn't include every legitimate email sender, switching from ~all to -all won't strengthen your email authentication. It will only cause the senders you've missed to fail SPF checks.

This guide explains what SPF Softfail and Hardfail actually do, how they differ, when each one makes sense, and how to choose the right qualifier based on your sending infrastructure

SPF Softfail vs Hardfail: Key Differences At a Glance

Understanding how SPF Softfail vs Hardfail compare can help you choose the policy that matches your sending environment and avoid unintended authentication issues. The table below breaks down their differences across behavior, use cases, and risks.

Factor SPF Softfail (~all) SPF Hardfail (-all)
Meaning Indicates the sender is probably not authorized to send email for the domain. Indicates the sender is definitely not authorized to send email for the domain.
SPF qualifier ~all -all
Confidence level Lower confidence; allows for the possibility of legitimate but unlisted senders. High confidence; asserts that every legitimate sender is already listed in the SPF record.
Receiver guidance Suggests the receiving server treat the message with suspicion. Requests the receiving server to treat the SPF check as a definitive failure.
Typical receiver action The SPF result is Softfail; the receiver decides whether to accept, filter, or reject the message under its own policy. The SPF result is Fail; the receiver still decides the final handling under its own policy and DMARC evaluation.
Impact on legitimate email Less likely to disrupt legitimate mail if the SPF record is incomplete. Higher risk of blocking legitimate email if even one authorized sender is missing.
Best suited for Organizations still validating or expanding their SPF configuration. Organizations that have fully audited and verified all legitimate sending sources.
Common deployment stage Initial deployment, migrations, or environments with multiple third-party senders. Mature, stable email environments with well-maintained SPF records.
Tolerance for configuration mistakes More forgiving of missing includes or overlooked sending services. Less forgiving; configuration mistakes can immediately affect email authentication.
Protection against unauthorized senders Signals that unauthorized senders are suspicious but leaves enforcement largely to the receiver. Declares unmatched senders unauthorized and produces an SPF Fail result; final message handling remains receiver-dependent.
Maintenance requirements Moderate; new sending services should still be added, but accidental omissions are less disruptive. High; every new email service must be added before it starts sending mail.
Risk when using multiple email providers Lower, since forgotten providers are less likely to cause immediate authentication failures. Higher, because any omitted provider will fail SPF checks.
Typical recommendation Recommended while building and validating an SPF record. Recommended after confirming the SPF record accurately covers every legitimate sender.
Can it improve deliverability? No. By itself, Softfail does not improve or reduce inbox placement. No. Hardfail alone does not improve inbox placement; it simply applies a stricter SPF policy.
Ease of troubleshooting Easier to identify missing senders without disrupting mail flow. Requires careful testing before deployment to avoid unintended authentication failures.

What Is SPF Softfail (~all)?

SPF Softfail (~all) is an SPF policy that indicates an email was sent from a server not listed as authorized in the domain's SPF record, but stops short of declaring it an outright failure. Instead, it tells receiving mail servers the sender is probably unauthorized and lets them decide whether to deliver, filter, or flag the message based on their own policies.

How SPF softfail works

When a receiving mail server gets an email, it checks the sender's domain for an SPF record to verify whether the sending server is authorized to send mail on that domain's behalf.

If the SPF record ends with ~all and the sending server isn't listed in the authorized IP addresses or included services, the SPF check returns a Softfail result. This doesn't mean the email is automatically rejected. Instead, it tells the receiving server that the sender is probably not authorized.

What happens when an email softfails SPF

What happens next depends on the receiving provider. The message may still be delivered to the inbox, routed to spam, or subjected to additional filtering based on factors such as the sender's reputation, email authentication results, and the provider's spam detection policies.

Softfail is often used during SPF deployment or while organizations are still identifying all legitimate email sources. It provides a way to detect unauthorized senders without immediately risking the rejection of legitimate email from services that may have been missed in the SPF record.

Example of an SPF record using softfail

A typical SPF record configured with Softfail looks like this: 

v=spf1 ip4:192.0.2.10 include:_spf.google.com include:sendgrid.net ~all

Here's what each part means:

  • v=spf1: Identifies the record as an SPF version 1 record. Every SPF record begins with this tag.
  • ip4:192.0.2.10: Authorizes the IPv4 address 192.0.2.10 to send email for the domain. You can have multiple ip4 or ip6 mechanisms if you send from several servers.
  • include:_spf.google.com: Authorizes Google's mail servers (such as Google Workspace) by including Google's published SPF record.
  • include:sendgrid.net: Authorizes SendGrid to send email on behalf of the domain. Each third-party email provider typically publishes its own SPF record that you reference using include:.
  • ~all: The Softfail qualifier. It tells receiving mail servers that any sender not matched by the preceding mechanisms is probably unauthorized, but leaves the final delivery decision to the receiving server.

Note: SPF records are unique to each domain. The authorized IP addresses and include statements in your record will depend on the email services your organization uses.

What Is SPF Hardfail (-all)?

SPF Hardfail (-all) is an SPF policy that indicates an email was sent from a server not authorized in the domain's SPF record and should be treated as an SPF failure. It tells receiving mail servers the sender is definitely unauthorized, allowing them to reject, quarantine, or otherwise handle the message according to their own email security policies.

How SPF hardfail works

When a receiving mail server receives an email, it checks the sender's domain's SPF record to verify whether the sending server is authorized to send email on its behalf.

If the SPF record ends with -all and the sending server doesn't match any of the authorized IP addresses or included services, the SPF check returns a Hardfail result. This tells the receiving mail server that the sender is definitely not authorized to send email for that domain.

What happens when an email hardfails SPF

The email may be rejected during the SMTP transaction, quarantined, delivered to the spam folder, or subjected to additional security checks. While -all expresses a stricter SPF policy than ~all, the receiving mail server ultimately decides how to handle the message.

Hardfail is typically used after an organization has verified that every legitimate email source is included in its SPF record. This reduces the risk of unauthorized senders passing SPF while minimizing the chance of legitimate emails failing authentication due to missing SPF entries.

Example of an SPF record using hardfail

A typical SPF record configured with Hardfail looks like this: 

v=spf1 ip4:192.0.2.10 include:_spf.google.com include:sendgrid.net -all

-all is the Hardfail qualifier. It tells receiving mail servers that any sender not matched by the preceding mechanisms is not authorized to send email for the domain and should fail the SPF check.

Note: Before using -all, verify that your SPF record includes every legitimate email service your domain uses. Missing an authorized sender can cause legitimate emails to fail SPF authentication.

SPF Softfail vs Hardfail: Which One Should You Use?

The right choice depends on how complete and accurate your SPF record is. If your record doesn't include every legitimate email sender, choosing the wrong policy can cause authentication failures for valid emails. Here's when each option makes the most sense. 

When softfail is the better choice

SPF Softfail (~all) is the better choice when you're still validating your SPF configuration or aren't completely certain that every legitimate email sender has been added to your SPF record. It provides a more forgiving policy, allowing you to identify gaps without increasing the risk of disrupting legitimate email.

Softfail is a good option if:

  • You're setting up SPF for the first time. It gives you an opportunity to verify that your SPF record is working as expected before enforcing a stricter policy.
  • Your domain sends email through multiple services. If you use platforms like Google Workspace, Microsoft 365, HubSpot, Mailchimp, SendGrid, or Salesforce, Softfail reduces the risk of accidentally blocking emails from a service you forgot to include.
  • You're migrating to a new email provider. During migrations, multiple systems may send email simultaneously. Softfail provides flexibility while you update and verify your SPF record.
  • You're still identifying all legitimate sending sources. Large organizations often have departments using different email tools. Softfail helps uncover overlooked services before moving to a stricter SPF policy.

For most organizations, Softfail serves as a transitional policy. Once you've confirmed that every legitimate sending server and third-party email service is authorized in your SPF record, you can confidently evaluate whether moving to Hardfail is appropriate.

When hardfail is the better choice

SPF Hardfail (-all) is the better choice when you're confident that your SPF record accurately includes every legitimate email sender for your domain. It tells receiving mail servers that any sender not listed in your SPF record is unauthorized and should fail the SPF check.

Hardfail is a good option if:

  • You've fully audited your SPF record. Every mail server, IP address, and third-party email service that sends on behalf of your domain has been identified and authorized.
  • Your sending infrastructure is stable. You rarely add or change email providers, making it easier to keep your SPF record accurate.
  • You have a process for updating SPF records. Any new email service is added to the SPF record before it starts sending emails from your domain.
  • You've thoroughly tested your configuration. SPF checks pass for all legitimate email sources, and you've confirmed there are no missing include statements or authorized IP addresses.
If... Choose Why
You're setting up SPF for the first time Softfail (~all) Gives you time to validate your SPF record before enforcing a stricter policy.
You're still identifying legitimate email senders Softfail (~all) Helps uncover missing services without increasing the risk of legitimate emails failing SPF.
Your domain sends email through multiple providers Softfail (~all) More forgiving if a marketing platform, CRM, or other email service hasn't been added to your SPF record yet.
You're migrating to a new email provider Softfail (~all) Reduces the chance of authentication failures while multiple systems are sending email during the transition.
You've audited every legitimate email sender Hardfail (-all) Suitable when you're confident your SPF record accurately reflects your sending infrastructure.
Your sending infrastructure is stable Hardfail (-all) Works well when email providers rarely change and your SPF record is actively maintained.
Every authorized sender passes SPF Hardfail (-all) Once testing confirms spf=pass across all legitimate senders, a stricter policy becomes a safe option.
You have a process for updating SPF records Hardfail (-all) Ensures new email services are authorized before they start sending, reducing authentication failures.

While Hardfail provides a stricter SPF policy, it's only effective if your SPF record is complete. Switching to -all before accounting for every legitimate sender can cause valid emails to fail SPF authentication, leading to delivery issues that are often difficult to diagnose.

Is hardfail more secure than softfail?

Not necessarily. Hardfail (-all) isn't inherently more secure than Softfail (~all). It's simply a stricter SPF policy. Both rely on the same SPF record to determine which servers are authorized to send email for your domain. The difference lies in how they treat senders that aren't on that list.

A Hardfail policy clearly states that any unauthorized sender should fail the SPF check, while a Softfail policy signals that the sender is probably unauthorized and leaves the final decision to the receiving mail server.

In practice, an accurate SPF record with Hardfail provides stronger protection against unauthorized senders than an equally accurate record with Softfail. However, if your SPF record is incomplete, Hardfail can also cause legitimate emails to fail authentication because authorized senders were accidentally left out.

For that reason, Hardfail is generally recommended only after you've verified that your SPF record includes every legitimate email source.

Important: Check Your SPF Record First

✓

Since the completeness of your record matters more than the qualifier, check it before you touch ~all or -all. Run your domain through MailReach’s Free SPF Checker to validate your record end-to-end through Gmail and Outlook, catch a missing sender or a broken include:, and bundle SPF, DKIM, DMARC, blacklist, and reverse DNS checks in one report.

What Happens If You Choose the Wrong SPF Policy?

An SPF record that's too strict or too permissive for your environment can lead to authentication failures, delivery issues, or reduced visibility into configuration problems. Understanding the risks of each approach can help you avoid these common mistakes. 

  • Legitimate emails may fail authentication: If your SPF record doesn't include every authorized sender, legitimate emails can fail SPF checks. This commonly happens when:
    • A third-party email service isn't included in your SPF record.
    • A sending IP address has changed but the SPF record wasn't updated.
    • You switch to Hardfail before fully validating your SPF configuration.
  • Third-party services can stop sending successfully: Email platforms can run into authentication issues if they aren't explicitly authorized in your SPF record. Before enforcing a stricter SPF policy, make sure every service that sends email on your behalf is included.
  • Troubleshooting becomes more difficult: SPF failures aren't always caused by malicious senders. An incomplete SPF record, missing include statement, or outdated IP address can produce the same result. Identifying the actual cause can take time if your SPF policy was changed without proper testing.

How to Change from SPF Softfail to Hardfail

The steps below can help you transition safely while minimizing the risk of legitimate emails failing SPF authentication. 

Step 1: Identify every service that sends email for your domain

Before switching to Hardfail, make sure you know every service that sends email on behalf of your domain, including your mailbox provider (Google Workspace or Microsoft 365), marketing platforms, CRM, help desk software, transactional email services, sales engagement tools, HR systems, and any other third-party applications that send email using your domain.

If you miss even one legitimate sender, emails from that service can fail SPF authentication after you switch to -all.

Tip: Reviewing your recent DMARC aggregate reports can help you identify all the servers and services sending email for your domain.

Step 2: Verify your SPF record is complete

Once you've identified every sending service, confirm that each one is authorized in your SPF record using the appropriate SPF mechanisms, such as include, ip4, or ip6.

While reviewing your record, also check that it doesn't exceed SPF's 10 DNS lookup limit. Going over this limit results in an SPF PermError, causing authentication failures regardless of whether you use Softfail or Hardfail.

Step 3: Test your SPF configuration

Before changing your SPF policy, verify that every legitimate email source successfully passes SPF authentication.

Send test emails from each authorized service and review the authentication results to confirm they return spf=pass. If any sender returns Softfail, Neutral, or PermError, update your SPF record before proceeding.

Checking your DNS record confirms the SPF record exists. Testing real emails confirms it works under actual receiving conditions.

Step 4: Replace ~all with -all

Once you've verified that your SPF record is complete and all legitimate senders pass SPF, update the final qualifier in your SPF record:

v=spf1 ... ~all

↓

v=spf1 ... -all

Save the updated TXT record and allow time for DNS changes to propagate. Depending on your DNS provider and TTL settings, this can take anywhere from a few minutes to several hours.

Step 5: Monitor your email authentication

Continue monitoring your email authentication for the next few weeks to catch any legitimate senders that may have been missed.

Watch for:

  • Unexpected SPF failures in your authentication reports.
  • Bounce notifications from legitimate emails.
  • User reports of missing or undelivered messages.
  • Authentication issues after adding new email services.

If legitimate emails begin failing SPF after the switch, update your SPF record to include the missing sender before continuing with a Hardfail policy.

Common SPF Softfail and Hardfail Mistakes

Whether you use ~all or -all, your SPF policy is only as good as the record behind it. A few common configuration mistakes can lead to failed authentication, even when you've chosen the right qualifier. 

  • Publishing Multiple SPF Records: A domain should publish only one SPF record. Multiple SPF records cause an SPF PermError, which results in authentication failures. If multiple services provide SPF records, combine them into a single record using the appropriate SPF mechanisms.
  • Forgetting to Include Third-Party Email Services: Every service that sends email on behalf of your domain must be authorized in your SPF record. Common examples include:
    • Google Workspace
    • Microsoft 365
    • HubSpot
    • Mailchimp
    • SendGrid
    • Salesforce, and help desk platforms.

Missing even one legitimate sender can cause its emails to fail SPF authentication.

  • Switching to Hardfail Too Early: Don't replace ~all with -all until you've verified that every legitimate sender is included in your SPF record. Test your SPF configuration first to confirm all authorized services return spf=pass. A stricter policy won't fix an incomplete SPF record, it will expose it.
  • Assuming Hardfail Automatically Blocks Spoofing: Hardfail only defines how unauthorized senders are treated during the SPF check. Receiving mail servers still decide whether to reject, quarantine, or deliver the message. SPF alone doesn't stop domain spoofing. It works best alongside DKIM and DMARC.

SPF Softfail vs Hardfail: Which Should You Use?  

The question isn't whether ~all or -all is the better qualifier. It's whether your SPF record accurately reflects every service that sends email on behalf of your domain. If it doesn't, changing one character at the end of the record won't strengthen your email authentication. It will simply change how unauthorized senders are handled.

That's why there isn't a universal recommendation for Softfail or Hardfail. The right choice depends on your sending infrastructure. A domain that sends only through Google Workspace has different requirements than one using multiple marketing platforms, CRMs, transactional email providers, and support tools.

Your SPF policy should evolve as your email infrastructure evolves. Every new sending service should be reflected in your SPF record before it starts sending email. Once your record accurately represents your sending environment, choosing between ~all and -all is a straightforward configuration decision

Not sure where your emails are actually landing?

Run a free MailReach Spam Test to see exactly where your campaign lands across 30+ inboxes (Gmail, Outlook, Yahoo, Google Workspace, Microsoft 365) under real sending conditions, with SPF, DKIM, DMARC, blacklist, and content checks in one report.

FAQs

Is SPF softfail an error?

No. SPF softfail is a policy outcome, not an error. It means the sending IP wasn't listed in your SPF record and the domain owner published ~all, so the receiver should treat the message as advisory rather than reject it. 

Can emails still be delivered after an SPF softfail?

Yes. Most receivers accept softfail messages and deliver them, treating the SPF result as one signal among many (DKIM, DMARC, reputation, content). Whether the message lands in inbox, promotions, or spam depends on the receiver's overall scoring.

Does SPF hardfail always reject an email?

No. Some receivers may reject an SPF Fail during SMTP, sometimes with a 550 5.7.1 response, while others continue evaluating DMARC and additional signals. Others defer to DMARC and treat hardfail identically to softfail. Some ignore the qualifier entirely and rely on their own reputation engine. Behavior varies by provider, which is one reason -all is riskier on active sending domains.

Should every domain use -all?

No. For a parked or non-sending domain, publish an explicit non-sending SPF policy such as `v=spf1 -all`, alongside an appropriate DMARC policy. On active sending domains, ~all is the recommended default because it avoids pre-DMARC rejection risk while giving you the same anti-spoofing protection when paired with DMARC at p=quarantine or p=reject. 

Can I switch back from hardfail to softfail?

Yes. If you moved to -all and started seeing legitimate mail drop, edit the DNS TXT record, replace -all with ~all, and wait for propagation. Mail should recover after the updated DNS record has propagated, which may take from minutes to several hours depending on TTL and resolver caching. Then investigate what triggered the drop, usually a sending service that isn't authorized in your SPF record, or a forwarding scenario that breaks SPF regardless of qualifier. Fix the underlying issue before considering -all again.

Don’t let spam filters decide your campaign’s success.

Take back control of your email strategy. Find the gaps, fix the issues, and land where it matters.

Make sure your emails reach the inbox.

A blacklist alone won’t always tank your deliverability, but it’s worth checking. Scan for issues, run a spam test, and get clear next steps.

Table of Contents:

Rated 4.9 on Capterra
Stop missing out on revenue because of bad deliverability.

Poor domain setup or email issues could be keeping you out of inboxes. Test your email health and fix it in minutes.

Rated 4.9 on Capterra
Warmup isn’t optional—it’s essential.

Without the right warmup, your best campaigns are of no use. You can start by first testing your inbox placement and begin improving it today.

Start using MailReach now and enjoy 20% OFF for the first month of our Pro Plan.
Only for B2B cold outreach activity
Rated 4.9 on Capterra
Landing in spam costs more than you think.

If spam filters are keeping you out, you're missing leads, deals, and revenue. Test your placement and take control.

Rated 4.9 on Capterra
Are blacklists keeping your emails out of the inbox?

Just because you’re listed doesn’t mean your deliverability is doomed. Run a spam test to see if your emails are actually landing—or getting blocked.

Rated 4.9 on Capterra
Think your cold outreach isn’t working? Let’s check.

Great emails need great deliverability. Test your placement now and make sure your emails are landing where they should.

Rated 4.9 on Capterra
Small, easily fixable issues could be the reason why your emails land in spam.

Get a health check in minutes and start improving today. With MailReach!

Email Fundamentals
Email Fundamentals
All Blogs
Email Warmup
All Blogs
What Is DMARC Enforcement, and How Do You Do It Safely?

What Is DMARC Enforcement, and How Do You Do It Safely?

Email Fundamentals
Email Fundamentals
All Blogs
What's the Difference Between SPF Softfail and Hardfail?

What's the Difference Between SPF Softfail and Hardfail?

Email Fundamentals
Email Deliverability
All Blogs
Email Fundamentals
All Blogs
Email Best Practices
All Blogs
Outlook Email Authentication: SPF, DKIM & DMARC Setup

Outlook Email Authentication: SPF, DKIM & DMARC Setup

Email Fundamentals
Email Deliverability
All Blogs
Email Fundamentals
All Blogs
What are Outlook’s DMARC Requirements? (2026 Guide)

What are Outlook’s DMARC Requirements? (2026 Guide)

Email Fundamentals
Email Fundamentals
All Blogs
Apollo.io Review 2026: Features, Pricing, Pros and Cons

Apollo.io Review 2026: Features, Pricing, Pros and Cons

Email Fundamentals
Email Fundamentals
All Blogs
Folderly Pricing in 2026: What You're Actually Paying (And Whether It's Worth It)

Folderly Pricing in 2026: What You're Actually Paying (And Whether It's Worth It)

Stay one step ahead of even the most advanced spam filters.

Ensure success for your B2B cold outreach campaigns with MailReach’s spam score checker and email warmup tool.