# 邮件系统无法工作，尽管我用telnet和其他平台测试过

**URL:** <https://meta.discourse.org/t/mail-system-not-working-even-thought-i-tested-it-with-telnet-and-other-platforms/163089>\
**Category:** Self-hosting\
**Created:** [2020 年9 月 5 日 00:54 UTC](https://meta.discourse.org/t/mail-system-not-working-even-thought-i-tested-it-with-telnet-and-other-platforms/163089 "2020-09-05T00:54:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![silverdr](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@silverdr](https://meta.discourse.org/u/silverdr)\
发布日期： [2021 年6 月 13 日 23:06 UTC](https://meta.discourse.org/t/mail-system-not-working-even-thought-i-tested-it-with-telnet-and-other-platforms/163089/3 "2021-06-13T23:06:21Z")

</div>

我遇到了类似的情况。已安装，网站有响应，但注册邮件从未收到。在 Discourse 服务器内部、使用相同的配置/凭据从应用容器中测试发送邮件 = 成功，测试邮件已正确发送并接收。运行 `doctor` 命令后显示：

```plaintext
正在向 my_correct_user@my_correct_domain 发送邮件...
正在使用 correct_smtp_server_name:465、用户名 correct_smpt_user@correct_sender_domain 以及 plain 认证方式，测试向 my_correct_user@my_correct_domain 发送邮件。
======================================== 错误 ========================================
                                    意外错误

Net::ReadTimeout

====================================== 解决方案 =======================================
这不是一个常见错误，目前没有推荐的解决方案！
[....]

```

我尝试将端口切换到 587，此时日志中不再出现 `Net::ReadTimeout`，但邮件仍然无法发送。接下来该怎么办？`DISCOURSE_SMTP_DOMAIN` 的正确内容应该是什么？这是目前我唯一怀疑的地方。

---

_[View the full topic](https://meta.discourse.org/t/mail-system-not-working-even-thought-i-tested-it-with-telnet-and-other-platforms/163089)._
