Linux用sendmail發信失敗,提示Connection refused by [127.0.0.1]

現象:git

Linux用sendmail發信失敗,提示Connection refused by [127.0.0.1]rest

 29 14:10:44 iZ257p7xxilZ sendmail[3395]: u6T6Aiai003395: to=xx@163.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30226, relay=[127.0.0.1] [127.0.0.1], dsn=4.0
.0, stat=Deferred: Connection refused by [127.0.0.1]
Jul 29 14:13:48 iZ257p7xxilZ sendmail[3596]: u6T6DmTF003596: from=root, size=225, class="0", nrcpts=1, msgid=<201607290613.u6T6DmTF003596@git.xx.com>, relay=root@localhost
Jul 29 14:13:48 iZ257p7xxilZ sendmail[3596]: u6T6DmTF003596: to=xx@163.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30225, relay=[127.0.0.1] [127.0.0.1], dsn=4.0
.0, stat=Deferred: Connection refused by [127.0.0.1]it

問題緣由:io

有多是sendmail沒啓動class

 

解決辦法:sed

sudo chkconfig --levels 235 sendmail on
sudo service sendmail restart
相關文章
相關標籤/搜索