管理邮件联系人Manage mail contacts

邮件联系人实质上是组织或组织Exchange联系人。Mail contacts are essentially contacts for people outside your Exchange or organization. 每个邮件联系人都有一个外部电子邮件地址。Each mail contact has an external email address. 有关邮件联系人的详细信息,请参阅RecipientsFor more information about mail contacts, see Recipients.

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

提示

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

创建邮件联系人Create a mail contact

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

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

  2. 单击 新建添加  图标 > 邮件联系人Click New Add 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.

    • * 显示名称:使用此框可显示名称联系人的姓名。* Display name: Use this box to type a display name for the contact. 这是在 EAC 的联系人列表和组织的通讯簿中列出的名称。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. 姓名不能超过 64 个字符。The name can't exceed 64 characters.

    • * 名称:使用此框可以键入联系人的姓名。* 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. 姓名不能超过 64 个字符。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) 默认组织单位,即收件人作用域。Organizational unit: You can select an organizational unit (OU) other than the default, which is the recipient scope. 如果将收件人作用域设置为林,则默认值设置为域中的"用户"容器,该域包含运行 EAC 的计算机。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. 如果将收件人范围设置为某个特定 OU,则默认情况下,将选择该 OU。If the recipient scope is set to a specific OU, that OU is selected by default.

      若要选择一个不同的 OU,请单击“浏览”。该对话框显示林中的指定作用域内的所有 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.

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

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

本示例在 2016 年 10 月为 Debra Garcia Exchange Server联系人。This example creates a mail contact for Debra Garcia in Exchange Server 2016.

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

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

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.

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

    Get-MailContact <Name> | Format-List 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 Edit Edit 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 中列出的名称。* Name: This is the name that's listed in Active Directory. 如果您要更改此姓名,则它不能超过 64 个字符。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.

  • * 别名:这是邮件联系人的别名。* Alias: This is the mail contact's alias. 如果更改它,则它必须在组织中是唯一的,且必须为 64 个字符或更少。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

使用 "组织 "部分可以记录有关组织中邮件联系人角色的详细信息。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. 您也可以创建可从电子邮件客户端(如 Outlook)访问的虚拟组织图。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.

  • 直接下属:无法修改此框。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. 例如,Toby 管理 Ann 和 Spencer(即邮件联系人),因此 Toby在组织属性 Ann 和 Spencer 的"经理"框中指定,Ann 和Spencer 显示在 Toby 邮箱属性的"直接下属"框中。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

使用“电子邮件选项”部分可以添加或删除邮件联系人的代理地址或编辑现有的代理地址。Use the Email Options section to add or remove proxy addresses for the mail contact or edit existing proxy addresses. 邮件联系人的主 SMTP 地址也显示在此部分中,但您不能更改它。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.

邮件提示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.

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

邮件联系人的属性存储在 Active Directory 和 Exchange。Properties for a mail contact are stored in both Active Directory and Exchange. 通常,使用 Get-ContactSet-Contact cmdlet 查看和更改组织和联系人信息属性。In general, use the Get-Contact and Set-Contact cmdlets to view and change organization and contact information properties. 使用 Get-MailContactSet-MailContact cmdlet 查看或更改邮件相关属性(例如电子邮件地址、邮件提示、自定义属性以及是否在地址列表中隐藏联系人)。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:

下面是使用命令行管理程序更改Exchange联系人属性的一些示例。Here are some examples of using the Exchange Management 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 Edit Edit icon to view the property that you changed.

  • 在命令行Exchange命令行管理程序中,使用 Get-ContactGet-MailContact cmdlet 验证更改。In the Exchange Management Shell, use the Get-Contact and Get-MailContact cmdlets to verify the changes. 使用命令行管理Exchange的一个优点是您可以查看多个邮件联系人的多个属性。One advantage of using the Exchange Management Shell is that you can view multiple properties for multiple mail contacts. 在上面的示例中,所有邮件联系人的 CustomAttribute1 属性都设置为 PartTime 且在通讯簿中隐藏这些联系人,运行以下命令来验证所做的更改。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 | Format-List 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 | Format-List 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 Edit Edit icon to view the properties that you changed.

  • 在命令行Exchange命令行管理程序中,使用 Get-Contact cmdlet 验证更改。In the Exchange Management Shell, use the Get-Contact cmdlet to verify the changes. 例如,假设你已使用 EAC 中的批量编辑功能更改了供应商公司 A. Datum Corporation 的所有邮件联系人的经理和办公室属性。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. 若要验证这些更改,可以在命令行管理程序中Exchange命令。To verify these changes, you could run the following command in the Exchange Management Shell.

    Get-Contact -ResultSize unlimited -Filter "Company -eq 'Adatum'" | Format-List Name,Office,Manager