# 为自托管站点配置带 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:** 473

<div class="post-metadata">

**Author:** ![Carleas](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Carleas](https://meta.discourse.org/u/Carleas)\
**Post date:** [2024年三月18日 18:16 UTC](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487/473 "2024-03-18T18:16:26Z")

</div>

据我所知，我的设置是正确的，但 Discourse 中没有任何电子邮件记录。

电子邮件显示在日志中，如下所示：

```plaintext
Mar 18 17:20:41 [myserver]-mail-receiver postfix/smtpd[122]: NOQUEUE: reject: RCPT from [XXX].google.com[XXX.XX.XXX.XXX]: 554 5.7.1 <test004@www.[mysite].com>: Recipient address rejected: Mail to this address is not accepted. Check the address and try to send again?; from=<[sender]@gmail.com> to=<test004@www.[mysite].com> proto=ESMTP helo=<[XXX].google.com>
Mar 18 17:20:42 [myserver]-mail-receiver postfix/smtpd[122]: disconnect from [XXX].google.com[XXX.XX.XXX.XXX] ehlo=2 starttls=1 mail=1 rcpt=0/1 bdat=0/1 quit=1 commands=5/7

```

并且我也会在发送地址收到拒收通知。队列中没有任何残留，日志中也没有任何跟踪错误。我三番五次地检查了 URL 是否全部匹配，并且 API 设置页面显示正在使用该密钥。但是管理员面板中的拒收邮件列表仍然是空的。

有什么建议吗？

---

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