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

**URL:** <https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2024年六月30日 07:22 UTC](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341 "2024-06-30T07:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzamatShaimerden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/azamatshaimerden/32/428225_2.png) [@AzamatShaimerden](https://meta.discourse.org/u/AzamatShaimerden)\
**Post date:** [2024年六月30日 07:22 UTC](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341/1 "2024-06-30T07:22:14Z")

</div>

您好，

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

在我的 VPS 上，我测试了

```plaintext
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 配置

```plaintext
  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 的日志：

```plaintext
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

---

<div class="post-metadata">

**Author:** ![AzamatShaimerden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/azamatshaimerden/32/428225_2.png) [@AzamatShaimerden](https://meta.discourse.org/u/AzamatShaimerden)\
**Post date:** [2024年七月1日 05:50 UTC](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341/2 "2024-07-01T05:50:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2024年七月31日 05:50 UTC](https://meta.discourse.org/t/zoho-smtp-ssl-not-sending-email-after-installation/314341/3 "2024-07-31T05:50:13Z")

</div>

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