Zoho SMTP (SSL) 安装后无法发送邮件

您好,

我使用的是官方安装方法,但在安装后收不到邮件。

在我的 VPS 上,我测试了

echo Hello world > /tmp/mail.txt
curl -v  smtps://smtppro.zoho.com:465  \
  --mail-from $email \
  --mail-rcpt $(echo $email | cut -d ',' -f 1) \
  --user $email:"$pass" \
  --upload-file /tmp/mail.txt

我通过 curl 方法从我的 VPS 收到邮件,所以我的服务器正在发送邮件。

这是我的 app.yml 配置

  DISCOURSE_SMTP_ADDRESS: smtppro.zoho.com
  DISCOURSE_SMTP_PORT: 465
  DISCOURSE_SMTP_USER_NAME: $username
  DISCOURSE_SMTP_PASSWORD: $pass
  DISCOURSE_SMTP_ENABLE_START_TLS: false           # (optional, default true)
  DISCOURSE_SMTP_ENABLE_SSL: true
  DISCOURSE_SMTP_DOMAIN: domain    # (required by some providers)

我甚至在 smtp 测试工具上测试了我的凭据,并且它们工作正常。

这是 discourse 的日志:

tail shared/standalone/log/rails/production.log
Job exception: end of file reached

fail
start
done
start
  Rendered layouts/email_template.html.erb (Duration: 0.1ms | Allocations: 36)
Job exception: end of file reached

fail

有什么线索吗?

提前感谢,
Azamat

在多次尝试 discourse-doctor 后,我发现密码需要用“ ”括起来,并使用了 587 端口,这样就可以了。Zoho 确实可以与 discourse 协同工作。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.