Exchange Server 中的通讯簿策略的过程Procedures for address book policies in Exchange Server

通过通讯簿策略(Abp),您可以将用户划分到特定组中,以便在 Outlook 和 web 上的 Outlook (以前称为 Outlook Web App)中为他们提供自定义的全局地址列表(Gal)。Address book policies (ABPs) allow you to segment users into specific groups to give them customized global address lists (GALs) in Outlook and Outlook on the web (formerly known as Outlook Web App). 有关 Abp 的详细信息,请参阅Exchange Server 中的通讯簿策略For more information about ABPs, see Address book policies in Exchange Server.

注意:实现 ABP 是需要进行规划的多步骤过程。Note: Implementing an ABP is a multi-step process that requires planning. 有关详细信息,请参阅方案:在 Exchange Server 中部署通讯簿策略For more information, see Scenario: Deploying address book policies in Exchange Server.

开始前,有必要了解什么?What do you need to know before you begin?

使用 Exchange 命令行管理程序查看通讯簿策略Use the Exchange Management Shell to view address book policies

若要查看 Abp,请使用以下语法:To view ABPs, use this syntax:

Get-AddressBookPolicy [-Identity <ABPIdentity>]

本示例返回组织中所有 Abp 的摘要列表:This example returns a summary list of all ABPs in the organization:

Get-AddressBookPolicy

此示例返回名为 All Fabrikam ABP 的 ABP 的详细信息。This example returns detailed information for the ABP named All Fabrikam ABP.

Get-AddressBookPolicy -Identity "All Fabrikam ABP" | Format-List

有关语法和参数的详细信息,请参阅AddressBookPolicyFor detailed syntax and parameter information, see Get-AddressBookPolicy.

使用 Exchange 命令行管理程序创建通讯簿策略Use the Exchange Management Shell to create address book policies

ABP 需要一个全局地址列表(GAL)、一个脱机通讯簿(OAB)、一个会议室列表以及一个或多个地址列表。An ABP requires one global address list (GAL), one offline address book (OAB), one room list, and one or more address lists. 若要查看可用的对象,请使用update-globaladdresslistmove-offlineaddressbookAddressList cmdlet。To view the available objects, use the Get-GlobalAddressList, Get-OfflineAddressBook, and Get-AddressList cmdlets.

注意: ABP 所需的会议室列表是一个用于指定聊天室(包含筛选器RecipientDisplayType -eq 'ConferenceRoomMailbox')的地址列表。Note: The room list that's required for an ABP is an address list that specifies rooms (contains the filter RecipientDisplayType -eq 'ConferenceRoomMailbox'). 它不是使用_RoomList_开关在新的-new-distributiongroupnew-distributiongroup cmdlet 上创建的会议室查找器通讯组。It's not a room finder distribution group that you create with the RoomList switch on the New-DistributionGroup or Set-DistributionGroup cmdlets.

若要创建 ABP,请使用以下语法:To create an ABP, use this syntax:

New-AddressBookPolicy -Name "<Unique Name>" -GlobalAddressList "<GAL>" -OfflineAddressBook "<OAB>" -RoomList "<RoomList>" -AddressLists "<AddressList1>","<AddressList2>"...

此示例使用以下设置创建名为 All Fabrikam ABP 的 ABP:This example creates an ABP named All Fabrikam ABP with the these settings:

  • GAL:All FabrikamGAL: All Fabrikam

  • OAB:Fabrikam-All-OABOAB: Fabrikam-All-OAB

  • 会议室列表:All Fabrikam RoomsRoom list: All Fabrikam Rooms

  • 地址列表:所有 fabrikam 邮箱、所有 fabrikam Dl 和所有 fabrikam 联系人Address lists: All Fabrikam Mailboxes, All Fabrikam DLs, and All Fabrikam Contacts

New-AddressBookPolicy -Name "All Fabrikam ABP" -GlobalAddressList "\All Fabrikam" -OfflineAddressBook \Fabrikam-All-OAB -RoomList "\All Fabrikam Rooms" -AddressLists "\All Fabrikam Mailboxes","\All Fabrikam DLs","\All Fabrikam Contacts"

有关语法和参数的详细信息,请参阅New-AddressBookPolicyFor detailed syntax and parameter information, see New-AddressBookPolicy.

如何判断是否生效?How do you know this worked?

若要验证是否成功创建了 ABP,请使用以下过程之一:To verify that you've successfully created an ABP, use either of these procedures:

  • 在 Exchange 命令行管理程序中运行以下命令,以验证是否列出了 ABP:Run this command in the Exchange Management Shell to verify that the ABP is listed:

    Get-AddressBookPolicy
    
  • 将_ <ABPIdentity> _替换为 ABP 的名称,并在 Exchange 命令行管理程序中运行以下命令,以验证属性值:Replace <ABPIdentity> with the name of the ABP, and run this command in the Exchange Management Shell to verify the property values:

    Get-AddressBookPolicy -Identity "<ABPIdentity>" | Format-List
    

使用 Exchange 命令行管理程序修改通讯簿策略Use the Exchange Management Shell to modify address book policies

使用AddressBookPolicy cmdlet 可以修改现有的 ABP。You use the Set-AddressBookPolicy cmdlet to modify an existing ABP. 这些设置与创建 ABP 时可用的设置相同。The settings are identical to the settings that are available when you create an ABP.

  • Nameupdate-globaladdresslist、 _move-offlineaddressbook_和_RoomList_参数都采用单个值,因此您指定的值将替换现有值。The Name, GlobalAddressList, OfflineAddressBook, and RoomList parameters all take single values, so the value you specify replaces the existing value.

    此示例通过将 OAB 替换为指定的 OAB 来修改名为 "All Fabrikam ABP" 的 ABP。This example modifies the ABP named "All Fabrikam ABP" by replacing the OAB with the specified OAB.

    Set-AddressBookPolicy -Identity "All Fabrikam ABP" -OfflineAddressBook \Fabrikam-OAB-2
    
  • _AddressLists_参数采用多个值,因此您需要决定是要替换ABP 中的现有地址列表,还是在不影响 ABP 中的其他地址列表的情况下添加和删除地址列表。The AddressLists parameter takes multiple values, so you need to decide whether you want to replace the existing address lists in the ABP, or add and remove address lists without affecting the other address lists in the ABP.

    本示例将名为 "政府代理 A" 的 ABP 中的现有地址列表替换为指定的地址列表。This example replaces the existing address lists in the ABP named Government Agency A with the specified address lists.

    Set-AddressBookPolicy -Identity "Government Agency A" -AddressLists "GovernmentAgencyA-Atlanta","GovernmentAgencyA-Moscow"
    

    若要向 ABP 中添加地址列表,需要指定新的地址列表要保留的任何现有地址列表。To add address lists to an ABP, you need to specify the new address lists and any existing address lists that you want to keep.

    本示例将名为 Contoso-Chicago 的地址列表添加到名为 ABP Contoso 的 ABP(已被配置为使用名为 Contoso-Seattle 的地址列表)中。This example adds the address list named Contoso-Chicago to the ABP named ABP Contoso, which is already configured to use the address list named Contoso-Seattle.

    Set-AddressBookPolicy -Identity "ABP Contoso" -AddressLists "Contoso-Chicago","Contoso-Seattle"
    

    若要从 ABP 中删除地址列表,需要指定要保留的现有地址列表,并省略要删除的地址列表。To remove address lists from an ABP, you need to specify the existing address lists that you want to keep, and omit the address lists that you want to remove.

    例如,名为 ABP Fabrikam 的 ABP 使用地址列表 Fabrikam-HR 和 Fabrikam-Finance。For example, the ABP named ABP Fabrikam uses the address lists named Fabrikam-HR and Fabrikam-Finance. 若要删除 Fabrikam-HR 地址列表,请仅指定 Fabrikam-财务地址列表。To remove the Fabrikam-HR address list, specify only the Fabrikam-Finance address list.

    Set-AddressBookPolicy -Identity "ABP Fabrikam" -AddressLists Fabrikam-Finance
    

有关语法和参数的详细信息,请参阅 Set-AddressBookPolicyFor detailed syntax and parameter information, see Set-AddressBookPolicy.

如何判断是否生效?How do you know this worked?

若要验证是否已成功修改 ABP,请将_ <ABPIdentity> _替换为 ABP 的名称,并在 Exchange 命令行管理程序中运行以下命令来验证属性值:To verify that you've successfully modify an ABP, replace <ABPIdentity> with the name of the ABP, and run this command in the Exchange Management Shell to verify the property values:

Get-AddressBookPolicy -Identity "<ABPIdentity>" | Format-List

使用 Exchange 命令行管理程序删除通讯簿策略Use the Exchange Management Shell to remove address book policies

  • 如果将 ABP 分配给某个邮箱,则无法删除该邮箱。You can't remove an ABP if it's assigned to a mailbox. 若要查看是否向某个邮箱分配了 ABP,请_ <将> ABPIdentity_替换为 ABP 的名称,然后在 Exchange 命令行管理程序中运行以下命令,以获取DistinguishedName值:To see if an ABP is assigned to a mailbox, replace <ABPIdentity> with the name of the ABP, and run this command in the Exchange Management Shell to get the DistinguishedName value:

    Get-AddressBookPolicy -Identity <ABPIdentity> | Format-List DistinguishedName

    然后,在此命令中使用 ABP 的DistinguishedName值来显示分配了 ABP 的所有邮箱:Then, use the DistinguishedName value of the ABP in this command to show all mailboxes where the ABP is assigned:

    Get-Mailbox -ResultSize unlimited -Filter "AddressBookPolicy -eq '<DistinguishedName>'"

  • 若要从邮箱中删除 ABP 分配,请参阅本主题中的向邮箱分配通讯簿策略一节。To remove ABP assignments from mailboxes, see the Assign address book policies to mailboxes section in this topic.

若要删除 ABP,请使用以下语法:To remove an ABP, use this syntax:

Remove-AddressBookPolicy -Identity <ABPIdentity>

本示例将删除名为 ABP_TailspinToys 的 ABP。This example removes the ABP named ABP_TailspinToys.

Remove-AddressBookPolicy -Identity "ABP_TailspinToys"

有关语法和参数的详细信息,请参阅 Remove-AddressBookPolicyFor detailed syntax and parameter information, see Remove-AddressBookPolicy.

如何判断是否生效?How do you know this worked?

若要验证是否已成功删除 ABP,请使用以下过程之一:To verify that you've successfully removed an ABP, use either of these procedures:

  • 在 Exchange 命令行管理程序中运行此命令以验证 ABP 是否未列出:Run this command in the Exchange Management Shell to verify that the ABP isn't listed:

    Get-AddressBookPolicy
    
  • 将_ <ABPIdentity> _替换为 ABP 的名称,然后运行以下命令,以确认返回错误:Replace <ABPIdentity> with the name of the ABP, and run this command to confirm that an error is returned:

    Get-AddressBookPolicy -Identity "<ABPIdentity>"
    

向邮箱分配通讯簿策略Assign address book policies to mailboxes

  • 创建邮箱时不会自动为用户分配 ABP。Users aren't automatically assigned an ABP when you create mailboxes. 如果不向邮箱分配 ABP,则在 Outlook 和 web 上的 Outlook 中,您的整个组织的 GAL 对用户可见。If you don't assign an ABP to a mailbox, the GAL for your entire organization is visible to the user in Outlook and Outlook on the web.

  • 若要确定您的虚拟组织的 Abp,我们建议您对邮箱、联系人和组使用 CustomAttribute1 属性,因为这些属性是所有收件人类型的可用和可管理性最广泛。To identify your virtual organizations for ABPs, we recommend that you use the CustomAttribute1-15 attributes on mailboxes, contacts, and groups, because these attributes are the most widely available and manageable for all recipient types. 有关详细信息,请参阅方案:在 Exchange Server 中部署通讯簿策略For more information, see Scenario: Deploying address book policies in Exchange Server.

  • 将 Abp 分配给邮箱或从邮箱中删除 ABP 分配的过程是相同的:The procedures to assign ABPs to mailboxes or remove the ABP assignments from mailboxes are the same:

    • 若要将 Abp 分配给邮箱,请选择 EAC 中的 ABP,或在 Exchange 命令行管理程序中指定 ABP。To assign ABPs to mailboxes, you select the ABP in EAC, or specify the ABP in the Exchange Management Shell.

    • 若要从邮箱中删除 ABP 分配,请选择 EAC 中的 "值 [无策略] ",或使用$null Exchange 命令行管理程序中的值。To remove the ABP assignments from mailboxes, you select the value [No Policy] in the EAC, or use the value $null in the Exchange Management Shell.

使用 Exchange 管理中心(EAC)将 ABP 分配给单个邮箱Use the Exchange admin center (EAC) to assign an ABP to a single mailbox

  1. 在 EAC 中,转到 "收件人 > " "邮箱"。In the EAC, go to Recipients > Mailboxes.

  2. 在邮箱列表中,找到要修改的邮箱。In the list of mailboxes, find the mailbox that you want to modify. 可执行下列操作:You can:

    • 在邮箱列表中滚动浏览。Scroll through the list of mailboxes.

    • 单击 "搜索 搜索 " 图标并输入部分用户的姓名、电子邮件地址或别名。Click Search Search icon and enter part of the user's name, email address, or alias.

    • 单击 "更 多选项其他 >选项" 图标高级搜索以查找邮箱。Click More options More Options icon > Advanced search to find the mailbox.

    找到要修改的邮箱后,选择该邮箱,然后单击 "编辑 编辑图标"。Once you've found the mailbox that you want to modify, select it, and then click Edit Edit icon.

  3. 在打开的 "邮箱属性" 页上,单击 "邮箱功能"。On the mailbox properties page that opens, click Mailbox features.

  4. 单击 "通讯簿策略" 中的下拉箭头,然后选择要应用的 ADP。Click the drop-down arrow in Address book policy, and select the ADP that you want to apply.

    邮箱的通讯簿策略设置在 "EAC" 中的> "收件人> " >中选择邮箱编辑邮箱功能

    完成后,单击“保存”****。When you're finished, click Save.

注意:在 EAC 中创建用户邮箱时,还可以通过单击 "更多选项",然后单击 "通讯簿策略" 中的下拉箭头来分配 ABP。Note: You can also assign an ABP when you create a user mailbox in the EAC by clicking More options, and clicking the drop-down arrow in Address book policy.

使用 Exchange 命令行管理程序将通讯簿策略分配给单个邮箱Use the Exchange Management Shell to assign an address book policy to a single mailbox

若要将 ABP 分配给邮箱,请使用以下语法:To assign an ABP to a mailbox, use this syntax:

Set-Mailbox -Identity <MailboxIdentity> -AddressBookPolicy <ABPIdentity> or $null

此示例将名为 All Fabrikam 的 ABP 分配给邮箱 joe@fabrikam.com。This example assigns the ABP named All Fabrikam to mailbox joe@fabrikam.com.

Set-Mailbox -Identity joe@fabrikam.com -AddressBookPolicy "All Fabrikam"

注意:使用_AddressBookPolicy_参数创建带有新邮箱cmdlet 的用户邮箱时,还可以分配 ABP。Note: You can also assign an ABP when you create a user mailbox with the New-Mailbox cmdlet by using the AddressBookPolicy parameter. 如果创建邮箱时未指定 ABP,则不会分配 ABP (默认值为空或$null)。If you don't specify an ABP when you create the mailbox, no ABP is assigned (the default value is blank or $null).

有关语法和参数的详细信息,请参阅 Set-MailboxFor detailed syntax and parameter information, see Set-Mailbox.

使用 EAC 将通讯簿策略分配给多个邮箱Use the EAC to assign an address book policy to multiple mailboxes

  1. 在 EAC 中,转到 "收件人 > " "邮箱"。In the EAC, go to Recipients > Mailboxes.

  2. 在邮箱列表中,找到要修改的邮箱。In the list of mailboxes, find the mailboxes that you want to modify. 例如:For example:

    1. 单击 "更多选项 更 >多选项" 图标 "高级搜索"。Click More options More Options icon > Advanced search.

    2. 在打开的 "高级搜索" 窗口中,选择 "收件人类型" 并验证 "默认值" "用户邮箱"。In the Advanced search window that opens, select Recipient types and verify the default value User mailbox.

    3. 单击 "更多选项",然后单击 "添加条件"。Click More options, and then click Add a condition.

    4. 在出现的 "选择一个下拉框" 下拉框中,选择相应的自定义属性 1自定义属性 15个定义虚拟组织的值。In the Select one drop-down box that appears, select the appropriate Custom attribute 1 to Custom attribute 15 values that defines your virtual organizations.

    5. 在出现的 "指定字词或短语" 对话框中,输入要搜索的值,然后单击 "确定"In the Specify words or phrases dialog that appears, enter the value that you want to search for, and then click OK.

    6. 返回到 "高级搜索" 窗口中,单击 "确定"Back on the Advanced search window, click OK. 在 "收件人 > "邮箱的 EAC 中,单击 " 多 >选项" "高级搜索" 以查找用户邮箱。In the EAC at Recipients > Mailboxes, click More options More Options icon > Advanced search to find user mailboxes.

  3. 在邮箱列表中,从列表中选择同一类型的多个邮箱(例如,"用户")。In the list of mailboxes, select multiple mailboxes of the same type (for example, User) from the list. 例如:For example:

    • 选择一个邮箱,按住 Shift 键,然后在列表中选择另一个较靠下的邮箱。Select a mailbox, hold down the Shift key, and select another mailbox that's farther down in the list.

    • 在选择每个邮箱时按住 CTRL 键。Hold down the CTRL key as you select each mailbox.

    选择相同类型的多个邮箱后,详细信息窗格的标题将更改为批量编辑After you select multiple mailboxes of the same type, the title of the details pane changes to Bulk Edit.

  4. 在详细信息窗格中,向下滚动并单击 "更多选项",向下滚动到 "通讯簿策略",然后单击 "更新"。In the details pane, scroll down and click More options, scroll down to Address Book Policy, and then click Update.

    在 EAC 中批量选择邮箱以分配通讯簿策略

  5. 在打开的 "批量分配通讯簿策略" 窗口中,通过单击 "选择通讯簿策略" 中的下拉箭头选择 ABP,然后单击 "保存"。In the Bulk assign address book policy window that opens, select the ABP by clicking the drop-down arrow in Select Address Book Policy, and then click Save.

使用 Exchange 命令行管理程序将通讯簿策略分配给多个邮箱Use the Exchange Management Shell to assign an address book policy to multiple mailboxes

您可以使用 "获取邮箱" 或 "获取内容" cmdlet 来标识要向其分配 ABP 的用户邮箱。You can use the Get-Mailbox or Get-Content cmdlets to identify the user mailboxes that you want to assign the ABP to. 例如:For example:

  • 使用_Filter_参数创建标识邮箱的 OPATH 筛选器。Use the Filter parameter to create OPATH filters that identify the mailboxes. 有关详细信息,请参阅可筛选属性的-Filter 参数For more information, see Filterable Properties for the -Filter Parameter.

  • 使用文本文件指定邮箱。Use a text file to specify the mailboxes. 文本文件中的每一行包含一个邮箱(电子邮件地址、名称或其他唯一标识符),如下所示:The text file contains one mailbox (email address, name, or other unique identifier) on each line like this:

    ebrunner@tailspintoys.comebrunner@tailspintoys.com
    fapodaca@tailspintoys.comfapodaca@tailspintoys.com
    glaureano@tailspintoys.comglaureano@tailspintoys.com
    hrim@tailspintoys.comhrim@tailspintoys.com

本示例将名为 ABP_EngineeringDepartment 的 ABP 分配给所有用户邮箱CustomAttribute11 ,其中该属性包含值工程部门。This example assigns the ABP named ABP_EngineeringDepartment to all user mailboxes where the CustomAttribute11 attribute contains the value Engineering Department.

Get-Mailbox -Filter "RecipientType -eq 'UserMailbox' -and CustomAttribute11 -like '*Engineering Department'" | Set-Mailbox -AddressBookPolicy "ABP_EngineeringDepartment"

此示例使用文本文件 C:\My Documents\Accounts.txt 将相同的 ABP 分配给指定的用户邮箱。This example uses the text file C:\My Documents\Accounts.txt to assign the same ABP to the specified user mailboxes.

Get-Content "C:\My Documents\Accounts.txt" | foreach {Set-Mailbox $_ -AddressBookPolicy "ABP_EngineeringDepartment"}

有关语法和参数的详细信息,请参阅 Get-MailboxFor detailed syntax and parameter information, see Get-Mailbox.

如何判断是否生效?How do you know this worked?

若要验证是否已成功向邮箱分配了 ABP,请执行以下任一步骤:To verify that you've successfully assigned an ABP to a mailbox, do any of these steps:

  • 在 EAC 中,转到 "收件人 > " "邮箱 > "。选择邮箱> 。单击 "编辑 编辑图标 > 邮箱功能",并验证通讯簿策略值。In the EAC, go to Recipients > Mailboxes > select the mailbox > click Edit Edit icon > Mailbox features and verify the Address Book Policy value.

    邮箱的通讯簿策略设置在 "EAC" 中的> "收件人> " >中选择邮箱编辑邮箱功能

  • 在 Exchange 命令行管理程序中,将_ <MailboxIdentity> _替换为邮箱的标识(例如,名称、别名或电子邮件地址),然后运行以下命令:In the Exchange Management Shell, replace <MailboxIdentity> with the identity of the mailbox (for example, name, alias, or email address), and run this command:

    Get-Mailbox -Identity "<MailboxIdentity>" | Format-List AddressBookPolicy
    
  • 在 Exchange 命令行管理程序中,使用用于标识邮箱的相同筛选器。In the Exchange Management Shell, use the same filter that you used to identify the mailboxes. 例如:For example:

    Get-Mailbox -Filter "RecipientType -eq 'UserMailbox' -and CustomAttribute11 -like '*Engineering Department'" | Format-Table -Auto Name,EmailAddress,AddressBookPolicy
    
  • 在 Exchange 命令行管理程序中,将_ <ABPIdentity> _替换为 ABP 的名称,然后运行以下命令以获取DistinguishedName值:In the Exchange Management Shell, replace <ABPIdentity> with the name of the ABP, and run this command to get the DistinguishedName value:

    Get-AddressBookPolicy -Identity <ABPIdentity> | Format-List DistinguishedName
    

    然后,在此命令中使用 ABP 的DistinguishedName值来显示分配了 ABP 的所有邮箱:Then, use the DistinguishedName value of the ABP in this command to show all mailboxes where the ABP is assigned:

    Get-Mailbox -ResultSize unlimited -Filter "AddressBookPolicy -eq '<DistinguishedName>'"
    

使用 Exchange 命令行管理程序安装和配置通讯簿策略路由代理Use the Exchange Management Shell to install and configure the Address Book Policy Routing Agent

通讯簿策略路由(ABP 路由)控制如何在使用 Abp 的组织中解析收件人。Address Book Policy routing (ABP routing) controls how recipients are resolved in organizations that use ABPs. 启用 ABP 路由时,分配了不同 Gal 的用户会显示为外部收件人。When ABP routing is enabled, users that are assigned different GALs appear as external recipients to each other.

ABP 路由要求您在组织中的所有邮箱服务器上安装并启用通讯簿策略路由代理(ABP 路由代理),并在组织中全局启用 ABP 路由。ABP routing requires that you install and enable the Address Book Policy Routing Agent (ABP Routing Agent) on all Mailbox servers in your organization, and enable ABP routing globally in your organization. 执行此操作后,ABP 路由代理可能需要长达30分钟的时间才能处理邮件。After you do this, it might take up to 30 minutes for messages to be processed by the ABP Routing Agent.

您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 邮件流权限主题中的"传输代理"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Transport Agents" entry in the Mail flow permissions topic.

步骤 1:安装 ABP 路由代理Step 1: Install the ABP Routing agent

若要在本地邮箱服务器上安装 ABP 路由代理,请在组织中的每台邮箱服务器上运行此命令。To install the ABP Routing Agent on the local Mailbox server, run this command on every Mailbox server in the organization.

Install-TransportAgent -Name "ABP Routing Agent" -TransportAgentFactory "Microsoft.Exchange.Transport.Agent.AddressBookPolicyRoutingAgent.AddressBookPolicyRoutingAgentFactory" -AssemblyPath $env:ExchangeInstallPath\TransportRoles\agents\AddressBookPolicyRoutingAgent\Microsoft.Exchange.Transport.Agent.AddressBookPolicyRoutingAgent.dll

注意:你将收到一条警告,指示需要重新启动传输服务才能使更改生效。Note: You'll get a warning that the Transport service needs to be restarted for the changes to take effect. 但是,在完成步骤2(因此只需重新启动传输服务一次),然后再重新启动传输服务。But, don't restart the Transport service until you finish Step 2 (so you only have to restart the Transport service once).

有关语法和参数的详细信息,请参阅 Install-TransportAgentFor detailed syntax and parameter information, see Install-TransportAgent.

步骤2:启用 ABP 路由代理Step 2: Enable the ABP Routing agent

若要在本地邮箱服务器上启用 ABP 路由代理,请在组织中的每台邮箱服务器上运行此命令。To enable the ABP Routing Agent on the local Mailbox server, run this command on every Mailbox server in the organization.

Enable-TransportAgent "ABP Routing Agent"

有关语法和参数的详细信息,请参阅 Enable-TransportAgentFor detailed syntax and parameter information, see Enable-TransportAgent.

步骤3:重新启动传输服务Step 3: Restart the Transport service

若要重新启动传输服务,请在组织中的每台邮箱服务器上运行此命令。To restart the Transport service, run this command on every Mailbox server in the organization.

Restart-Service MSExchangeTransport

有关语法和参数的详细信息,请参阅 Get-TransportAgentFor detailed syntax and parameter information, see Get-TransportAgent.

步骤4:在 Exchange 组织中在全局范围内启用 ABP 路由Step 4: Enable ABP routing globally in the Exchange organization

若要在 Exchange 组织中在全局范围内启用 ABP 路由,请在任何邮箱服务器上运行以下命令:To enable ABP routing globally in the Exchange organization, run this command once on any Mailbox server:

Set-TransportConfig -AddressBookPolicyRoutingEnabled $true

有关语法和参数的详细信息,请参阅 Set-TransportConfigFor detailed syntax and parameter information, see Set-TransportConfig.

注意:若要在启用 ABP 路由后禁用它,请执行以下步骤:Note: To disable ABP routing after you've enabled it, do these steps:

  1. 在任何邮箱服务器上运行一次此命令以全局禁用 ABP 路由:Run this command once on any Mailbox server to globally disable ABP routing:

    Set-TransportConfig -AddressBookPolicyRoutingEnabled $false
    
  2. 在安装了代理的每台邮箱服务器上运行此命令,以禁用 ABP 路由代理:Disable the ABP Routing Agent by running this command on every Mailbox server where the agent is installed:

    Disable-TransportAgent "ABP Routing Agent"
    
  3. 在安装了代理的每台邮箱服务器上运行此命令:Run this command on every Mailbox server where the agent is installed:

    Restart-Service MSExchangeTransport
    

如何判断是否生效?How do you know this worked?

若要验证是否已成功安装和配置 ABP 路由代理,请执行以下任一步骤:To verify that you've successfully installed and configured the ABP Routing Agent, use any of these steps:

  • 在邮箱服务器上运行以下命令,以验证是否为组织启用了 ABP 路由:Run this command on a Mailbox server to verify that ABP routing is enabled for the organization:

    Get-TransportConfig | Format-List AddressBookPolicyRoutingEnabled
    
  • 在每台邮箱服务器上运行此命令,以验证是否已启用 ABP 路由代理:Run this command on every Mailbox server to verify that the ABP Routing Agent is enabled:

    Get-TransportAgent "ABP Routing Agent"
    
  • 拥有分配了 ABP 的用户向分配了不同 ABP 的用户发送电子邮件,并验证发件人的电子邮件地址是否无法解析为其显示名称。Have a user that's assigned an ABP send an email message to an user that's assigned a different ABP, and verify that the sender's email address doesn't resolve to their display name.