If an email to a Plesk mailbox bounced with 550 5.7.23 SPF validation failed, our mail server rejected it because it couldn't confirm that the sender was authorized to use the sender's address. This is usually resolved with a small change to the sender's SPF record.
How to resolve this error
1. Check the sender's address in the bounce message.
The bounce message is returned to whoever sent the email. If someone told you their email to you bounced, ask them to forward you the full bounce message.
2. If the sender's address is on another organization'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 SPF results: enter their domain at MXToolbox SPF Lookup and copy the link to the results page.
Their IT team or web developer can then correct their SPF record with their DNS provider.
3. If the sender's address is on your own domain
Contact our support team with the details listed under What to send our support team below. We'll check your SPF record for errors, or help you add the service that sends your emails.
After the fix: new emails should arrive normally within about an hour. Emails that bounced before the fix won't be resent automatically, so please ask the sender to send them again.
What to send our support team
- The full bounce message, saved as a file (see How to save the bounce message 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 (for example, a contact form, booking system or newsletter tool)
How to save the bounce message
Plesk Webmail
Follow the steps in our guide: How to Download an .EML File in My Webmail. Then attach the .eml file 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
Understanding the error
How SPF works
Any email can show any address in its "From" line, including emails from people attempting to impersonate a sender. To prevent this, each domain can publish an SPF record: a list of the services and servers authorized to send email using its addresses.
When an email arrives, our server checks the sender's SPF record:
- If the sending service is on the approved list, the email is delivered.
- If it isn't, the email is rejected with error 550 5.7.23.
The service isn't authorized
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. These emails are sent from the service's own servers.
If that service isn't included in the domain's SPF record, the email is rejected, even if the service is legitimate. The solution is to add the service to the domain's SPF record.
The SPF record contains an error
If the SPF record is set up incorrectly, mail servers can't read it and will reject the email. To check a domain for errors, enter it at MXToolbox SPF Lookup. Any problems are highlighted in red.
Common errors include:
Extra quotation marks. Some DNS providers add quotation marks automatically. If they're also typed in manually, the record ends up with two sets and becomes invalid.
✘ Incorrect: ""v=spf1 include:spf.protection.outlook.com ~all"" ✔ Correct: v=spf1 include:spf.protection.outlook.com ~all
Missing v=spf1. Every SPF record must begin with v=spf1. Without it, the record isn't recognized as SPF.
✘ Incorrect: include:_spf.google.com ~all ✔ Correct: v=spf1 include:_spf.google.com ~all
More than one SPF record. A domain can have only one SPF record. This often happens when a new service is added as a separate record instead of being added to the existing one.
✘ Incorrect (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. Listing many services in one record can exceed this limit.
✘ Too many lookups: 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.
Need help?
If you're not sure which step applies to you, contact our support team with the bounce message, and we'll be happy to help.
Comments
0 comments
Please sign in to leave a comment.