Postfix with Gmail relay and IPv6

If you notice a message in maillog similar to the following, an easy fix (for now at least!) is to set Postfix to use IPv4:

As you can see from the error, Postfix is attempting to communicate with by using an IPv6 address, and somewhere in the network path this is failing. Since IPv4 is still supported for now and will be well into the future, the best solution at this point is to simply set Postfix to use IPv4 and restart it:

Find the line with “inet_protocols” and change it from “all” to “ipv4”:

Finally, restart Postfix:


Be the first to comment

Leave a Reply

Your email address will not be published.