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

简介:

发送邮件:

[root@iZ23whn33jnZ log]# echo '这是邮件标题' | mail -s "这是邮件内容" 9379963xx@qq.com

出现异常:

[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


发现配置为:

inet_interfaces = localhost

inet_protocols = all

改成:

inet_interfaces = all

inet_protocols = all


重新启动

service postfix start


OK!


相关文章
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
|
网络安全
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1586 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
|
8月前
|
JavaScript Android开发
net__ERR_CLEARTEXT_NOT_PERMITTED
net__ERR_CLEARTEXT_NOT_PERMITTED
120 0
Error: listen EADDRINUSE: address already in use :::5000
Error: listen EADDRINUSE: address already in use :::5000
|
网络安全 Docker 容器
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule
ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule
158 0
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
176 0
Net: Board Net Initialization Failed No ethernet found.
Net: Board Net Initialization Failed No ethernet found.
309 0
error:‘struct vm_fault‘ has no member named ‘virtual_address‘
error:‘struct vm_fault‘ has no member named ‘virtual_address‘
182 0
error:‘struct vm_fault‘ has no member named ‘virtual_address‘

热门文章

最新文章