[Linux] mutt+msmtp傳送mail時出現瞭如下錯誤(msmtp: cannot locate host)

tolilong發表於2016-03-17
mutt+msmtp傳送mail時出現瞭如下錯誤(msmtp: cannot locate host )

msmtp: cannot locate host smtp.xxxxx.com: Name or service not known
msmtp: could not send mail (account default from /opt/msmtp/etc/msmtprc)
Error sending message, child exited 68 (Host unknown.).

在/etc/hosts中新增IP,HOSTNAME資訊,
42.xxx.xxx.29 smtp.xxxxx.com
加入如上資訊後,傳送郵件正常

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2059141/,如需轉載,請註明出處,否則將追究法律責任。

相關文章