詹金斯:avax.mail.AuthenticationFailedException:535 不正确的身份验证数据

Jenkins: avax.mail.AuthenticationFailedException: 535 Incorrect authentication data

我在 VPS (Centos6) 上安装了 Jekins 并进行了以下配置以接收电子邮件通知:

请注意,当我在本地主机上使用 jenkins 时,此配置对我有用 (windows)
当然,我在我的 Gmail 帐户
中启用了 Less secured app 选项 我在这里错过了什么?

在你的 centos vps 中,你没有 gmail 主机的中继,所以你可以尝试从你的服务器 smtp.localhost 使用端口 25 发送电子邮件通知并且没有身份验证(不要'不要忘记设置您的系统管理员电子邮件,您可以在顶部的 Jenkins Location 中找到它)