# How to modify Smtp configuration, sending fails causing a constant freeze

**URL:** https://meta.discourse.org/t/smtp/396569
**Category:** Self-hosting
**Tags:** email
**Created:** [February 20, 2026, 4:23am UTC](https://meta.discourse.org/t/smtp/396569 "2026-02-20T04:23:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LiRen](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@LiRen](https://meta.discourse.org/u/LiRen)
#### Post date: [February 20, 2026, 4:23am UTC](https://meta.discourse.org/t/smtp/396569/1 "2026-02-20T04:23:31Z")

</div>

![Untitled Diagram(4)](https://global.discourse-cdn.com/meta/original/4X/4/5/c/45c9cd33f3973b9caa35e39262e51052887aa4f7.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2026, 1:47pm UTC](https://meta.discourse.org/t/smtp/396569/2 "2026-02-20T13:47:24Z")

</div>

Your mail server doesn’t have a valid certificate for the hostname your using to access it.

See also [Troubleshooting Outgoing Email](https://meta.discourse.org/t/troubleshooting-outgoing-email/271484)

---

<div class="post-metadata">

### Author: ![LiRen](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@LiRen](https://meta.discourse.org/u/LiRen)
#### Post date: [February 20, 2026, 2:06pm UTC](https://meta.discourse.org/t/smtp/396569/3 "2026-02-20T14:06:54Z")

</div>

What does this mean? My domain purchased an SSL certificate.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2026, 3:47pm UTC](https://meta.discourse.org/t/smtp/396569/4 "2026-02-20T15:47:11Z")

</div>

The certificate at the smtp server doesn’t match the name you’re accessing it with.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [February 20, 2026, 7:35pm UTC](https://meta.discourse.org/t/smtp/396569/5 "2026-02-20T19:35:52Z")

</div>

> [@pfaffman](#):
>
> Your mail server doesn’t have a valid certificate

I doubt this is the case - I’d expect an explicit error complaining about this, not “end of file” which usually means premature termination of the connection by the other side.

Give that [foxmail.com](http://foxmail.com) mail is handled by [qq.com](http://qq.com), I suspect @LiRen is using qq as their outgoing mail server and the problem is:

> [@部署的Discourse用户注册且已经激活，但是邮箱一直发送激活邮件](https://meta.discourse.org/t/discourse/393612/5):
>
> It appears that the QQ mail server hangs up the connection prior to transmitting the acceptance of the message, so Discourse thinks it hasn’t been accepted when in reality it has.
