# Email-in 与 Multisite 导致目标地址错误

**URL:** <https://meta.discourse.org/t/email-in-with-multisite-gives-bad-destination-address/286950>\
**Category:** Support\
**Tags:** email, multisite\
**Created:** [2023年十一月29日 10:24 UTC](https://meta.discourse.org/t/email-in-with-multisite-gives-bad-destination-address/286950 "2023-11-29T10:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [2023年十一月29日 10:24 UTC](https://meta.discourse.org/t/email-in-with-multisite-gives-bad-destination-address/286950/1 "2023-11-29T10:24:30Z")

</div>

我有一个多站点安装，其中电子邮件设置为在二级站点的一个类别上。

通常电子邮件会发送到该类别，但现在别名和转发地址在主实例上都会被\_拒绝\_。别名或转发地址的邮件头除了 SMTP 中继外没有显示任何差异，并且两者都最终会陷入 `Email::Receiver::BadDestinationAddress` 的情况。

下面是一个收到的电子邮件示例：

> **email headers**
>
> ```plaintext
> Return-Path: <how@zoethical.com>
> Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227])
> by spool.mail.gandi.net (Postfix) with ESMTPS id 242347803E6
> for <l-congo-eteint@zoethical.com>; Wed, 29 Nov 2023 09:36:53 +0000
> Received: by mail.gandi.net (Postfix) with ESMTPSA id 009842000B
> for <l-congo-eteint@zoethical.com>; Wed, 29 Nov 2023 09:36:52 +0000
> Date: Wed, 29 Nov 2023 10:36:52 +0100
> From: hellekin <how@zoethical.com>
> To: l-congo-eteint@zoethical.com
> Message-ID: <77e5de0c-aee9-4bb2-ad21-9ce80f1f4261@zoethical.com>
> Subject: re test
> Mime-Version: 1.0
> Content-Type: text/plain;
> charset=UTF-8;
> format=flowed
> Content-Transfer-Encoding: 7bit
> Delivered-To: discourse@zoethical.com
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoethical.com; s=gm1;
> t=1701250613;
> h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
> to:to:cc:mime-version:mime-version:content-type:content-type:
> content-transfer-encoding:content-transfer-encoding;
> bh=5WhFPtf1bSv52DEdVeCHh9wP49G7aODMQQUgRsO0pO4=;
> b=VM7zTdKjXI81k29lV207guQiDqm0l6gQuXWhKM9mBbQPHa3rm8pqsqtcn3NSVIgJA6RJ/M
> GAaBwfhvjgjboQ2nKG+79JaBXEL0re/ecSgz9R8pkWVHG89mBs1WyCqZnL/oaUdlNFzMW+
> KVd9RQjehFuF11/anSn2VgxWKoIcjfhaUpiL3rXehGY9N8QeoleN7RSOJi2iq6XDzoJ9ZE
> EcPbpzDsjmQFHCSsEn4vFdBoYHMTU0pMgV4pxZbwFLZ5Y49QG9lBEoQdoeD9PDAZUQ6kwt
> Dts6vRXbN1GT2kTM57rXdcem9GA8LbfYOkP1FoXv8/Fn/LwdbLh0f+VrDr4DVA==
> User-Agent: Mozilla Thunderbird
> Content-Language: en-US, fr, fr-FR, fr-BE
> X-GND-Sasl: how@zoethical.com
> X-GND-Status: LEGIT
> Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=zoethical.com
> header.s=gm1 header.b=VM7zTdKj; dmarc=none; spf=pass (spool.mail.gandi.net:
> domain of how@zoethical.com designates 2001:4b98:dc4:8::227 as permitted
> sender) smtp.mailfrom=how@zoethical.com
> 
> ```
