Postfix : Fixing email sending issues to Gmail due to IPv6

If you are unable to send emails to Gmail addresses from your server and you encounter the following error, it is likely a configuration issue if you have both IPv4 and IPv6:

Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication.

To resolve this issue, it's quite simple.

1 - Connect to your server via SSH and use the following command to check the connection protocol used by Postfix:

postconf inet_protocols

If you get "inet_protocols = all", you need to modify the Postfix configuration file to use only IPv4.

2 - To do this, use the following command to edit the configuration file:

nano /etc/postfix/

3 - Then, modify the following line:

inet_protocols = all

and replace it with the following:

inet_protocols = ipv4

4 - Finally, restart Postfix using the following command:

service postfix restart

There you go, your server is now properly configured to send emails using IPv4.

Categories : Linux

By Guillaume - 05/04/2020 at 08:28 pm

Shar this article :

Similar articles

How to resolve the Possible attack detected message in ISPConfig ?

If you are managing a web server with ISPConfig, you may encounter the warning message "Possible attack detected. This action has been logged." on the web interface, making access impossible. This alert can be triggered for various reasons, but its resolution is simple. Here's how to resolve...

Automatically Start Node.js on Server Boot

If you've ever created programs using Node.js, you've probably encountered this issue: Node.js scripts don't automatically restart when you reboot your server. Therefore, you need to manually reconnect to restart them, which can be quite inconvenient. Here's a small shell script that allows you to...

How to configure an IPFailOver on Debian and ISPConfig 3

If you have a Debian server with ISPConfig 3 installed, here is how to configure one or more IP FailOver addresses. Debian Configuration First, you need to configure Debian to add your new IP address. Connect to your server and edit the file /etc/network/interfaces. If you have a Debian version...