“IPv6 support is disabled” warnings

 

最近在使用国内的服务器的时候经常会发现这个问题

其实问题很简单,就是默认来说,国内的服务器没有IPv6, 而postfix 的默认配置文件是有Ipv6的,因为就会出现下面的warning:

send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only

 

知道问题的出处,解决就简单多了,默认让postfix 只monitor IPv4就可以了

编辑/etc/postfix/main.cf

inet_protocols = all

改成

inet_protocols = ipv4

就完美解决了

Leave a Reply

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>

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