最近的zabbix服務器上的sendmail服務運行正常,但發送郵件失敗。
查看日誌截取部分顯示如下:
May 20 16:58:30 localhost sendmail[31269]: t4K8wUMm031269: from=root, size=226, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
May 20 16:58:30 localhost sendmail[31270]: t4K8wUaO031270: from=<[email protected]>, size=482, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=wonhot30.com [127.0.0.1]
May 20 16:58:30 localhost sendmail[31269]: t4K8wUMm031269: [email protected], 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服務恢復正常