Linux:inet_protocols:禁用IPv6支持:地址族不支持协议
时间:2020-02-23 14:39:49 来源:igfitidea点击:
postqueue: warning: inet_protocols: IPv6 support is disabled: Address family supported by protocol
启动或者重新启动Postfix守护程序时,如何在控制台上获得这些输出警告?
postqueue: warning: inet_protocols: IPv6 support is disabled: Address family 不支持 by protocol postqueue: warning: inet_protocols: configuring for IPv4 support only
这意味着Postfix实际上已配置为在IPv4和IPv6协议上侦听,但是在该服务器上没有配置任何IPv6地址。
要解决此问题,只需告诉Postfix严格使用IPv4。
1.编辑主要的Postfix配置:
/etc/postfix/main.cf
2.找到" inet_protocols"语句:
# Enable IPv4, and IPv6 if supported inet_protocols = all
3.如下将" all"更改为" ipv4":
inet_protocols = ipv4
4.重新启动Postfix:
service postfix restart