收到来自SMTP主机的错误问候语:192.168.xx.xx,端口号:25、回应:[EOF] -Jenkins电子邮件通知

yrefmtwq  于 2023-02-03  发布在  Jenkins
关注(0)|答案(1)|浏览(640)

无法发送电子邮件Jenkins,有时它的工作,但大多数时候我得到以下错误
这是Jenkins Jenkins-extended-notification-settings上扩展电子邮件通知的屏幕截图设置
我启用了调试模式,错误显示:从主机"192.168.xx.xx"收到错误问候语,端口:25、回应:[EOF]消息异常消息:收到来自SMTP主机的错误问候语:192.168.xx.xx,端口号:25、回应:[结束语]
SMTP主机允许在端口25上提交,不需要认证。不知道EOF是什么意思。
下面是完整的调试日志:

Started by user josh
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Email
Checking for pre-build
Executing pre-build step
Checking if email needs to be generated
No emails were triggered.
[Email] $ /bin/sh -xe /tmp/jenkins17399327384892407114.sh
+ echo Hallo
Hallo
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
Sending mail from default account using System Admin e-mail address
messageContentType = text/plain; charset=UTF-8
  Collecting change authors...
    build: 10
Adding recipients from project recipient list
Analyzing: josh@domain
Looking for: josh@domain.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: josh@domain.com
    => found type: 0
Analyzing: josh@domain.com
Looking for: josh@domain.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: josh@domain.com
    => found type: 0
Analyzing: josh@domain.com
Looking for: josh@domain.com
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: josh@domain.com
    => found type: 0
Adding recipients from trigger recipient list
Successfully created MimeMessage
Sending email to: josh@domain.com
DEBUG: getProvider() returning jakarta.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "192.168.xx.xx", port 25, isSSL false
DEBUG SMTP: EOF: [EOF]
DEBUG SMTP: got bad greeting from host "192.168.xx.xx", port: 25, response: [EOF]
MessagingException message: Got bad greeting from SMTP host: 192.168.xx.xx, port: 25, response: [EOF]

我试过的东西似乎都不起作用。不确定EOF是什么意思。

t1qtbnec

t1qtbnec1#

可能的解决方案:

  • 重新启动SMTP服务器,并确保SMTP主机可用且可访问。
  • 也可能是防火墙或网络问题阻止了对SMTP主机的访问。
  • 您可以尝试暂时禁用防火墙,看看是否可以解决问题。

相关问题