Plesk

Emails can not be delivered over IPv6 addresses on Plesk with Digital Ocean

Symptoms

Cause

SMTP traffic over IPv6 is blocked at the network level on the Digital Ocean side: https://www.digitalocean.com/docs/networking/ipv6/.

Resolution

As a workaround, the precedence over the getaddrinfo calls can be modified to prioritize IPv4 over IPv6:

  1. Connect to the server via SSH.

  2. Open the /etc/gai.conf file in any text editor, for example, in the vi text editor:

    # vi /etc/gai.conf

For Debian/Ubuntu

  1. Remove the # symbol from the line below:
  • Before:

    # precedence ::ffff:0:0/96 100

  • After:

    precedence ::ffff:0:0/96 100

  1. Save the changes and close the file.

For RHEL/Centos

  1. Add the line below to the /etc/gai.conf file:

    precedence ::ffff:0:0/96 100

  2. Save changes and close the file.