0

我们在 Exchange 服务器上设置了一个带有多个别名的邮箱。然后 php 脚本循环执行,查看邮件发送到的别名并确定要采取的操作。

这一切都适用于 Exchange 2003,但我们最近将系统升级到 Exchange 2010,突然 php imap 数据告诉我,无论它实际发送到哪里,它发送到的地址始终是默认地址。

通过 Outlook 打开电子邮件时,属性会显示有效的“收件人”地址。下面是 Outlook 和 PHP (imap_fetchheader)

外表

Received: from server ([server]) by
 server ([server]) with mapi id
 14.02.0247.003; Thu, 24 Jan 2013 16:17:21 +0000
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: My Name<me@domain.com>
To: Mailbox <scanned.workshop@domain.com>
Subject: -
Thread-Topic: --
Thread-Index: Ac36TYTyAEX3VodpSxiOpceRNCRERwAAMALg
Date: Thu, 24 Jan 2013 16:17:19 +0000
Message-ID: <99BC329D02E8D84C8FB1A96C34B4ADDC1900E7@server>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <99BC329D02E8D84C8FB1A96C34B4ADDC1900E7@server>
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: server
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-Originating-IP: [192.168.110.40]

PHP

MIME-Version: 1.0
Received: from server ([server]) by
 server ([server]) with mapi id
 14.02.0247.003; Thu, 24 Jan 2013 16:17:21 +0000
From: Me <me@domain.com>
To: Mailbox <scanned@domain.com>
Subject: -
Thread-Topic: -
Thread-Index: Ac36TYTyAEX3VodpSxiOpceRNCRERwAAMALg
Date: Thu, 24 Jan 2013 16:17:19 +0000
Message-ID: <99BC329D02E8D84C8FB1A96C34B4ADDC1900E7@server>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: xxxxx
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator:
Content-Type: multipart/mixed;
        boundary="_002_99BC329D02E8D84C8FB1A96C34B4ADDC1900E7WINSERV12lewisloc_"

通过的内容是有效的,但由于某种原因,升级后只有默认邮箱显示给 php,而不是电子邮件发送到的别名。

有什么想法吗?或者这是为服务器人员准备的?

4

1 回答 1

0

I finally found a way around this problem so thought i would post it for others if they have a similar problem.

Rather than using an alias on the main account as worked with legacy exchange I built a distribution group and added the account as the only member.

When php looked up the "to" address it then came through correctly

于 2013-01-25T10:17:49.037 回答