1. 程式人生 > >sendmail: fatal: parameter inet_interfaces: no local interface found for ::1

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

使用gitlab測試郵件通知的時候報這個錯

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

網上搜索要修改這個檔案

vim /etc/postfix/main.cf

把下面兩行

inet_interfaces = localhost

inet_protocols = all

改為

inet_interfaces = all

inet_protocols = all

再重啟postfix

service postfix start

錯誤解決,記錄一下