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

Ges*_*lot 4 email amazon-ec2 amazon-web-services jenkins amazon-ses

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

Ges*_*lot 5

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

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