sendmail错误:host name lookup failure
3081 人阅读 | 时间:2019年02月13日 18:02
系统是CentOS的,朋友今天在uchome上群发邮件,发现发送不了
怀疑没装sedmail,postfix等,登录上去看下,发现已经装了
tail -f /var/log/maillog
发现以下错误
Aug 10 14:52:24 localhost sendmail[26178]: n756eZYk025772: to=<ooxx@qq.com>,
ctladdr=<apache@localhost.localdomain> (48/48), delay=5+00:11:49,
xdelay=00:00:00, mailer=esmtp, pri=11372540, relay=qq.com.,
dsn=4.0.0, stat=Deferred: Name server: qq.com.: host name lookup failure
cat /etc/resolv.conf
晕,竟然没有内容,问朋友拿了DNS服务器的地址,赶紧添加了
终端上ping www.baidu.com,是可以解析出来的
但mail ooxx@qq.com时,maillog依然提示以上错误
百度了下,看了几条,突然想到重启sendmail
service sendmail restart
uchome发信正常
©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任
来源:ZhiKuGroup博客,欢迎分享。
评论专区