How to send emails over IPv4 with Postfix

article1

“inet_protocols” directive is used to configure what Protocols Postfix should use to accept or make network connections. It also controls what DNS lookups Postfix will use.

On Ubuntu 16.10, we found Postfix(3.1.0) was configured to use both IPv6 and IPv4. See below :

inet_protocols = all        (enable IPv4, and IPv6 if supported)

IPv6 is always tried first and when it fails, it would try to deliver emails over IPv4. You can reconfigure it to listen on ipv4 IPs only :

vim /etc/postfix/main.cf

Replace “all” with “ipv4

inet_protocols = ipv4

Restart postfix

systemctl restart postfix.service

Comments

Popular posts from this blog

How to include Gmail's Feedback-ID header in DKIM signature

How to enable inbound TLS(starttls) in Postfix with Signed Certificate from CA(LetsEncrypt)

421 4.5.1 No more messages on this connection http://tele.dk/25153