# 与其他网站的讨论，SMTP问题：到达文件结尾

**URL:** <https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893>\
**Category:** Self-hosting\
**Created:** [2020 年9 月 3 日 08:10 UTC](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893 "2020-09-03T08:10:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![salazarp](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@salazarp](https://meta.discourse.org/u/salazarp)\
发布日期： [2020 年9 月 22 日 15:51 UTC](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893/7 "2020-09-22T15:51:34Z")

</div>

> [@supermathie](#):
>
> 端口 465 是 SMTP-over-SSL，该协议已被弃用

你好 @supermathie

据我所知，根据 RFC 8314，端口 465 已被（或正在）[恢复使用](https://en.wikipedia.org/wiki/SMTPS)。我当前的电子邮件提供商（[mailfence.com](http://mailfence.com)）似乎遵循了这一建议。

> [@supermathie](#):
>
> 当你在配置中使用 465 时，Discourse 正尝试向 SSL 端口发送明文数据。

是否有任何方法可以强制在端口 465 的连接上使用 TLS？这应该能解决我的问题，因为我已通过 `swaks` 验证，使用 STARTTLS（–tls）会失败，而在容器内使用 --tls-on-connect（–tlsc）则能正常工作：

```plaintext
swaks --to user@example.com --from myuser@mailfence.com --server smtp.mailfence.com:465 --auth LOGIN --tlsc --auth-user myuser@mailfence.com

```

祝好，

---

_[View the full topic](https://meta.discourse.org/t/discourse-with-other-websites-smtp-issue-end-of-file-reached/162893)._
