升级后出现电子邮件问题

我们在运行最新的 Discourse 升级后遇到了问题。我们的管理面板上显示了以下通知:

您的 Discourse 安装发现了一些问题:

*** 有 71 封邮件任务失败。请检查您的 app.yml 文件,确保邮件服务器设置正确。[在 Sidekiq 中查看失败的任务]。**

最近对 app.yml 文件未进行任何更改。我们重启了托管 Discourse 的服务器,并执行了命令 ./launcher rebuild app。但这并未解决问题。

我们在 Sidekiq 中看到的错误如下:

Jobs::HandledExceptionWrapper: 封装了 Net::SMTPAuthenticationError: 535 5.7.0 Mailgun 不认可您的登录名或密码

我们已使用在 app.yml 文件中设置的凭据联系了 Mailgun。使用提供的凭据,他们成功通过 telnet 测试了身份验证。他们还指出:

无法完全确定,但我的推测是 app.yml 文件可能存在某种类型限制或需要特定权限才能访问。如果无法访问该文件,可能导致身份验证信息无法传递给 SMTP 客户端,因此当尝试连接 SMTP Mailgun 时,未提供 SMTP 凭据,从而收到 535 5.7.0 Mailgun 不认可您的登录名或密码的错误。

app.yml 文件的权限设置为 -rw-r–r–。

请告知我们是否还有其他可以尝试的步骤。对此事的任何帮助我们将不胜感激。

Are there any “#” character in the password?

There are no “#” characters in the password.

Any other weird characters (like ’ or ") that might cut the password?

Is the password “bare” or inside double quotes ?

There are a few special characters but the password is enclosed in " "

Updated my app.yml file with new credentials. That seems to have done the trick.

Thanks for your help Régis!