标题:"管理邮件联系人"ms.author: kwekua 作者: kwekua 管理器: scotv ms.date: 7/12/2018 ms.audience: it 专业人员 ms.topic: 文章 f1_keywords:title: "Manage mail contacts" ms.author: kwekua author: kwekua manager: scotv ms.date: 7/12/2018 ms.audience: ITPro ms.topic: article f1_keywords:

  • Microsoft.Exchange.Management.SnapIn.Esm.Recipients.NewMailContactWizardForm.NewMailContactIntroductionWizardPage ms.service: exchange online localization_priority: 正常 ms.assetid: 74c72aed-e9ff-4927-8eb7-c08a86e79ae0说明:"邮件联系人都已启用邮件的目录服务对象包含有关存在 Exchange 或 Exchange Online 组织外部的人员或组织的信息。每个邮件联系人都有一个外部电子邮件地址。'Microsoft.Exchange.Management.SnapIn.Esm.Recipients.NewMailContactWizardForm.NewMailContactIntroductionWizardPage' ms.service: exchange-online localization_priority: Normal ms.assetid: 74c72aed-e9ff-4927-8eb7-c08a86e79ae0 description: "Mail contacts are mail-enabled directory service objects that contain information about people or organizations that exist outside your Exchange or Exchange Online organization. Each mail contact has an external email address.

管理邮件联系人Manage mail contacts

邮件联系人都已启用邮件的目录服务对象包含有关存在 Exchange Online 组织外部的人员或组织的信息。每个邮件联系人都有一个外部电子邮件地址。有关邮件联系人的详细信息,请参阅RecipientsMail contacts are mail-enabled directory service objects that contain information about people or organizations that exist outside your Exchange or Exchange Online organization. Each mail contact has an external email address. For more information about mail contacts, see Recipients.

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

  • 估计完成时间:2 分钟。Estimated time to complete: 2 minutes.

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 Mailbox Permissions主题中的"收件人设置权限"部分。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Mailbox Permissions topic.

  • 若要了解可能适用于此主题中过程的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

遇到问题了吗?请在 Exchange 论坛中寻求帮助。 请访问以下论坛:Exchange ServerExchange OnlineExchange Online Protection。.Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection..

您想执行什么操作?What do you want to do?

创建邮件联系人Create a mail contact

使用 EAC 创建邮件联系人Use the EAC to create a mail contact

  1. 在 EAC 中,导航到收件人 > 联系人In the EAC, navigate to Recipients > Contacts.

  2. 单击新建添加图标 > 邮件联系人Click NewAdd Icon > Mail contact.

  3. 填写以下框在新邮件联系人页上:Complete the following boxes on the New mail contact page:

    • 名字使用此框中键入联系人的名字。First name Use this box to type the contact's first name.

    • 首字母缩写使用此框中键入联系人的姓名缩写。Initials Use this box to type the contact's initials.

    • 姓氏使用此框中键入联系人的姓。Last name Use this box to type the contact's last name.

    • *显示名称使用此框中键入联系人的显示名称。这是在 EAC 中和您的组织的通讯簿中的联系人列表中列出的名称。默认情况下,此框中填入在名字缩写姓氏框中输入的名称。如果您未使用这些框,则必须仍键入名称在此框中因为它是必需。名称不能超过 64 个字符。* Display name Use this box to type a display name for the contact. This is the name that's listed in the contacts list in the EAC and in your organization's address book. By default, this box is populated with the names you enter in the First name, Initials, and Last name boxes. If you didn't use those boxes, you must still type a name in this box because it's required. The name can't exceed 64 characters.

    • *名称使用此框中键入联系人的姓名。这是目录服务中列出的名称。类似的显示名称,此框将填充默认情况下,在名字缩写姓氏框中输入的名称。如果您未使用这些框,则必须仍键入名称在此框中因为它是必需。名称不能超过 64 个字符。* Name Use this box to type a name for the contact. This is the name that's listed in the directory service. Like the display name, this box is populated by default with the names you enter in the First name, Initials, and Last name boxes. If you didn't use those boxes, you must still type a name in this box because it's required. The name can't exceed 64 characters.

    • ***别名 * * 使用此框可以键入别名 (64 个字符或更少) 为该联系人。此框是必需的。*** Alias ** Use this box to type an alias (64 characters or less) for the contact. This box is required.

    • *外部电子邮件地址使用此框中键入联系人的外部电子邮件帐户。此框是必需的。向此联系人发送电子邮件将被转接到此电子邮件地址。* External email address Use this box to type the outside email account of the contact. This box is required. Email sent to this contact is forwarded to this email address.

    • 组织单位默认情况下,收件人的范围之外,您可以选择一个组织单位 (OU)。如果收件人作用域设置为林,默认值是包含在其运行 EAC 的计算机的域中,设置为用户容器。如果收件人作用域设置为特定域,该域中用户容器处于选中状态,默认情况下。如果收件人作用域设置为的特定 OU,该 OU 在默认情况下处于选中状态。Organizational unit You can select an organizational unit (OU) other than the default, which is the recipient scope. If the recipient scope is set to the forest, the default value is set to the Users container in the domain that contains the computer on which the EAC is running. If the recipient scope is set to a specific domain, the Users container in that domain is selected by default. If the recipient scope is set to a specific OU, that OU is selected by default.

      若要选择一个不同的 OU,单击浏览。对话框将显示在指定范围内的林中所有组织单位。选择您希望,的 OU,然后单击确定To select a different OU, click Browse. The dialog box displays all OUs in the forest that are within the specified scope. Select the OU you want, and then click OK.

      备注

      组织单位框才 Exchange Server 中可用。它不是 Exchange Online 中可用。The Organizational unit box is only available in Exchange Server. It isn't available in Exchange Online.

  4. 后完成后,单击保存When you've finished, click Save.

使用命令行管理程序创建邮件联系人Use the Shell to create a mail contact

本示例为徐 Garcia Exchange Server 中创建邮件联系人。This example creates a mail contact for Debra Garcia in Exchange Server.

New-MailContact -Name "Debra Garcia" -ExternalEmailAddress dgarcia@tailspintoys.com -OrganizationalUnit Users

此示例将在 Exchange Online 中为 Alan Shen 创建邮件联系人。This example creates a mail contact for Alan Shen in Exchange Online.

New-MailContact -Name "Alan Shen" -ExternalEmailAddress alans@fourthcoffee.com

本示例启用邮件的名为 Karen Toh Exchange Server 中的现有联系人。This example mail-enables an existing contact named Karen Toh in Exchange Server.

Enable-MailContact -Identity "Karen Toh" -ExternalEmailAddress ktoh@tailspintoys.com

您如何知道这有效?How do you know this worked?

要验证是否成功创建了邮件联系人,请执行以下操作之一:To verify that you've successfully created a mail contact, do one of the following:

  • 在 EAC 中,导航到收件人 > 联系人。在联系人列表中显示新的邮件联系人。在联系人类型下的类型是邮件联系人In the EAC, navigate to Recipients > Contacts. The new mail contact is displayed in the contact list. Under Contact Type, the type is Mail contact.

  • 在命令行管理程序中,运行以下命令可显示有关新邮件联系人的信息:In the Shell, run the following command to display information about the new mail contact.

    Get-MailContact <Name> | FL Name,RecipientTypeDetails,ExternalEmailAddress
    

更改邮件联系人属性Change mail contact properties

使用 EAC 更改邮件联系人属性Use the EAC to change mail contact properties

  1. 在 EAC 中,导航到收件人 > 联系人In the EAC, navigate to Recipients > Contacts.

  2. 在邮件联系人和邮件用户的列表中,单击您想要更改的属性,将邮件联系人,然后单击编辑编辑图标In the list of mail contacts and mail users, click the mail contact that you want to change the properties for, and then click EditEdit icon.

  3. 在"邮件联系人属性"页上,单击以下部分之一以查看或更改属性。On the mail contact properties page, click one of the following sections to view or change properties.

常规General

使用常规部分可以查看或更改有关邮件联系人的基本信息。Use the General section to view or change basic information about the mail contact.

  • 缩写姓氏First name, Initials, Last name

  • *名称这是在 Active Directory 中列出的名称。如果更改此名称,它不能超过 64 个字符。* Name This is the name that's listed in Active Directory. If you change this name, it can't exceed 64 characters.

  • *显示名称此名称将出现在贵组织的通讯簿上, 和在电子邮件,并在邮箱列表中的行。此名称不能包含空格之前, 或之后的显示名称。* Display name This name appears in your organization's address book, on the To and From lines in email, and in the Mailbox list. This name can't contain empty spaces before or after the display name.

  • *别名这是邮件联系人的别名。如果您更改它,它在组织中必须唯一,并且必须为 64 个字符或更少。* Alias This is the mail contact's alias. If you change it, it must be unique in the organization and must be 64 characters or less.

  • *外部电子邮件地址这是邮件联系人的主 SMTP 地址和其外部电子邮件帐户。向此联系人发送电子邮件将被转接到此电子邮件地址。* External email address This is mail contact's primary SMTP address and their outside email account. Email sent to this contact is forwarded to this email address.

  • 单击要显示包含邮件联系人帐户的 OU 的更多选项。您必须使用 Active Directory 用户和计算机将联系人移动到不同的 OU。Click More options to display the OU that contains the mail contact account. You have to use Active Directory Users and Computers to move the contact to a different OU.

联系人信息Contact Information

使用联系人信息部分可以查看或更改收件人的联系人信息,例如邮寄地址和电话号码。在通讯簿中显示此信息。Use the Contact Information section to view or change the recipient's contact information, such as mailing address and telephone numbers. This information is displayed in the address book.

组织Organization

使用组织部分记录组织中的邮件联系人的角色的详细的信息。在通讯簿中显示此信息。此外,您可以创建可从如 Outlook 电子邮件客户端访问虚拟组织图表。Use the Organization section to record detailed information about the mail contact's role in the organization. This information is displayed in the address book. Also, you can create a virtual organization chart that's accessible from email clients such as Outlook.

  • 标题使用此框可以查看或更改联系人的职务。Title Use this box to view or change the contact's title.

  • 部门使用此框可以查看或更改联系人的工作单位的部门。此框可用于创建收件人条件为动态通讯组和地址列表。Department Use this box to view or change the department in which the contact works. You can use this box to create recipient conditions for dynamic distribution groups and address lists.

  • 公司使用此框可以查看或更改的公司联系人的工作单位。您可以使用此框创建收件人条件为动态通讯组。Company Use this box to view or change the company for which the contact works. You can also use this box to create recipient conditions for dynamic distribution groups.

  • 管理器若要添加管理器,请单击浏览选择管理器中选择的人员,,然后单击确定Manager To add a manager, click Browse. In Select Manager, select a person, and then click OK.

  • 直接下属不能修改此框。直接报表是向特定经理报告的收件人。如果已指定收件人的经理,该收件人显示为经理的邮箱的详细信息中直接报表。例如,白管理 Ann 和 Spencer,属于邮件联系人,以便为 Ann 和 Spencer,组织属性中的管理器框中指定了白和 Ann 并 Spencer 白的邮箱的属性中的直接下属框中显示。Direct reports You can't modify this box. A direct report is a recipient who reports to a specific manager. If you've specified a manager for the recipient, that recipient appears as a direct report in the details of the manager's mailbox. For example, Toby manages Ann and Spencer, who are mail contacts, so Toby is specified in the Manager box in the organization properties for Ann and Spencer, and Ann and Spencer appear in the Direct reports box in the properties of Toby's mailbox.

电子邮件选项Email Options

电子邮件选项部分用于添加或删除的邮件联系人的代理地址或编辑现有的代理地址。邮件联系人的主 SMTP 地址还显示在此部分中,但不是能更改它。若要更改它,您必须更改该联系人的常规部分中的外部电子邮件地址。Use the Email Options section to add or remove proxy addresses for the mail contact or edit existing proxy addresses. The mail contact's primary SMTP address is also displayed in this section, but you can't change it. To change it, you have to change the contact's external email address in the General section.

备注

电子邮件选项部分才 Exchange Server 中可用。不是 Exchange Online 中可用。The Email Options section is only available in Exchange Server. It's not available in Exchange Online.

邮件提示MailTip

使用邮件提示部分的潜在问题的警报用户添加邮件提示之前向此收件人发送一条消息。邮件提示是此收件人添加到收件人、 抄送或密件抄送行的新电子邮件时,信息栏中显示的文本。Use the MailTip section to add a MailTip to alert users of potential issues before they send a message to this recipient. A MailTip is text that's displayed in the InfoBar when this recipient is added to the To, Cc, or Bcc lines of a new email message.

备注

邮件提示可包含 HTML 标记,但不允许包含脚本。自定义邮件提示的长度不能超过 175 个显示的字符。此字符限制不计入 HTML 标记。MailTips can include HTML tags, but scripts aren't allowed. The length of a custom MailTip can't exceed 175 displayed characters. HTML tags aren't counted in the limit.

使用命令行管理程序更改邮件联系人属性Use the Shell to change mail contact properties

邮件联系人的属性存储在 Active Directory 和 Exchange 中。一般情况下,使用Get-contactSet-contact cmdlet 查看和更改组织和联系人信息的属性。使用Get-mailcontactSet-mailcontact cmdlet 可以查看或更改与邮件相关的属性,如电子邮件地址,邮件提示,自定义属性,以及是否地址列表中隐藏该联系人。Properties for a mail contact are stored in both Active Directory and Exchange. In general, use the Get-Contact and Set-Contact cmdlets to view and change organization and contact information properties. Use the Get-MailContact and Set-MailContact cmdlets to view or change mail-related properties, such as email addresses, the MailTip, custom attributes, and whether the contact is hidden from address lists.

有关详细信息,请参阅下列主题:For more information, see the following topics:

下面是使用命令行管理程序更改邮件联系人属性的一些示例。Here are some examples of using the Shell to change mail contact properties.

此示例配置邮件联系人 Kai Axford 的"职务"、"部门"、"公司"和"经理"属性。This example configures the Title, Department, Company, and Manager properties for the mail contact Kai Axford.

Set-Contact "Kai Axford" _-Title Consultant -Department "Public Relations" -Company Fabrikam -Manager "Karen Toh"

此示例将所有邮件联系人的 CustomAttribute1 属性设置为值 PartTime 并在组织的通讯簿中隐藏这些联系人。This example sets the CustomAttribute1 property to a value of PartTime for all mail contacts and hides them from the organization's address book.

Get-MailContact | Set-MailContact -CustomAttribute1 PartTime -HiddenFromAddressListsEnabled $true

此示例将 Public Relations 部门中所有邮件联系人的 CustomAttribute15 属性设置为值 TemporaryEmployee。This example sets the CustomAttribute15 property to a value of TemporaryEmployee for all mail contacts in the Public Relations department.

Get-Contact -Filter "Department -eq 'Public Relations'" | Set-MailContact -CustomAttribute15 TemporaryEmployee

您如何知道这有效?How do you know this worked?

要验证是否已成功更改邮件联系人的属性,请执行以下操作:To verify that you've successfully changed properties for a mail contact, do the following:

  • 在 EAC 中,选择该邮件联系人,,然后单击编辑编辑图标以查看您更改的属性。In the EAC, select the mail contact, and then click EditEdit icon to view the property that you changed.

  • 在 Shell 中,使用Get-contactGet-mailcontact cmdlet 来验证所做的更改。使用命令行管理程序的一个优点是,您可以查看多个邮件联系人的多个属性。在上面其中所有邮件联系人已将 CustomAttribute1 属性设置为 PartTime 和通讯簿中隐藏的示例中,运行以下命令以验证所做的更改。In the Shell, use the Get-Contact and Get-MailContact cmdlets to verify the changes. One advantage of using the Shell is that you can view multiple properties for multiple mail contacts. In the example above where all mail contacts had the CustomAttribute1 property set to PartTime and were hidden from the address book, run the following command to verify the changes.

    Get-MailContact | Fl Name,CustomAttribute1,HiddenFromAddressListsEnabled
    

    在上面的示例中,为 Public Relations 部门中的所有邮件联系人设置了 CustomAttribute15,运行以下命令来验证所做的更改:In the example above where the CustomAttribute15 was set for all mail contacts in the Public Relations department, run the following command to verify the changes.

    Get-Contact -Filter "Department -eq 'Public Relations'" | Get-MailContact | FL Name,CustomAttribute15
    

批量编辑邮件联系人Bulk edit mail contacts

可以使用 EAC 更改多个邮件联系人的所选属性。在 EAC 中从联系人列表中选择两个或更多邮件联系人时,可以批量编辑的属性会显示在“详细信息”窗格中。在更改其中一个属性后,所做更改将应用到所有选定的收件人。You can use the EAC to change selected properties for multiple mail contacts. When you select two or more mail contacts from the contacts list in the EAC, the properties that can be bulk edited are displayed in the Details pane. When you change one of these properties, the change is applied to all selected recipients.

批量编辑邮件联系人时,可以更改以下属性区域:When you bulk edit mail contacts, you can change the following property areas:

  • 联系人信息更改共享的属性,如街道、 邮编和城市名称。Contact Information Change shared properties such as street, postal code, and city name.

  • 组织更改共享的属性,如部门名称、 公司名称和选定的邮件联系人或邮件用户报告给经理。Organization Change shared properties such as department name, company name, and the manager that the selected mail contacts or mail users report to.

使用 EAC 批量编辑邮件联系人Use the EAC to bulk edit mail contacts

  1. 在 EAC 中,导航到收件人 > 联系人In the EAC, navigate to Recipients > Contacts.

  2. 在联系人列表中,选择两个或多个邮件联系人。无法批量编辑邮件联系人和邮件用户的组合。In the list of contacts, select two or more mail contacts. You can't bulk edit a combination of mail contacts and mail users.

    提示

    按住 Shift 键并单击第一个邮件联系人,然后单击最后一个要编辑的邮件联系人,可以选择多个相邻的邮件联系人。按住 Ctrl 键并单击每个要编辑的邮件联系人,也可以选择多个邮件联系人。You can select multiple adjacent mail contacts by holding down the Shift key and clicking the first mail contact, and then clicking the last mail contact you want to edit. You can also select multiple mail contacts by holding down the Ctrl key and clicking each one that you want to edit.

  3. 在详细信息窗格中,在批量编辑单击下的联系人信息组织更新In the Details pane, under Bulk Edit, click Update under Contact Information or Organization.

  4. 更改属性页面,然后保存所做的更改。Make the changes on the properties page and then save your changes.

您如何知道这有效?How do you know this worked?

要验证是否成功批量编辑了邮件联系人,请执行以下操作之一:To verify that you've successfully bulk edited mail contacts, do one of the following:

  • 在 EAC 中,选择每个批量编辑的邮件联系人,然后单击编辑编辑图标以查看您已经更改的属性。In the EAC, select each of the mail contacts that you bulk edited, and then click EditEdit icon to view the properties that you changed.

  • 在 Shell 中,使用Get-contact cmdlet 来验证所做的更改。例如,假设您用于批量编辑功能在 EAC 中更改经理和所有邮件联系人 office 从名为百基准公司供应商公司。若要验证这些更改,您无法在 Shell 中运行以下命令。In the Shell, use the Get-Contact cmdlet to verify the changes. For example, say you used the bulk edit feature in the EAC to change the manager and the office for all mail contacts from a vendor company named A. Datum Corporation. To verify these changes, you could run the following command in the Shell.

    Get-Contact -ResultSize unlimited -Filter {(Company -eq 'Adatum')} | fl Name,Office,Manager