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博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-2059141/
,如需转载,请注明出处,否则将追究法律责任。