Zenoss 中的 SMTP 连接问题(“连接意外关闭”)

Zenoss 中的 SMTP 连接问题(“连接意外关闭”)

我使用 Zenoss 进行监控。我已经使用它的邮件服务很长时间了。突然我的 zenoss 邮件服务停止并开始显示<class 'smtplib.SMTPServerDisconnected'> - Connection unexpectedly closed并且没有邮件发出。当我通过 CLI 运行邮件命令时,邮件会发送到电子邮件地址。执行邮件程序的 zenoss 脚本时将无法工作并抛出如上所示的错误。

我的服务器是 RHEL 5.3 x86_64,带有 Zenoss 4.2 和 sendmail 电子邮件服务器。

Sendmail 日志和 Zenoss 电子邮件配置

Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: lost input channel from localhost.localdomain [127.0.0.1] to MTA after mail
Apr 11 07:14:30 XXXhostnameXX sendmail[13582]: r3BBDgia013582: from=<[email protected]>, size=146972, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

Zenoss 遵循基本的 smtp 连接,因为电子邮件是由本地 sendmail 服务器(localhost)在端口 25 中完成的。未使用特定配置。

答案1

这可能是发出“MAIL FROM:”后客户端超时。
会心精确的回复延迟的值应该提供有价值的提示。

您能以详细模式发送测试消息吗? [它应该提供 SMTP 会话记录]

#!/bin/sh
# -v - be verbose (provide SMTP transcript)
# -i - 'single dot' line is NOT end of email
# -t - get recipients list from email headers
# -f - set envelope sender email address (for "MAIL FROM:" in SMTP session)
/usr/sbin/sendmail -v -i -t [email protected] <<END
Subject: test
From: [email protected]
to: [email protected]

test
END

相关内容