本地邮箱未链接到混合 Exchange 中的 Office 365 邮箱

本地邮箱未链接到混合 Exchange 中的 Office 365 邮箱

我最近用 Server 2019 PDC 替换了 SBS 2011 PDC。迁移过程很顺利。几年前,我改用了 Office 365。我没有就此罢休,而是尝试从 SBS 2011 卸载 Exchange。卸载过程进行到 3/4 时失败了,我无法卸载或重新安装,所以我只是禁用了所有 Exchange 服务,然后就忘了这件事。

由于两年前我无法设置混合环境来传输邮箱,因此我备份了 Outlook 中的邮箱,切换到 Office 365,然后将它们重新导入 Outlook。

所有者讨厌 Office 365,并让我切换回 Exchange 本地部署。我在新的 Windows Server 2019 服务器上安装了 Exchange Server 2019 Standard。当我进行迁移时,当然,迁移了所有 Exchange 内容,我得到的是 Exchange 垃圾堆大火。

尽管如此,我还是能够让 Exchange 2019 正常运行(大部分情况下)。当我安装 Exchange 2019 并首次进入 EAC 时,旧 Exchange 安装中的邮箱已经设置好了。

我不想备份和恢复每个 Outlook 邮箱,因此我设置了混合 Exchange,希望能够将 Office 365 上设置的邮箱转移到我的本地 Exchange 服务器上。一切似乎都设置正确,但当我对邮箱执行“从 Exchange Online 迁移”时,它会失败并出现以下错误:

Error: MigrationPermanentException: Cannot find a recipient that has mailbox GUID ‘578c2104-a29b-474d-8891-7c5a02718b97' 
  --> Cannot find a recipient that has mailbox GUID ‘578c2104-a29b-474d-8891-7c5a02718b97'.

当我尝试使用“Set-MailUser”更改 jsmith 的内部 GUID 时,我得到了以下信息:

[PS] C:\Windows\system32>Set-MailUser -Identity jsmith -ExchangeGUID 578c2104-a29b-474d-8891-7c5a02718b97
The operation couldn't be performed because object 'jsmith' couldn't be found on 'DCSERVER02.domain.local'.
    + CategoryInfo          : NotSpecified: (:) [Set-MailUser], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=DCSERVER02,RequestId=dd81f753-8286-4b56-a7eb-91a174ec2f50,TimeStamp=4/25/2020 12
   :21:15 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 42B1821A,Microsoft.Exchange.Management.Recip
  ientTasks.SetMailUser
    + PSComputerName        : dcserver02.domain.local

从 AD 或 Office 365 删除然后重新添加用户没有任何区别。

关于如何同步 Office 365 和 Exchange 本地部署中的 GUID,您有什么想法吗?

任何帮助将不胜感激。

以下是我的一些笔记,希望对您有帮助:

所有存在的本地邮箱都是由 SBS 2011 设置的,并且被无意中迁移过来。没有任何邮件被迁移过来。我可以访问所有邮箱https://127.0.0.1/owa

所有 Office 365 邮箱均可访问,且包含 100% 的邮件。没有列出任何已链接的 Office 365 邮箱。本地 Exchange 邮箱为空。

在 ADSI Edit 中,本地邮箱位于
默认命名上下文 [MyServer.mydomain.local]-->
DC=我的域,DC=本地-->
  OU=我的企业-->
   OU=用户-->
    OU=SBS用户

并不是
默认命名上下文 [MyServer.mydomain.local]-->
DC=我的域,DC=本地-->
  OU=Microsoft Exchange

我确实尝试msExchMailboxGuid在 ADSI Edit 中更改以匹配 Office 365 邮箱。

Set-MailUser -Identity johnsmith -ExchangeGUID 578c2104-a29b-474d-8891-7c5a02718b97

结果是:

The operation couldn't be performed because object 'johnsmith' couldn't be found on 'DCSERVER02.domain.local'.

然后

Set-RemoteMailbox johnsmith -ExchangeGUID d1c1908e-96af-4c28-86db-e4b9c817b0e4

结果是:

The operation couldn't be performed because object 'johnsmith' couldn't be found on 'DCSERVER02.mydomain.local'.

然后

Enable-RemoteMailbox -Identity "[email protected]" -RemoteRoutingAddress "[email protected]"
Enable-RemoteMailbox [email protected] -RemoteRoutingAddress [email protected] -PrimarySmtpAddress [email protected]
Enable-RemoteMailbox -Identity johnsmith -RemoteRoutingAddress "[email protected]"

结果是:

This task does not support recipients of this type. The specified recipient is of type UserMailbox

答案1

Exchange 2019 中没有与 Exchange Online 中的邮箱关联的 AD 账户,这种情况我们可以使用 SMTP 匹配或硬匹配来关联它们。您可以参考以下文章:

如何使用 SMTP 匹配将本地用户帐户与 Office 365 用户帐户匹配以进行目录同步 https://support.microsoft.com/en-us/kb/2641663 Dirsync 软匹配与硬匹配 http://tctblgs.azurewebsites.net/dirsync-soft-matching-vs-hard-matching/ Azure AD Connect 中的 ImmutableID 硬匹配 https://gallery.technet.microsoft.com/office/Immutableid-Hard-Match-in-d3518b08

对于旧版 Exchange 2010,支持的方式是从控制面板卸载,如果服务器关闭,您可以从 ADSI 中删除它,然后重新运行 HCW。

相关内容