管理郵件使用者Manage mail users

郵件使用者類似於郵件連絡人。 這兩者都擁有外部電子郵件地址,也都包含 Exchange 或 Exchange Online 組織外的人員相關資訊,而這些資訊都可顯示在共用通訊錄和其他通訊清單中。 不過,和郵件連絡人不同的是,郵件使用者在您的 Exchange 或 Office 365 組織中具有登入認證,並且可以存取資源。 如需詳細資訊,請參閱 收件者Mail users are similar to mail contacts. Both have external email addresses and both contain information about people outside your Exchange or Exchange Online organization that can be displayed in the shared address book and other address lists. However, unlike a mail contact, a mail user has logon credentials in your Exchange or Office 365 organization and can access resources. For more information, 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 for the Exchange admin center.

提示

有問題嗎?Having problems? 在 Exchange 論壇中尋求協助。Ask for help in the Exchange forums. 此論壇的網址為: Exchange OnlineExchange Online ProtectionVisit the forums at Exchange Online or Exchange Online Protection.

建立郵件使用者Create a mail user

使用 EAC 建立郵件使用者Use the EAC to create a mail user

  1. 在 EAC 中,瀏覽至 [收件者 > 連絡人 > 新增 > 郵件使用者In the EAC, navigate to Recipients > Contacts > New > Mail user.

  2. 在 [新郵件使用者] 頁面中***別名**方塊中,輸入郵件使用者的別名。On the New mail user page, in the * Alias box, type the alias for the mail user. 別名不得超過 64 個字元,且必須在樹系中是唯一的。The alias can't exceed 64 characters and must be unique in the forest. 這是必填的方塊。This box is required.

  3. 執行下列其中一項操作,指定郵件使用者的電子郵件地址類型:Do one of the following to specify the email address type for the mail user:

    • 若要指定郵件使用者的外部電子郵件地址的 SMTP 電子郵件地址,請按一下 [ SMTP]。To specify an SMTP email address for the mail user's external email address, click SMTP.

    注意

    SMTP 位址已驗證的格式正確。SMTP addresses are validated for correct formatting. 如果您的項目不一致與 SMTP 格式,當您按一下 [儲存] 以建立郵件使用者將會顯示錯誤訊息。If your entry is inconsistent with the SMTP format, an error message will be displayed when you click Save to create the mail user.

    • 若要指定自訂地址類型,請按一下選項按鈕,然後輸入自訂地址類型。 例如,您可以指定 X.500、GroupWise 或 Lotus Notes 地址。To specify a custom address type, click the option button and then type the custom address type. For example, you can specify an X.500, GroupWise, or Lotus Notes address.
  4. 在***外部的電子郵件地址**方塊中,輸入郵件使用者的外部電子郵件地址。In the * External email address box, type the mail user's external email address. 傳送給此郵件使用者的電子郵件會轉送到這個電子郵件地址。Email sent to this mail user is forwarded to this email address. 這是必填的方塊。This box is required.

  5. 選取下列其中一個選項:Select one of the following options:

    • 現有的使用者: 選取要啟用現有使用者的郵件功能。Existing user: Select to mail-enable an existing user.

    按一下 [若要開啟 [選取使用者-整個樹系] 對話方塊的 [瀏覽]。Click Browse to open the Select User - Entire Forest dialog box. 這個對話方塊會列出組織中不具郵件功能或不具信箱的使用者帳戶。This dialog box displays a list of user accounts in the organization that aren't mail-enabled or don't have mailboxes. Select the user account you want to mail-enable, and then click OK.Select the user account you want to mail-enable, and then click OK. If you select this option, you don't have to provide user account information because this information already exists in Active Directory.If you select this option, you don't have to provide user account information because this information already exists in Active Directory.

    • 新的使用者: 選取 [Active Directory 中建立新的使用者帳戶及擁有郵件功能的使用者。New user: Select to create a new user account in Active Directory and mail-enable the user. 如果選取此選項,必須提供所需的使用者帳戶資訊。If you select this option, you'll have to provide the required user account information.
  6. 如果您在步驟 5 中選取新的使用者,完成 [新郵件使用者] 頁面上的下列方塊。If you selected New User in Step 5, complete the following boxes on the New mail user page. 否則請跳到步驟 7。Otherwise skip to Step 7.

    • 名字: 使用此方塊輸入郵件使用者的名字。First name: Use this box to type the first name of the mail user.

    • 縮寫: 使用此方塊輸入郵件使用者的縮寫。Initials: Use this box to type the initials of the mail user.

    • 姓氏: 使用此方塊輸入郵件使用者的姓氏。Last name: Use this box to type the last name of the mail user.

    • *顯示名稱: 使用此方塊輸入使用者的顯示名稱。* Display name: Use this box to type a display name for the user. 這是 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.

    • *使用者識別碼: 使用此方塊輸入郵件使用者將用來登入網域的名稱。* User ID: Use this box to type the name that the mail user will use to log on to the domain. 使用者登入名稱包含在左側的使用者名稱處 (@) 符號和右側的尾碼。The user logon name consists of a username on the left side of the at (@) symbol and a suffix on the right side. 一般來說,尾碼是使用者帳戶所在的網域名稱。Typically, the suffix is the domain name the user account resides in.

    • *新密碼: 使用此方塊輸入郵件使用者必須用來登入網域的密碼。* New Password: Use this box to type the password that the mail user must use to log on to the domain.

    注意

    請確定您提供的密碼符合您要在其中建立使用者帳戶之網域的密碼長度、複雜性和歷程記錄需求。Make sure that the password you supply complies with the password length, complexity, and history requirements of the domain you're creating the user account in.

    • *確認密碼: 使用此方塊來確認您在 [密碼] 方塊中輸入的密碼。* Confirm password: Use this box to confirm the password that you typed in the Password box.

    • 必須在下次登入時變更密碼]: 如果您希望郵件使用者在初次登入網域時重設密碼,請選取此核取方塊。Require password change on next logon: Select this check box if you want mail users to reset the password when they first log on to the domain.

    如果您選取此核取方塊,新的郵件使用者第一次登入時,就會出現一個提示變更密碼的對話方塊。 順利變更密碼後,郵件使用者才能執行任何工作。If you select this check box, at first logon, the new mail user will be prompted with a dialog box in which to change the password. The mail user won't be allowed to perform any tasks until the password is changed successfully.

  7. 當您已完成,請按一下 [儲存] 以建立郵件使用者。When you've finished, click Save to create the mail user.

使用 Exchange Online PowerShell 來建立郵件使用者Use Exchange Online PowerShell to create a mail user

此範例會為 Jeffrey Zeng 建立擁有郵件功能的使用者帳戶,詳細資料如下:This example creates a mail-enabled user account for Jeffrey Zeng with the following details:

  • 名稱和顯示名稱是 Jeffrey Zeng (如果您未使用_DisplayName_參數, _Name_參數的值用於顯示名稱)。The name and display name is Jeffrey Zeng (if you don't use the DisplayName parameter, the value of the Name parameter is used for the display name).

  • 別名為 jeffreyz。The alias is jeffreyz.

  • 外部電子郵件地址為 jzeng@tailspintoys.com。The external email address is jzeng@tailspintoys.com.

  • 名字為 Jeffrey,姓氏為 Zeng。The first name is Jeffrey and the last name is Zeng.

  • 登入名稱為 jeffreyz@contoso.com。The logon name is jeffreyz@contoso.com.

  • 密碼為 Pa$$word1。The password is Pa$$word1.

New-MailUser -Name "Jeffrey Zeng" -Alias jeffreyz -ExternalEmailAddress jzeng@tailspintoys.com -FirstName Jeffrey -LastName Zeng -UserPrincipalName jeffreyz@contoso.com -Password (ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force)

此範例會在 Exchange Online 中為 Rene Valdes 建立具有郵件功能的使用者帳戶。This example creates a mail-enabled user account for Rene Valdes in Exchange Online.

New-MailUser -Name "Rene Valdes" -Alias renev -ExternalEmailAddress renevaldes@fineartschool.edu -FirstName Rene -LastName Valdes -MicrosoftOnlineServicesID renev@contoso.com -Password (ConvertTo-SecureString -String 'P@ssw0rd' -AsPlainText -Force)

如何知道這是否正常運作?How do you know this worked?

若要確認是否已成功建立郵件使用者,請執行下列其中一項操作:To verify that you've successfully created a mail user, do one of the following:

  • 在 EAC 中,瀏覽至 [收件者 > 連絡人In the EAC, navigate to Recipients > Contacts. 新的郵件使用者會顯示在連絡人清單中。The new mail user is displayed in the list of contacts. [連絡人類型] 下的類型為郵件使用者Under Contact Type, the type is Mail user.

  • 在 Exchange Online PowerShell 中執行下列命令,以顯示新郵件使用者的相關資訊。In Exchange Online PowerShell, run the following command to display information about the new mail user.

    Get-MailUser <Name> | Format-List Name,RecipientTypeDetails,ExternalEmailAddress
    

變更郵件使用者內容Change mail user properties

建立郵件使用者之後,您可以進行的變更,並藉由使用 EAC 或 Exchange Online PowerShell 中設定其他內容。After you create a mail user, you can make changes and set additional properties by using the EAC or Exchange Online PowerShell.

可同時間變更多個使用者信箱的內容。 如需詳細資訊,請參閱 使用 EAC 大量編輯郵件使用者You can also change properties for multiple user mailboxes at the same time. For more information, see Use the EAC to bulk edit mail users.

完成這項工作的預估時間隨著要檢視或變更的內容數目而不同。The estimated time to complete this task will vary based on the number of properties you want to view or change.

使用 EAC 變更使用者信箱內容Use the EAC to change user mailbox properties

  1. 在 EAC 中,瀏覽至 [收件者 > 連絡人In the EAC, navigate to Recipients > Contacts.

  2. 在連絡人清單中,按一下您想要變更其內容的郵件使用者,然後按一下 [編輯編輯圖示In the list of contacts, click the mail user that you want to change the properties for, and then click Edit Edit icon.

  3. 在郵件使用者內容頁面上,按一下下列其中一個區段以檢視或變更內容。On the mail user 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 user.

  • [名字]****、[縮寫]****、[姓氏]****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.

  • *顯示名稱: 這個名稱會出現在貴組織的通訊錄,在郵件: 進出: 電子郵件,然後在 EAC 中的連絡人清單中的行。* Display name: This name appears in your organization's address book, on the To: and From: lines in email, and in the list of contacts in the EAC. 這個顯示名稱前後不可包含空格。This name can't contain empty spaces before or after the display name.

  • *使用者登入名稱: 這是使用者用來登入網域的名稱。* User logon name: This is the name that the user uses to log on to the domain. 在 Exchange Online 中,這是使用者用來登入 Office 365 的使用者識別碼。In Exchange Online, this is the User ID that the user uses to sign in to Office 365.

  • 從地址清單隱藏: 選取此核取方塊可防止郵件使用者出現在通訊錄以及您 Exchange 組織中定義其他通訊清單。Hide from address lists: Select this check box to prevent the mail user from appearing in the address book and other address lists that are defined in your Exchange organization. 選取此核取方塊後, 使用者仍可以使用電子郵件地址傳送郵件給收件者。After you select this check box, users can still send messages to the recipient by using the email address.

按一下 [更多選項]****,檢視或變更這些額外的內容:Click More options to view or change these additional properties:

  • 自訂屬性: 這個區段會顯示為郵件使用者定義的自訂屬性。Custom attributes: This section displays the custom attributes defined for the mail user. 若要指定自訂屬性值,請按一下 [編輯編輯圖示To specify custom attribute values, click Edit Edit icon. 您最多可為收件者指定 15 個自訂屬性。You can specify up to 15 custom attributes for the recipient.

連絡人資訊Contact Information

使用 [連絡人資訊] 區段可檢視或變更使用者的連絡人資訊。Use the Contact Information section to view or change the user's contact information. 此頁的資訊顯示於通訊錄中。The information on this page is displayed in the address book. 按一下 [更多選項] 以顯示其他方塊。Click More options to display additional boxes.

提示

您可以使用州/省方塊,以建立動態通訊群組、 電子郵件地址原則或通訊清單的收件者條件。You can use the State/Province box to create recipient conditions for dynamic distribution groups, email address policies, or address lists.

組織Organization

使用 [組織] 區段中,記錄組織中的使用者角色的詳細的資訊。Use the Organization section to record detailed information about the user'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 recipient's title.

  • 部門: 使用此方塊可檢視或變更使用者的運作的部門。Department: Use this box to view or change the department in which the user works. 您可以使用此方塊建立動態通訊群組、電子郵件地址原則或通訊清單的收件者條件。You can use this box to create recipient conditions for dynamic distribution groups, email address policies, or address lists.

  • 公司: 使用此方塊可檢視或變更使用者工作的公司。Company: Use this box to view or change the company for which the user works. 您可以使用此方塊建立動態通訊群組、電子郵件地址原則或通訊清單的收件者條件。You can use this box to create recipient conditions for dynamic distribution groups, email address policies, or address lists.

  • 管理員: 若要新增主管,按一下 [瀏覽]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 user who reports to a specific manager. 如果您已經為使用者指定主管,此使用者在主管信箱的詳細資料中會顯示為直屬員工。If you've specified a manager for the user, that user appears as a direct report in the details of the manager's mailbox. 例如,黃管理 Chris 和 Kate,因此黃 Chris 和 Kate,指定在 [管理員] 方塊中,並 Chris 和 Kate 出現在黃的帳戶的內容中的 [直屬員工] 方塊中。For example, Kari manages Chris and Kate, so Kari is specified in the Manager box for Chris and Kate, and Chris and Kate appear in the Direct reports box in the properties of Kari's account.

電子郵件地址Email Addresses

使用 [電子郵件地址] 區段可檢視或變更郵件使用者相關聯的電子郵件地址。Use the Email Addresses section to view or change the email addresses associated with the mail user. 這包括郵件使用者的主要 SMTP 位址、其外部電子郵件地址,以及任何關聯的 Proxy 位址。This includes the mail user's primary SMTP address, their external email address, and any associated proxy addresses. 以粗體文字通訊清單中,使用大寫的SMTP值,在 [類型] 欄中顯示的主要 SMTP 位址 (也稱為預設回覆地址)。The primary SMTP address (also known as the default reply address) is displayed in bold text in the address list, with the uppercase SMTP value in the Type column. 根據預設,在建立郵件使用者之後,主要 SMTP 位址和外部電子郵件地址會相同。By default, after the mail user is created, the primary SMTP address and the external email address are the same.

  • 新增: 按一下 [新增加入圖示到此信箱新增電子郵件地址。Add: Click Add Add Icon to add a new email address for this mailbox. 選取下列其中一種位址類型:Select one of following address types:

    • SMTP: 這是預設的位址類型。SMTP: This is the default address type. 按一下此按鈕,然後輸入新的 SMTP 位址,在***電子郵件地址**] 方塊中。Click this button and then type the new SMTP address in the * Email address box.

    • 自訂位址類型: 按一下此按鈕,然後輸入下列其中一個中支援的非 SMTP 電子郵件地址類型***電子郵件地址**] 方塊中。Custom address type: Click this button and type one of the supported non-SMTP email address types in the * Email address box.

    注意

    除了 X.400 位址以外,Exchange 不會驗證自訂位址的格式是否正確。您必須確保指定的自訂位址符合該位址類型的格式需求。With the exception of X.400 addresses, Exchange doesn't validate custom addresses for correct formatting. You must make sure that the custom address you specify complies with the format requirements for that address type.

  • 設定外部的電子郵件地址: 使用此方塊可變更郵件使用者的外部地址。Set the external email address: Use this box to change the mail user's external address. 傳送給此郵件使用者的電子郵件會轉送到這個電子郵件地址。Email sent to this mail user is forwarded to this email address.

郵件流程設定Mail Flow Settings

使用 [郵件流程設定] 區段可檢視或變更下列設定:Use the Mail Flow Settings section to view or change the following settings:

  • 郵件大小限制: 這些設定會控制的郵件使用者可以傳送和接收的郵件大小。Message Size Restrictions: These settings control the size of messages that the mail user can send and receive. 按一下 [檢視詳細資料可檢視和變更傳送和接收郵件的大小上限。Click View details to view and change maximum size for sent and received messages.

    • 傳送的電子郵件: 若要指定此使用者所傳送的郵件大小上限,選取 [郵件大小上限 (KB) ] 核取方塊,並在方塊中輸入值。Sent messages: To specify a maximum size for messages sent by this user, select the Maximum message size (KB) check box and type a value in the box. 郵件大小必須介於 0 和 2,097,151 KB 之間。The message size must be between 0 and 2,097,151 KB. 如果使用者傳送的郵件大於指定的大小,該郵件便會傳回給使用者,並說明為錯誤郵件。If the user sends a message larger than the specified size, the message will be returned to the user with a descriptive error message.

    • 已接收的郵件: 若要指定此使用者所接收的郵件大小上限,選取 [郵件大小上限 (KB) ] 核取方塊,並在方塊中輸入值。Received messages: To specify a maximum size for messages received by this user, select the Maximum message size (KB) check box and type a value in the box. 郵件大小必須介於 0 和 2,097,151 KB 之間。The message size must be between 0 and 2,097,151 KB. 如果使用者收到的郵件大於指定的大小,該郵件便會退回給寄件者,並提供說明錯誤訊息。If the user receives a message larger than the specified size, the message will be returned to the sender with a descriptive error message.

  • 郵件傳遞限制: 這些設定會控制可以傳送電子郵件訊息給此郵件使用者。Message Delivery Restrictions: These settings control who can send email messages to this mail user. 按一下 [檢視詳細資料] 來檢視和變更這些限制。Click View details to view and change these restrictions.

    • 接受郵件的來源: 這個區段可用來指定誰可以傳送郵件給此位使用者。Accept messages from: Use this section to specify who can send messages to this user.

    • 所有寄件者: 選取此選項以指定使用者可接受來自所有寄件者的郵件。All senders: Select this option to specify that the user can accept messages from all senders. 其中同時包括 Exchange 組織和外部寄件者中的寄件者。This includes both senders in your Exchange organization and external senders. 此為預設選取的選項。This option is selected by default. 這個選項才會包括外部使用者只有當您清除 [需要驗證所有寄件者] 核取方塊。This option includes external users only if you clear the Require that all senders are authenticated check box. 如果您選取此核取方塊,則來自外部使用者的郵件將遭拒。If you select this check box, messages from external users will be rejected.

    • 下列清單中的唯一寄件者: 選取此選項以指定使用者可接收郵件僅來自 Exchange 組織中的寄件者的指定之一組。Only senders in the following list: Select this option to specify that the user can accept messages only from a specified set of senders in your Exchange organization. 按一下 [新增加入圖示以顯示 [選取收件者] 頁面上,會顯示 Exchange 組織中所有收件者清單。Click Add Add Icon to display the Select Recipients page, which displays a list of all recipients in your Exchange organization. 選取想要的收件者,然後按一下 [確定]****。Select the recipients you want, add them to the list, and then click OK. 您也可以搜尋特定的收件者在搜尋方塊中輸入收件者的名稱,然後按一下 [搜尋搜尋圖示You can also search for a specific recipient by typing the recipient's name in the search box and then clicking Search Search icon.

    • 需要驗證所有寄件者: 選取此選項可防止匿名使用者傳送郵件給使用者。Require that all senders are authenticated: Select this option to prevent anonymous users from sending messages to the user.

    • 拒絕郵件的來源: 這個區段可用來封鎖對象,傳送訊息給這位使用者。Reject messages from: Use this section to block people from sending messages to this user.

    • 沒有寄件者: 選取此選項以指定信箱不會拒絕來自 Exchange 組織中任何寄件者的郵件。No senders: Select this option to specify that the mailbox won't reject messages from any senders in the Exchange organization. 此為預設選取的選項。This option is selected by default.

    • 下列清單中的寄件者: 選取此選項以指定信箱將拒絕來自 Exchange 組織中的寄件者的指定之一組的郵件。Senders in the following list: Select this option to specify that the mailbox will reject messages from a specified set of senders in your Exchange organization. 按一下 [新增加入圖示以顯示 [選取收件者] 頁面上,會顯示 Exchange 組織中所有收件者清單。Click Add Add Icon to display the Select Recipients page, which displays a list of all recipients in your Exchange organization. 選取想要的收件者,然後按一下 [確定]****。Select the recipients you want, add them to the list, and then click OK. 您也可以搜尋特定的收件者在搜尋方塊中輸入收件者的名稱,然後按一下 [搜尋搜尋圖示You can also search for a specific recipient by typing the recipient's name in the search box and then clicking Search Search icon.

成員隸屬Member Of

使用 [成員隸屬] 區段來檢視通訊群組或此使用者所屬的安全性群組的清單。Use the Member Of section to view a list of the distribution groups or security groups to which this user belongs. 您不能更改此頁上的成員資訊。You can't change membership information on this page. 請注意,使用者可能會符合組織中,一個或多個動態通訊群組的準則。Note that the user may match the criteria for one or more dynamic distribution groups in your organization. 不過,動態通訊群組不會顯示在這個頁面上,因為每次使用此群組時就會計算其成員資格。However, dynamic distribution groups aren't displayed on this page because their membership is calculated each time they're used.

郵件提示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 Online PowerShell 來變更郵件使用者內容Use Exchange Online PowerShell to change mail user properties

郵件使用者的內容會同時儲存在 Active Directory 和 Exchange 中。Properties for a mail user are stored in both Active Directory and Exchange. 一般而言,使用Get-userSet-user指令程式來檢視和變更組織及連絡人資訊的內容。In general, use the Get-User and Set-User cmdlets to view and change organization and contact information properties. 使用Get-mailuserSet-mailuser指令程式可檢視或變更郵件相關屬性,例如電子郵件地址、 郵件提示、 自訂屬性,以及是否郵件使用者是從地址清單隱藏。Use the Get-MailUser and Set-MailUser cmdlets to view or change mail-related properties, such email addresses, the MailTip, custom attributes, and whether the mail user is hidden from address lists.

使用Get-mailuserSet-mailuser指令程式來檢視和變更郵件使用者的內容。Use the Get-MailUser and Set-MailUser cmdlets to view and change properties for mail users. 如需相關資訊,請參閱下列主題:For information, see the following topics:

以下是一些使用 Exchange Online PowerShell 來變更郵件使用者內容的範例。Here are some examples of using Exchange Online PowerShell to change mail user properties.

此範例會設定 Pilar Pinilla 的外部電子郵件地址。This example sets the external email address for Pilar Pinilla.

Set-MailUser "Pilar Pinilla" -ExternalEmailAddress pilarp@tailspintoys.com

此範例會在組織的通訊錄中隱藏所有郵件使用者。This example hides all mail users from the organization's address book.

Get-MailUser | Set-MailUser -HiddenFromAddressListsEnabled $true

此範例會將所有郵件使用者的 [公司] 內容設定為 [Contoso]。This example sets the Company property for all mail users to Contoso.

Get-User -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'mailuser')} | Set-User -Company Contoso

此範例會將 [公司] 內容中值為 [Contoso] 的所有郵件使用者的 [CustomAttribute1] 內容設定為 [ContosoEmployee] 這個值。This example sets the CustomAttribute1 property to a value of ContosoEmployee for all mail users that have a value of Contoso in the Company property.

Get-User -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'mailuser') -and (Company -eq 'Contoso')}| Set-MailUser -CustomAttribute1 ContosoEmployee

如何知道這是否正常運作?How do you know this worked?

若要確認是否已成功變更郵件使用者的內容,請執行下列動作:To verify that you've successfully changed properties for mail users, do the following:

  • 在 EAC 中,選取郵件使用者,然後按一下 [編輯編輯圖示以檢視您變更的內容。In the EAC, select the mail user and then click Edit Edit icon to view the property that you changed.

  • 在 Exchange Online PowerShell 中使用Get-userGet-mailuser指令程式來驗證變更。In Exchange Online PowerShell, use the Get-User and Get-MailUser cmdlets to verify the changes. 使用 Exchange Online PowerShell 的其中一個優勢是,您可以檢視多個郵件連絡人的多個屬性。One advantage of using Exchange Online PowerShell is that you can view multiple properties for multiple mail contacts.

    Get-MailUser | Format-List Name,CustomAttribute1
    

    在上述所有郵件連絡人的 [公司] 內容設為 [Contoso] 的範例中,執行下列命令以驗證變更:In the example above where the Company property was set to Contoso for all mail contacts, run the following command to verify the changes:

    Get-User -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'mailuser')} | Format-List Name,Company
    

    在上述所有郵件使用者的 [CustomAttribute1] 內容設為 [ContosoEmployee] 的範例中,執行下列命令以驗證變更。In the example above where all mail users had the CustomAttribute1 property set to ContosoEmployee, run the following command to verify the changes.

    Get-MailUser | Format-List Name,CustomAttribute1
    

大量編輯郵件使用者Bulk edit mail users

您也可以使用 EAC 變更為多位郵件使用者選取的內容。 當您從 EAC 的連絡人清單中選取兩位或多位郵件使用者時,可以大量編輯的內容就會顯示在 [詳細資料] 窗格中。 變更其中一項內容時,變更將套用於所有選取的收件者。You can also use the EAC to change selected properties for multiple mail users. When you select two or more mail users 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 users, 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 users

  1. 在 EAC 中,瀏覽至 [收件者 > 連絡人In the EAC, navigate to Recipients > Contacts.

  2. 在連絡人清單中,選取兩位或多位郵件使用者。 您無法大量編輯郵件連絡人和郵件使用者的組合。In the list of contacts, select two or more mail users. You can't bulk edit a combination of mail contacts and mail users.

    提示

    您可以按住 Shift 鍵,並依序按一下您要編輯的第一位和最後一位郵件使用者,以選取多位相鄰的郵件使用者。 您也可以按住 Ctrl 鍵,並按一下您要編輯的每一位郵件使用者,以選取多位郵件使用者。You can select multiple adjacent mail users by holding down the Shift key and clicking the first mail user, and then clicking the last mail user you want to edit. You can also select multiple mail users 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 users, do one of the following:

  • 在 EAC 中,選取每個,您想大量編輯郵件使用者,然後按一下 [編輯編輯圖示若要檢視您已變更的內容。In the EAC, select each of the mail users that you bulk edited and then click Edit Edit icon to view the properties that you changed.

  • 在 Exchange Online PowerShell 中,使用Get-user指令程式來驗證變更。In Exchange Online PowerShell, use the Get-User cmdlet to verify the changes. 例如,假設您使用 EAC 大量編輯功能變更名為 a 材料 Corporation 廠商公司主管和所有郵件使用者的 office。For example, say you used the bulk edit feature in the EAC to change the manager and the office for all mail users from a vendor company named A. Datum Corporation. 若要確認這些變更,您可以在 Exchange Online PowerShell 中執行下列命令:To verify these changes, you could run the following command in Exchange Online PowerShell:

    Get-User -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'mailuser') -and (Company -eq 'Adatum')} | Format-List Name,Office,Manager
    

使用目錄同步處理來管理 Exchange Online 中的郵件使用者Use directory synchronization to manage mail users in Exchange Online

本章節提供管理 Exchange Online 中使用目錄同步處理的電子郵件使用者的相關資訊。This section provides information about managing email users by using directory synchronization in Exchange Online. 目錄同步處理的可用混合式客戶內部部署和雲端託管信箱,並完全託管的 Exchange Online 客戶其 Active Directory 的內部部署。Directory synchronization is available for hybrid customers with on-premises and cloud-hosted mailboxes, and for fully hosted Exchange Online customers whose Active Directory is on-premises.

附註Notes:

  • 如果您使用目錄同步作業管理收件者時,您仍然可以新增及管理使用者在 Microsoft 365 系統管理中心中,但它們不會與您在內部部署 Active Directory 同步。If you use directory synchronization to manage your recipients, you can still add and manage users in the Microsoft 365 admin center, but they will not be synchronized with your on-premises Active Directory. 這是因為目錄同步作業只會從內部部署 Active Directory 同步收件者至雲端。This is because directory synchronization only syncs recipients from your on-premises Active Directory to the cloud.

  • 建議搭配下列功能一起使用目錄同步處理:Using directory synchronization is recommended for use with the following features:

    • Outlook 安全寄件者和封鎖寄件者清單: 這些清單時進行同步處理至服務,將會優先於垃圾郵件篩選服務中。Outlook safe sender and blocked sender lists: When synchronized to the service, these lists will take precedence over spam filtering in the service. 這可讓使用者針對個別使用者或個別網域,管理他們自己的安全寄件者和封鎖的寄件者清單。This lets users manage their own safe sender and blocked sender lists on a per-user or per-domain basis.

    • 目錄架構邊緣封鎖 (DBEB): 如需 DBEB 的詳細資訊,請參閱使用目錄架構邊緣封鎖以拒絕郵件傳送至無效收件者Directory Based Edge Blocking (DBEB): For more information about DBEB, see Use Directory Based Edge Blocking to reject messages sent to invalid recipients.

    • 使用者垃圾郵件隔離區: 若要存取使用者垃圾郵件隔離區,使用者必須具有有效的 Office 365 使用者識別碼和密碼。End user spam quarantine: In order to access the end user spam quarantine, end users must have a valid Office 365 user ID and password. 客戶與內部部署信箱必須是有效的電子郵件使用者。Customers with on-premises mailboxes must be valid email users. >

    • 郵件流程規則 (也稱為傳輸規則): 當您使用目錄同步處理,您現有的 Active Directory 使用者和群組會自動上傳至雲端,您可以再建立郵件流程規則,針對特定的使用者及 (或)群組,而不必手動將它們新增透過 EAC 或 Exchange Online PowerShell。Mail flow rules (also known as transport rules): When you use directory synchronization, your existing Active Directory users and groups are automatically uploaded to the cloud, and you can then create mail flow rules that target specific users and/or groups without having to manually add them via the EAC or Exchange Online PowerShell. 請注意, 動態通訊群組無法透過目錄同步作業進行同步處理。Note that dynamic distribution groups can't be synchronized via directory synchronization.

開始之前Before you begin

取得必要權限,並做好目錄同步處理的準備工作,如為目錄同步作業做好準備所說明。Get the necessary permissions and prepare for directory synchronization, as described in Prepare for directory synchronization.

同步處理使用者目錄To synchronize user directories

  1. 啟動目錄同步處理,如啟動目錄同步處理所說明。Activate directory synchronization, as described in Activate directory synchronization.

  2. 設定目錄同步處理電腦,如設定您的目錄同步處理電腦所說明。Set up your directory synchronization computer, as described in Set up your directory sync computer.

  3. 同步處理您的目錄,如使用設定精靈同步處理您的目錄所說明。Synchronize your directories, as described in Use the Configuration Wizard to sync your directories.

    重要

    完成 Azure Active Directory 同步處理工具設定精靈 之後,您的 Active Directory 樹系中會建立 MSOL_AD_SYNC 帳戶。此帳戶將用來讀取和同步處理您的內部部署 Active Directory 資訊。為了讓目錄同步作業能夠正確運作,請確定有開啟您的本機目錄同步作業伺服器上的 TCP 443。When you finish the Azure Active Directory Sync Tool Configuration Wizard, the MSOL_AD_SYNC account is created in your Active Directory forest. This account is used to read and synchronize your on-premises Active Directory information. In order for directory synchronization to work correctly, make sure that TCP 443 on your local directory synchronization server is open.

  4. 啟動已同步處理的使用者,如啟用同步處理的使用者所說明。Activate synced users, as described in Activate synced users.

  5. 管理目錄同步處理,如管理目錄同步作業所說明。Manage directory synchronization, as described in Manage directory synchronization.

  6. 確認,Exchange Online 正確同步處理。Verify that Exchange Online is synchronizing correctly. In the EAC, go to Recipients > Contacts and view that the list of users was correctly synchronized from your on-premises environment.In the EAC, go to Recipients > Contacts and view that the list of users was correctly synchronized from your on-premises environment.