What Does the 550 5.7.23 SPF Error Mean?
If an email to an Internic.ca mailbox bounced with 550 5.7.23 SPF validation failed, our mail server rejected it because it couldn't confirm the email was really allowed to use the sender's address.
How it works
Anyone can put any address in the "From" line of an email, including scammers. To protect you, every domain can publish an SPF record: a list of the services and servers approved to send email using its addresses.
When an email arrives, our server checks that list:
An email arrives saying "From: you@yourdomain.com"
↓
Our server asks: "Is the service that sent this
on yourdomain.com's approved list (SPF)?"
↓
┌──────────────┴──────────────┐
↓ ↓
✔ Yes ✘ No
Delivered to inbox Rejected (550 5.7.23)The two common causes
1. The service that sent the email isn't on the approved list
Many online services send emails using your address as the sender, such as website contact forms, registration or booking systems, payment confirmations and newsletter tools. They send these from their own servers.
If that service isn't on the domain's approved list, the email is rejected, even if the service is legitimate. The fix is to add the service to the domain's SPF record.
2. The SPF record has an error
If the SPF record itself is set up incorrectly, mail servers can't read it and reject the email. Common mistakes include:
Extra quotation marks: some DNS providers add quotation marks automatically. If they're also typed in by hand, the record ends up with two sets and becomes invalid.
✘ Wrong: ""v=spf1 include:spf.protection.outlook.com ~all"" ✔ Correct: v=spf1 include:spf.protection.outlook.com ~all
Missing v=spf1: every SPF record must start with v=spf1. Without it, the record isn't recognized as SPF at all.
✘ Wrong: include:_spf.google.com ~all ✔ Correct: v=spf1 include:_spf.google.com ~all
Two SPF records: a domain can have only one. This often happens when a new service is added as a separate record instead of being added to the existing one.
✘ Wrong (two records): v=spf1 include:spf.protection.outlook.com ~all v=spf1 include:servers.mcsv.net ~all ✔ Correct (combined into one): v=spf1 include:spf.protection.outlook.com include:servers.mcsv.net ~all
Too many services listed: SPF records are limited to 10 lookups, and some services use several lookups each. Adding many services to one record can go over the limit.
✘ Too many: v=spf1 include:spf.protection.outlook.com include:_spf.google.com include:servers.mcsv.net include:sendgrid.net include:mailgun.org include:_spf.salesforce.com include:zoho.com ~all
If this happens, remove any services the domain no longer uses. If all of them are still needed, the domain's IT team may need to simplify the record.
To check a domain for these errors, enter the domain at the free MXToolbox SPF Lookup (https://mxtoolbox.com/spf.aspx). Any problems are highlighted in red.
Who receives the bounce message?
The bounce goes back to the address the email was sent from, not to the person it was sent to. If someone tells you their email to you bounced, ask them to forward you the full bounce message.
What to do
Check the sender's address in the bounced email.
If it's someone else's domain:
The fix needs to be made on their side. Contact the sender by phone or another email address and send them:
- the bounce message, and
- a link to their MXToolbox SPF Lookup results.
Their IT team or web developer can then correct their SPF record with their DNS provider.
If it's your own domain:
Contact the Internic.ca support team with the details below. We'll check your SPF record for errors, or, once you confirm the service sending the emails, help you add it to your approved list.
What to send our support team
- The full bounce message, saved as a file (see the steps below)
- The sender's and recipient's email addresses
- The date and time the email was sent
- The name of the service that sent it, if it wasn't sent from a regular mailbox
How to save the bounce message
Plesk Webmail
- Go to webmail.yourdomain.com. For example, if your website is example.com, go to webmail.example.com.
- Log in with your full email address and password.
- Open the bounced email.
- Click the three dots (⋯) next to the Mark button, then click Export.
- A .eml file will download to your computer. Attach it to your support ticket.
Other email apps
- Gmail: three dots (⋮) > Download message
- Outlook (desktop): File > Save As
- Outlook (web): three dots (⋯) > View > View message source, then copy all of the text
- Apple Mail: File > Save As > Raw Message Source
After the fix
New emails should arrive normally within about an hour. Emails that bounced before the fix won't be resent automatically, so ask the sender to send them again.
Comments
0 comments
Please sign in to leave a comment.