配置 Exchange Online 公用文件夹以实现混合部署Configure Exchange Online public folders for a hybrid deployment

摘要:有关允许本地 Exchange 2013 用户访问 Exchange Online 中的公用文件夹的说明。Summary: Instructions for enabling on-premises Exchange 2013 users to access public folders in Exchange Online.

在混合部署中,您的用户可以位于 Exchange Online 中,或内部部署内,或同时位于两者中,并且您的公用文件夹位于 Exchange Online 中或内部部署内。有时,您的联机用户可能需要访问 Exchange Server 2013 内部部署环境中的公用文件夹。同样,Exchange 2013 用户可能需要访问 Office 365 或 Exchange Online 中的公用文件夹。In a hybrid deployment, your users can be in Exchange Online, on-premises, or both, and your public folders are either in Exchange Online or on-premises. Sometimes your online users may need to access public folders in your Exchange Server 2013 on-premises environment. Similarly, Exchange 2013 users may need to access public folders in Office 365 or Exchange Online.

本文介绍了如何允许 Exchange 2013 本地环境中的用户访问 Exchange Online/Office 365 公用文件夹。若要允许 Exchange Online/Office 365 用户访问本地 Exchange 2013 公用文件夹,请参阅针对混合部署配置 Exchange 2013 公用文件夹This article describes how to enable users in your Exchange 2013 on-premises environment to access Exchange Online/Office 365 public folders. To enable Exchange Online/Office 365 users to access on-premises Exchange 2013 public folders, see Configure Exchange 2013 public folders for a hybrid deployment.

备注

如果您有 Exchange 2010 公用文件夹,请参阅配置旧版内部部署的混合部署公用文件夹If you have Exchange 2010 public folders, see Configure legacy on-premises public folders for a hybrid deployment.

在开始之前,您需要知道什么?What do you need to know before you begin?

  1. 这些说明假定您已经使用混合配置向导对您的内部部署和 Exchange Online 环境进行配置和同步,并且假定用于多数用户的自动发现的 DNS 记录可以引用一个内部部署终结点。有关详细信息,请参阅Hybrid Configuration WizardThese instructions assume that you have used the Hybrid Configuration Wizard to configure and synchronize your on-premises and Exchange Online environments and that the DNS records used for most users' AutoDiscover references an on-premises end-point. For more information, see Hybrid Configuration Wizard.

  2. 这些说明假定 Outlook 无处不在已启用,并且在内部部署 Exchange Server 上正常运行。有关如何启用 Outlook 无处不在的信息,请参阅 Outlook 无处不在These instructions assume that Outlook Anywhere is enabled and functional on the on-premises Exchange server(s). For information on how to enable Outlook Anywhere, see Outlook Anywhere.

  3. 对 Exchange 与 Office 365 的混合部署实施公用文件夹共存可能需要在导入过程中解决冲突。冲突可能是由于分配给启用邮件的公用文件夹的不可路由电子邮件地址,或者与 Office 365 中的其他用户和组冲突及其他属性所致。Implementing public folder coexistence for a hybrid deployment of Exchange with Office 365 may require you to fix conflicts during the import procedure. Conflicts can happen due to non-routable email address assigned to mail enabled public folders, conflicts with other users and groups in Office 365, and other attributes.

  4. 为了能够跨界访问公用文件夹,用户必须将其 Outlook 客户端升级至 2012 年 11 月的 Outlook 公共更新或更高版本。In order to access public folders cross-premises, users must upgrade their Outlook clients to the November 2012 Outlook public update or later.

  5. 若要下载 2012 年 11 月发布的适用于 Outlook 2010 的 Outlook 更新程序,请参阅 Microsoft Outlook 2010 更新 (KB2687623) 32 位版本To download the November 2012 Outlook update for Outlook 2010, see Update for Microsoft Outlook 2010 (KB2687623) 32-Bit Edition.

  6. 若要下载 2012 年 11 月发布的适用于 Outlook 2007 的 Outlook 更新程序,请参阅 Microsoft Office Outlook 2007 更新 (KB2687404)To download the November 2012 Outlook Update for Outlook 2007, see Update for Microsoft Office Outlook 2007 (KB2687404).

  7. Outlook 2011 for Mac 和 Outlook for Mac for Office 365 不受跨界公用文件夹的支持。用户必须与公用文件夹位于相同位置,才能通过 Outlook 2011 for Mac 或 Outlook for Mac for Office 365 访问这些公用文件夹。此外,使用 Exchange Online 邮箱的用户将无法使用 Outlook Web App 访问本地公用文件夹。Outlook 2011 for Mac and Outlook for Mac for Office 365 are not supported for cross-premises public folders. Users must be in the same location as the public folders to access them with Outlook 2011 for Mac or Outlook for Mac for Office 365. In addition, users whose mailboxes are in Exchange Online won't be able to access on-premises public folders using Outlook Web App.

    备注

    Outlook 2016 for Mac 支持跨界部署公用文件夹。如果组织中的客户使用 Outlook 2016 for Mac,请确保他们安装了 2016 年 4 月发布的更新程序。否则,这些用户将无法访问共存或混合拓扑中的公用文件夹。有关详细信息,请参阅通过 Outlook 2016 for Mac 访问公用文件夹Outlook 2016 for Mac is supported for cross-premises public folders. If clients in your organization use Outlook 2016 for Mac, make sure they have installed the April 2016 update. Otherwise, those users will not be able to access public folders in a co-existence or hybrid topology. For more information, see Accessing public folders with Outlook 2016 for Mac.

步骤 1:下载脚本Step 1: Download the scripts

  1. Mail-enabled Public Folders - directory sync from EXO to On-prem script(启用邮件的公用文件夹 - 将目录从 EXO 同步到本地的脚本)下载以下文件。Download the following files from Mail-enabled Public Folders - directory sync from EXO to On-prem script.

    • Import-PublicFolderMailboxes.ps1

    • ImportPublicFolderMailboxes.strings.psd1

    • Sync-MailPublicFoldersCloudToOnprem.ps1

    • Sync-MailPublicFoldersCloudToOnprem.strings.psd1

  2. 将这些文件保存到将要运行 PowerShell 的本地计算机中。例如,C:\PFScripts。Save the files to the local computer on which you'll be running PowerShell. For example, C:\PFScripts.

步骤 2:配置目录同步Step 2: Configure directory synchronization

运行脚本 Sync-MailPublicFoldersCloudToOnprem.ps1 会在 Exchange Online 和 Exchange 2013 本地环境之间同步启用邮件的公用文件夹。必须在云中重新创建分配给启用邮件的公用文件夹的特殊权限,因为混合部署方案不支持跨界部署权限。有关详细信息,请参阅 Exchange Server 2013 混合部署Running the script Sync-MailPublicFoldersCloudToOnprem.ps1 will synchronize the mail-enabled public folders between Exchange Online and your Exchange 2013 on-premises environment. Special permissions assigned to mail-enabled public folders will need to be recreated in the cloud since cross-premise permissions are not supported in Hybrid Deployment scenarios. For more information, see Exchange Server 2013 Hybrid Deployment.

备注

已同步的启用邮件的公用文件夹将显示为邮件联系人对象,用于处理邮件流,并且不会在 Exchange 管理员中心中显示。请参阅 Get-MailPublicFolder 命令。要重新创建云中的 SendAs 权限,请使用 Add-RecipientPermission 命令。Synchronized mail-enabled public folders will appear as mail contact objects for mail flow purposes and will not be viewable in the Exchange Admin Center. See the Get-MailPublicFolder command. To recreate the SendAs permissions in the cloud, use the Add-RecipientPermission command.

  1. 在 Exchange 2013 服务器上,运行以下命令,将启用邮件的公用文件夹从 Exchange Online/Office 365 同步到本地 Active Directory。On the Exchange 2013 server, run the following command to synchronize mail-enabled public folders from Exchange Online/Office 365 to your local on-premises Active Directory.

    Sync-MailPublicFoldersCloudToOnprem.ps1 -Credential (Get-Credential)
    

    其中, Credential 是你的 Office 365 用户名和密码。Where Credential is your Office 365 user name and password.

备注

我们建议每天运行一次这段脚本,以同步启用邮件的公用文件夹。We recommend that you run this script daily to synchronize your mail-enabled public folders.

第 3 步:将本地用户配置为访问 Exchange Online 公用文件夹Step 3: Configure on-premises users to access Exchange Online public folders

此过程的最后一步是将 Exchange 2013 本地组织配置为允许访问 Exchange Online 公用文件夹。The final step in this procedure is to configure the Exchange 2013 on-premises organization to allow access to Exchange Online public folders.

运行脚本 Import-PublicFolderMailboxes.ps1 会以启用邮件的用户身份将公用文件夹邮箱对象从云中导入本地环境。此脚本还会将导入的对象配置为远程公用文件夹邮箱。Running the script Import-PublicFolderMailboxes.ps1 will import public folder mailbox objects from the cloud as mail-enabled users to your on-premises environment. The script will also configure the imported objects as remote public folder mailboxes.

  1. 在 Exchange 2013 服务器上,运行以下命令,将公用文件夹邮箱对象从云中导入本地 Active Directory。On the Exchange 2013 server, run the following command to import public folder mailbox objects from the cloud to your on-premises Active Directory.

    Import-PublicFolderMailboxes.ps1 -Credential (Get-Credential)
    

    其中, Credential 是你的 Office 365 用户名和密码。Where Credential is your Office 365 user name and password.

    备注

    我们建议每天运行一次这段脚本,以导入公用文件夹邮箱对象,因为只要公用文件夹邮箱达到阈值容量,就会自动拆分为多个新邮箱。因此,你总是要确保从云中导入的是最新公用文件夹邮箱。We recommend that you run this script daily to import your public folder mailbox objects because whenever public folder mailboxes reach their threshold capacity, they automatically split into multiple new mailboxes. Therefore, you always want to ensure you have imported the most recent public folder mailboxes from the cloud.

  2. 允许 Exchange 2013 本地组织访问 Exchange Online 公用文件夹。Enable the Exchange 2013 on-premises organization to access the Exchange Online public folders.

    Set-OrganizationConfig -PublicFoldersEnabled Remote
    

备注

您必须等待 ActiveDirectory 同步完成才能查看更改。此过程可能需要 3 个小时才能完成。如果您不想等待每隔三小时进行一次定期同步,可以随时强制执行目录同步。有关强制执行目录同步的详细步骤,请参阅强制执行目录同步You must wait until ActiveDirectory synchronization has completed to see the changes. This process can take up to 3 hours to complete. If you don't want to wait for the recurring synchronizations that occur every three hours, you can force directory synchronization at any time. For detailed steps to do force directory synchronization, see Force directory synchronization.

我如何知道这有效?How do I know this worked?

  1. 登录到位于 Exchange Online 内的用户的 Outlook,并执行以下公用文件夹测试:Log on to Outlook for a user who is in Exchange Online and perform the following public folder tests:

    • 查看层次结构。View the hierarchy.

    • 检查权限Check permissions

    • 创建和删除公用文件夹。Create and delete public folders.

    • 发布内容到公用文件夹并从公用文件夹删除内容。Post content to and delete content from a public folder.