无法使用 Jenkins 和 SES 发送电子邮件

Unable to send email using Jenkins and SES

我是 运行 Amazon EC2 实例上的 Jenkins 版本 1.554.1
我正在使用 mailer plugin,目前正在尝试配置在失败的作业构建时发送电子邮件。
点击 "test configuration" 按钮给我 "javax.mail.AuthenticationFailedException: 501 Input line length is too long!" 错误。
附上设置截图。我也尝试检查 "Use SSL" 复选框,但结果相同。
我想念什么?

Amazon SES 需要传输层安全 (TLS) 连接。这与 SSL 连接不同。

我会查看有关设置 TLS 的实例 OS 文档。

这是关于 Jenkins and TLS

的 SO post

问题是我试图使用我的 AWS 凭证(AWS 访问密钥 ID 和秘密访问密钥)。本文档介绍了如何创建 SES 凭据:https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html?icmpid=docs_ses_console

因此,解决方案是打开 SES SMTP Settings,创建新凭据并使用它们。