1. 程式人生 > >郵件報錯資訊解決send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

郵件報錯資訊解決send-mail: fatal: parameter inet_interfaces: no local interface found for ::1

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

傳送郵件:

[[email protected] log]# echo '這是郵件標題' | mail -s "這是郵件內容" [email protected]

出現異常:

[[email protected] 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!