Enhanced Status Code 5.7.20: SPF Validation Failed
Enhanced Status Code 5.7.20 means “SPF Validation Failed.” Your email failed SPF (Sender Policy Framework) authentication. The sending IP address is not authorized in your domain's SPF record to send email on behalf of your domain. Update your SPF record to include the sending server.
550 5.7.20 spf=fail (sender IP 203.0.113.10 is not authorized by example.com SPF record); message rejected
What does 5.7.20 mean?
Enhanced status code 5.7.20 specifically indicates an SPF authentication failure. The receiving server checked your domain's SPF record and determined that the IP address sending the email is not authorized to send on behalf of your domain.
SPF works by publishing a DNS TXT record listing the IP addresses and servers authorized to send email for your domain. When a receiving server gets an email claiming to be from your domain, it checks the sender's IP against your SPF record. If the IP is not listed, SPF fails.
Common causes include not updating your SPF record when adding a new ESP or sending service, DNS propagation delays after SPF record changes, or exceeding the SPF 10-lookup limit. Use our SPF Checker to verify your record.
How 5.7.20 plays out
5.7.20 rejectionWhere 5.7.20 sits: soft vs hard bounce
| Soft bounce (4xx) | Hard bounce (5xx) | |
|---|---|---|
| Nature | Temporary | Permanent |
| SMTP class | 4xx | 5xx |
| What to do | Let it retry | Suppress the address |
| Recoverable? | Often | No |
| 5.7.20 is | ✓ this code |
Common causes of 5.7.20
- Sending IP is not included in your domain's SPF record
- SPF record has not been updated after adding a new sending service
- SPF record exceeds the 10 DNS lookup limit
- DNS propagation delay after SPF record changes
- Email forwarding broke SPF alignment (original IP no longer matches)
- Sending through an unauthorized relay or third-party service
How to fix 5.7.20
- Check your SPF record using our SPF Checker tool
- Add the sending server's IP or include statement to your SPF record
- Ensure your SPF record does not exceed the 10 DNS lookup limit
- Wait for DNS propagation (up to 48 hours) after SPF record changes
- For forwarded email, implement DKIM and ARC to preserve authentication
- Verify all your sending services are listed in your SPF record