我在我的 Pi 上运行 Discourse,但是我想通过 Zoho 发送电子邮件,并且我已经应用了我的 Cloudflare 规则来允许 Zoho 使用该域进行自定义电子邮件。我确实收到一封来自 Zoho 的电子邮件到我正在尝试使用的管理员电子邮件收件箱,但它不是由 Discourse 本身发送的,而是来自 Zoho,说第三方正在使用它。
另外,当我运行 discourse doctor 时,它说发送邮件失败。
我的 containers/app.yml 看起来像这样:
DISCOURSE_DEVELOPER_EMAILS: 'forum.staff@pictostudio.co.uk'
DISCOURSE_SMTP_ADDRESS: smtp.zoho.eu
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: forum.staff@pictostudio.co.uk
DISCOURSE_SMTP_PASSWORD: "passwordhehe"
DISCOURSE_SMTP_DOMAIN: pictostudio.co.uk
DISCOURSE_NOTIFICATION_EMAIL: noreply@pictostudio.co.uk
编辑:我检查了 Discourse 日志,这是我得到的输出:
start
Render layouts/email_template.html.erb (Duration: 0.4ms | Allocation: 34)
Delivered mail biglongnumberboi@forums.pictostudio.co.uk (734.0ms)
Job exception: end of file reached
fail
我还取消注释了 app.yml 中的这一行:
- exec: rails r "SiteSetting.notification_email='noreply@example.com'"
我没有收到电子邮件,它连接了但没有发送。我有点困惑。![]()
提前感谢,
~Blood