# 未检测到入站邮件的Bcc头中的目标邮件地址

**URL:** https://meta.discourse.org/t/target-mail-address-in-bcc-header-is-not-detected-for-incoming-mail/352657
**Category:** Bug
**Tags:** email
**Created:** [2025年二月17日 07:29 UTC](https://meta.discourse.org/t/target-mail-address-in-bcc-header-is-not-detected-for-incoming-mail/352657 "2025-02-17T07:29:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_Rother](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_rother/32/423597_2.png) [@Thomas\_Rother](https://meta.discourse.org/u/Thomas_Rother)
#### Post date: [2025年二月17日 07:29 UTC](https://meta.discourse.org/t/target-mail-address-in-bcc-header-is-not-detected-for-incoming-mail/352657/1 "2025-02-17T07:29:44Z")

</div>

用例：应通过密送将传入邮件复制到 Discourse 主题中。Discourse 通过 POP3 从邮件服务器接收此邮件。

邮件服务器有一个 **recipient\_bcc\_maps** 表（请参阅 [http://www.postfix.org/postconf.5.html#recipient\_bcc\_maps](http://www.postfix.org/postconf.5.html#recipient_bcc_maps)），该表会添加一个带有 discourse+extension 目标地址的密送标头。

但是，当前 Discourse 3.5.0.beta1-dev 会因错误消息拒绝传入邮件：

`Email::Receiver::BadDestinationAddress](https://forum.netzwissen.de/admin/email/rejected)`

看起来 Discourse 只读取收件人（to）和/或抄送（cc）字段，而不读取密送（bcc）字段。因此，它无法检测到正确的 discourse+extension 地址。

另请参阅旧主题 [Email with correct incoming email address in bcc is being rejected](https://meta.discourse.org/t/email-with-correct-incoming-email-address-in-bcc-is-being-rejected/131003)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2025年二月24日 15:49 UTC](https://meta.discourse.org/t/target-mail-address-in-bcc-header-is-not-detected-for-incoming-mail/352657/2 "2025-02-24T15:49:35Z")

</div>

它_应该_根据以下链接检查 `bcc` 标头：

> <https://github.com/discourse/discourse/blob/2062e4eb90f1bbac1302939b8780744c622e0661/lib/email/receiver.rb#L298-L313>

可以私信我原始电子邮件（最好移除 PII 信息）以便我检查吗？
