Articles in this section

Unable to receive mail from external domain: 5.7.23 SPF validation failed

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Unable to receive an email message from an external domain example.com to a domain hosted in Plesk with the following message in /var/log/maillog file:

    CONFIG_TEXT: vps postfix/cleanup[13378]: 05E831D9B: milter-reject: END-OF-MESSAGE from mail.example.com[203.0.113.2]: 5.7.23 SPF validation failed.; from=johndoe@example.com to=janedoe@testdomain.tld

  • SPF checking mode in Plesk > Tools & Settings > Mail Server Settings is set to Reject mail when SPF does not resolve to "pass".

Cause

The SPF check for example.com fails because of an incorrect or nonexistent SPF record on the sender side.

Resolution

Ask the sender to correct the SPF settings for his domain or apply one of the following workarounds:

Change SPF checking mode
  1. Log in to Plesk.
  2. Go to Tools & Settings > Mail Server Settings.
  3. Change SPF checking mode to less strict, for example, "Only create Received-SPF headers, never block".
  4. Scroll down and press the OK button to apply the changes. 
Add the sender domain to the exceptions
  1. Log in to Plesk.
  2. Go to Tools & Settings > Mail Server Settings.
  3. Add example.com to SPF local rules  and SPF guess rules fields as described here.

    Note: Please keep in mind that if the sender domain doesn't have the TXT SPF record at all then the guess rules will be required as SPF local rules are getting concatenated with the existing SPF record and can only take effect if there is an existing SPF policy present for the sender domain.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.