二维码

sendmail错误:host name lookup failure

2959 人阅读 | 时间: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博客,欢迎分享。

评论专区
  • 昵 称必填
  • 邮 箱选填
  • 网 址选填
◎已有 0 人评论
搜索
作者介绍
30天热门
×
×
本站会员尊享VIP特权,现在就加入我们吧!登录注册×
»
会员登录
新用户注册
×
会员注册
已有账号登录
×