# 使用本地邮件服务器/sendmail 发送出站邮件？

**URL:** <https://meta.discourse.org/t/use-local-email-server-sendmail-for-outgoing-emails/381354>\
**Category:** Self-hosting\
**Tags:** email, hosting\
**Created:** [2025年九月2日 18:55 UTC](https://meta.discourse.org/t/use-local-email-server-sendmail-for-outgoing-emails/381354 "2025-09-02T18:55:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![MichaIng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaing/32/251089_2.png) [@MichaIng](https://meta.discourse.org/u/MichaIng)\
**Post date:** [2025年九月22日 21:37 UTC](https://meta.discourse.org/t/use-local-email-server-sendmail-for-outgoing-emails/381354/7 "2025-09-22T21:37:28Z")

</div>

我不确定 Discourse 与系统是否可以另外托管电子邮件服务器有什么关系？当然，除了这在理论上为发送电子邮件打开了另一条途径这一事实之外。

然而，对于接收电子邮件（另一个话题），它有影响，因为你不能托管电子邮件接收器容器，至少不能直接在端口 25 上收听。但是，直接使用 Discourse 的电子邮件接收器 API 在 Postfix 配置中只需 2-3 行即可完成：[Is there a way to only IMAP polling for incoming emails - #2 by MichaIng](https://meta.discourse.org/t/is-there-a-way-to-only-imap-polling-for-incoming-emails/381571/2?u=michaing)

但我同意，如上所述，正确设置电子邮件服务器并非易事。但学习起来非常有趣 🙂。

---

_[View the full topic](https://meta.discourse.org/t/use-local-email-server-sendmail-for-outgoing-emails/381354)._
