# 为自托管站点配置带 Mail-Receiver 的直接投递入站邮件

**URL:** <https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487>\
**Category:** Self-Hosting\
**Tags:** email, how-to, advanced-setup, mail-receiver\
**Created:** [2016年八月31日 10:58 UTC](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487 "2016-08-31T10:58:09Z")\
**Posts on this page:** 1\
**Showing post:** 483

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [2024年三月20日 22:09 UTC](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487/483 "2024-03-20T22:09:45Z")

</div>

> [@Carleas](#):
>
> 我猜他们发送出站邮件时会设置退信路径？

是的，他们可能在出站邮件通过其服务器时重写了退信路径（也称为“信封发件人”）。_可能_有一个设置可以关闭它，但我没用过 mailgun，所以不能确定（也不知道该设置在哪里）。

> [@Carleas](#):
>
> 收件人地址被拒绝：内部错误，API 请求失败

好的，_那个_是 mail-receiver 和 Discourse 之间的错误。日志中应该在出现该错误之前不久有一行以“Failed to GET smtp\_should\_reject answer”开头，它会告诉你更多关于什么失败了以及为什么失败的信息，并且应该与 Discourse 日志中的某种错误消息相关联。

---

_[View the full topic](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487)._
