# 123-reg 和 discourse 在托管的虚拟专用服务器上无法正常工作 - 所有其他方面似乎都正常

**URL:** <https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [2022 年8 月 31 日 19:33 UTC](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744 "2022-08-31T19:33:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![bc2018cb](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@bc2018cb](https://meta.discourse.org/u/bc2018cb)\
发布日期： [2022 年8 月 31 日 19:33 UTC](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744/1 "2022-08-31T19:33:16Z")

</div>

您好

我是第一次作为管理员使用 Discourse。我正在尝试设置电子邮件，但无论我怎么尝试都会失败。

我正在编辑 app.yml 然后运行 ./launcher rebuild app

我使用的是这些设置：-

```plaintext
discourse_smtp_address: "smtp.gmail.com"
discourse_smtp_port:587
discourse_smtp_domain: mydomainname.com
discourse_smtp_user_name = 'myemailaddress@gmail.com'
discourse_smtp_password = 'mypassword'
discourse_smtp_enable_start_tls = true
discourse_smtp_authentication = login

```

或者

```plaintext
DISCOURSE_SMTP_ADDRESS: smtp.123-reg.co.uk
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: myemail@mydomainname.co.uk
DISCOURSE_SMTP_AUTHENTICATION: YES
DISCOURSE_SMTP_PASSWORD: mypassword
DISCOURSE_SMTP_ENABLE_START_TLS: Yes

```

以上（以及许多）其他变体都无法正常工作。

我运行 ./discourse-doctor

我得到的是：

`net::readtimeout`

或者

关于 \_c 未知命令的某条信息

我能否请问是否有人能让我保持理智并告诉我我哪里做错了。

我可以从主机 telnet 到 smtp 服务器。

提前感谢。

---

_[View the full topic](https://meta.discourse.org/t/email-not-working-with-123-reg-and-discourse-on-hosted-virtual-private-server-all-other-aspects-appear-to/237744)._
