bschelst/ December 30, 2016/ Linux/ 0 comments

Ipv6…nice. But using Ipv6 when sending emails to google can be a pain in the *ss.
It is possible that you get the following message in your postfix logs:

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

As workaround you can configure postfix to send emails using ipv4 when sending emails to Gmail.
In order to do that, you can perform the following steps:

#vi /etc/postfix/

Find the rule that starts with transport_maps.
Add ‘hash:/etc/postfix/transport’ to that line. If it doesn’t exist yet, you can add a new line:

transport_maps = hash:/etc/postfix/transport

Save & exit
Create a transport file:

#vi /etc/postfix/transport

Add the following line:       smtp-ipv4:

Save & exit transport file.
now create the transport file:

# postmap hash:/etc/postfix/transport

Edit the file, and add the contents below

 # vi /etc/postfix/

smtp-ipv4 unix .. .. .. .. smtp
 -o inet_protocols=ipv4

Restart postfix, and you are ready to sending emails to gmail.

# systemctl restart postfix


Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>