邮件报错信息解决send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

发送邮件:

[root@iZ23whn33jnZ log]# echo '这是邮件标题' | mail -s "这是邮件内容" [email protected]

出现异常:

[root@iZ23whn33jnZ log]# send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

查看centos中的postfix日志

more  /var/log/maillog

postfix: fatal: parameter inet_interfaces: no local interface found for ::1

vi  /etc/postfix/main.cf

扫描二维码关注公众号,回复: 2494989 查看本文章

发现配置为:

inet_interfaces = localhost

inet_protocols = all

改成:

inet_interfaces = all

inet_protocols = all

重新启动

service postfix start

OK!

猜你喜欢

转载自blog.csdn.net/hu_jinghui/article/details/81288621