Disable IPv6 Linux (CentOS)

If you want to disable IPv6 in linux, You just follow below step.

 

# vi /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

 

# vi /etc/postfix/main.cf

inet_protocols = ipv4

 

#sudo sysctl -p /etc/sysctl.conf

#postfix reload

 

When you see this message “postfix/pickup[xxxxx]: fatal: parameter inet_interfaces: no local interface found for ::1”

vi /etc/hosts then remove to::1″ Line and  restart postifx

 

Facebook Comments

Leave A Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.