修复PostFix发邮件错误: Send-Mail: Warning: Inet_protocols: IPv6 Support Is Disabled

栏目:Linux 作者:小天 点击: 6,443 次

Postfix使用过程中出现如下报错,我们将网络协议指定为IP4即可.

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

查看当前inet_protocols

# /usr/sbin/postconf | grep inet_protocols
inet_protocols = all

修改ipv4

# vim /etc/postfix/main.cf
inet_protocols = all
改为
inet_protocols = ipv4

重启postfix

附加配置

myhostname = mail.tujie.net
mydomain = tujie.net
myorigin = $mydomain
inet_interfaces = all
# 先禁用原来的inet_protocols = all
inet_protocols = ipv4
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 168.100.189.0/28, 127.0.0.0/8
relay_domains = tujie.net
home_mailbox = Maildir/

如果发邮件乱码,请修改默认的系统编码:http://www.quyu.net/info/648.html



------====== 本站公告 ======------
欢迎使用趣域网域名百科,我们将长期提供域名使用相关知识和投资域名的方法和技巧;并提供主机、服务器的解决问题和网站运营方法。