How to force Force postfix to use only IPv4 protocol?

Published on October 14, 2024 at 5:39:24 PM GMT+8 by Administrator

Steps on force postfix to use ipv4 only


How to force Force postfix to use only IPv4 protocol?
Here are the steps to Force postfix to use only IPv4 protocol - 

1. Open postfix configuration file. (main.cf)
# vi /etc/postfix/main.cf

2. Change inet_protocols value from inet_protocols = all to inet_protocols = ipv4

3. Now, restart postfix service by using below command.
#service postfix restart

Now, postfix will use only IPv4 protocol.