warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol

昨日(2017-04-29)我使用阿里云幸运卷新购的一台阿里云ECS sendmail发邮件遇到问题:warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol,warning: inet_protocols: configuring for IPv4 support only

warning: inet_protocols
warning: inet_protocols

解决方法:

  1. 修改# /etc/postfix/main.cf 这个文件
  2. 修改内容: 把inet_protocols = all   修改为inet_protocols = ipv4
  3. 报存退出 wq!
  4. 重新启动# /etc/init.d/postfix restart使修改生效