最近的zabbix服务器上的sendmail服务运行正常,但发送邮件失败。
查看日志截取部分显示如下:
May 20 16:58:30 localhost sendmail[31269]: t4K8wUMm031269: from=root, size=226, class=0, nrcpts=1, msgid=<[email protected]>, [email protected]
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服务恢复正常
时间: 2024-11-05 15:47:11