Send-Mail: Warning: Inet_protocols: IPv6 Support Is Disabled

郭恩洲_OSC博客 发布于 2015/05/15 13:42
阅读 947
收藏 0

我在测试这段发邮件代码时:http://www.oschina.net/code/snippet_12_47861 出现下面错误:



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


加载中
0
郭恩洲_OSC博客
郭恩洲_OSC博客

出现这个问题是Postfix使用过程中出现如下报错,我们将网络协议指定为IP4即可。

1.修改postfix main.cnf配置文件

   vi /etc/postfix/main.cnf

   find inet_protocols

   将inet_protocols = all  改为  inet_protocols=ipv4

 2.保存重启postfix

    /etc/init.d/postfix restart

返回顶部
顶部