# 邮件发送失败

**URL:** <https://meta.discourse.org/t/emails-failing-to-send/229673>\
**Category:** Self-hosting\
**Created:** [2022年六月11日 16:20 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673 "2022-06-11T16:20:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethhaqn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethhaqn/32/257051_2.png) [@ethhaqn](https://meta.discourse.org/u/ethhaqn)\
**Post date:** [2022年六月11日 16:20 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/1 "2022-06-11T16:20:07Z")

</div>

这是我在 [https://smtptester.kingofcode.com.br/](https://smtptester.kingofcode.com.br/) 上完美运行的配置：

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/9/5/3959eab3daf738754985e32f811385ced0117af2.png)

这是我无法正常工作的 Discourse 配置：

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/f/c/2fc9cf41a254e9faf20ab4434a4c9e283b6943d8.png)

我哪里做错了？

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年六月11日 17:36 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/2 "2022-06-11T17:36:09Z")

</div>

恐怕我没有使用过sendgrid，但您是否需要验证您的收件箱，正如第一个截图中的绿色消息所示？

我也会添加通用的 [Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326) 链接，以防您还没有看到。🙂

---

<div class="post-metadata">

**Author:** ![ethhaqn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethhaqn/32/257051_2.png) [@ethhaqn](https://meta.discourse.org/u/ethhaqn)\
**Post date:** [2022年六月11日 18:26 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/3 "2022-06-11T18:26:23Z")

</div>

您好，我认为您没有正确阅读我的帖子。第一个截图显示我的配置可以与一个名为 [https://smtptester.kingofcode.com.br/](https://smtptester.kingofcode.com.br/) 的服务一起使用，但是当使用相同的配置与 Discourse（见第二个截图）一起使用时，它却无法正常工作。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年六月11日 18:35 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/4 "2022-06-11T18:35:57Z")

</div>

> [@ethhaqn](#):
>
> 嗨，我认为您没有正确阅读我的帖子。

您说得对。我确实没有。🙂 指南中有关于 465 端口的内容，这是否更有帮助？

> [@Discourse](#):
>
> ## 电子邮件 SMTP 端口选择（使用 465？）
> 
> 在电子邮件故障排除的初始步骤中，能够[使用 ‘telnet’ 进行身份验证](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326/114)至关重要。
> 
> 端口 465（SSL 上的 SMTP）在很大程度上已被弃用，取而代之的是 25 上的 STARTTLS。当事情似乎不按预期工作时，您可能需要尝试其他端口，例如[端口 2525](https://pepipost.com/blog/25-465-587-2525-choose-the-right-smtp-port/) 或端口 587（邮件提交）。

---

<div class="post-metadata">

**Author:** ![ethhaqn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethhaqn/32/257051_2.png) [@ethhaqn](https://meta.discourse.org/u/ethhaqn)\
**Post date:** [2022年六月11日 19:24 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/5 "2022-06-11T19:24:07Z")

</div>

这有帮助，非常感谢！

---

<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:** [2022年七月11日 19:24 UTC](https://meta.discourse.org/t/emails-failing-to-send/229673/6 "2022-07-11T19:24:56Z")

</div>

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