最近的zabbix服务器上的sendmail服务运行正常,但发送邮件失败。
查看日志截取部分显示如下:
May 20 16:58:30 localhost sendmail[31269]: t4K8wUMm031269: from=root, size=226, class=0, nrcpts=1, msgid=<201505200858.t4K8wUMm031269@localhost.localdomain>, relay=root@localhost
May 20 16:58:30 localhost sendmail[31270]: t4K8wUaO031270: from=<root@localhost.localdomain>, size=482, class=0, nrcpts=1, msgid=<201505200858.t4K8wUMm031269@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=wonhot30.com [127.0.0.1]
May 20 16:58:30 localhost sendmail[31269]: t4K8wUMm031269: to=admin@test.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=2.0.0, stat=Sent (t4K8wUaO031270 Message accepted for delivery)
后将
/etc/mail/hosts_local_name
/etc/hosts
/etc/sysconfig/network
三者中的hostname统一后,重启sendmail服务恢复正常
本文出自 “疯子的守望” 博客,请务必保留此出处http://mrthanks.blog.51cto.com/1764573/1716472
原文地址:http://mrthanks.blog.51cto.com/1764573/1716472