为邮箱配置邮件传递限制Configure message delivery restrictions for a mailbox

可以使用 EAC 或 Exchange 命令行管理程序 对是否将邮件传递给单个收件人进行限制。邮件传递限制可用于控制谁可以向组织中的用户发送邮件。例如,可以将邮箱配置为接受或拒绝特定用户发送的邮件,或者配置为仅接受来自 Exchange 组织中的用户的邮件。You can use the EAC or the Exchange Management Shell to place restrictions on whether messages are delivered to individual recipients. Message delivery restrictions are useful to control who can send messages to users in your organization. For example, you can configure a mailbox to accept or reject messages sent by specific users or to accept messages only from users in your Exchange organization.

本主题中介绍的邮件传递限制适用于所有收件人类型。有关不同收件人类型的详细信息,请参阅RecipientsThe message delivery restrictions covered in this topic apply to all recipient types. To learn more about the different recipient types, see Recipients.

有关与收件人相关的其他管理任务,请参阅下列主题:For additional management tasks related to recipients, see the following topics:

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

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

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 收件人权限主题中的"收件人设置权限"部分。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 Recipients 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 ProtectionHaving problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

使用 EAC 进行邮件传递限制Use the EAC to place message delivery restrictions

  1. In the EAC, navigate to Recipients > Mailboxes.In the EAC, navigate to Recipients > Mailboxes.

  2. 在用户邮箱列表中,单击要为其设置邮件传递限制的邮箱,然后单击 "编辑 编辑图标"。In the list of user mailboxes, click the mailbox that you want to set up message delivery restrictions for, and then click Edit Edit icon.

  3. On the mailbox properties page, click Mailbox Features.On the mailbox properties page, click Mailbox Features.

  4. 在“邮件传递限制”**** 下,单击“查看详情”**** 以查看并更改以下传递限制:Under Message Delivery Restrictions, click View details to view and change the following delivery restrictions:

    • 接收邮件来自:使用此部分可指定可以向此用户发送邮件的用户。Accept messages from: Use this section to specify who can send messages to this user.

    • 所有发件人:此选项指定用户可以接受来自所有发件人的邮件。All senders: This option specifies that the user can accept messages from all senders. 这包括 Exchange 组织中的发件人和外部发件人。This includes both senders in your Exchange organization and external senders. 这是默认选项。This is the default option. 仅当清除了 "要求所有发件人已通过身份验证" 复选框时,它才包括外部用户。It 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: This option specifies that the user can accept messages only from a specified set of senders in your Exchange organization. 单击 "添加 "添加图标可显示 Exchange 组织中所有收件人的列表。Click Add Add icon to display 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: This option prevents anonymous users from sending messages to the user. 其中包括 Exchange 组织外部的外部用户。This includes external users that are outside of your Exchange organization.

    • 拒绝来自以下内容的邮件:使用此部分可阻止用户向此用户发送邮件。Reject messages from: Use this section to block people from sending messages to this user.

    • 无发件人:此选项指定邮箱不会拒绝来自 Exchange 组织中任何发件人的邮件。No senders: This option specifies that the mailbox won't reject messages from any senders in the Exchange organization. 这是默认选项。This is the default option.

    • 以下列表中的发件人:此选项指定邮箱将拒绝来自 Exchange 组织中指定的一组发件人的邮件。Senders in the following list: This option specifies that the mailbox will reject messages from a specified set of senders in your Exchange organization. 单击 "添加 "添加图标可显示 Exchange 组织中所有收件人的列表。Click Add Add icon to display 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.

  5. 单击“确定”**** 关闭“邮件传递限制”**** 页面,然后单击“保存”**** 保存所做的更改。Click OK to close the Message Delivery Restrictions page, and then click Save to save your changes.

使用 Exchange 命令行管理程序 进行邮件传递限制Use the Exchange Management Shell to place message delivery restrictions

以下示例展示了如何使用 Exchange 命令行管理程序 为邮箱配置邮件传递限制。The following examples show how to use the Exchange Management Shell to configure message delivery restrictions for a mailbox. 对于其他收件人类型,请使用具有相同参数的相应的Set cmdlet。For other recipient types, use the corresponding Set- cmdlet with the same parameters.

此示例将 Robin Wood 的邮箱配置为仅接受来自用户 Lori Penor、Jeff Phillips 以及通讯组 Legal Team 1 的成员的邮件。This example configures the mailbox of Robin Wood to accept messages only from the users Lori Penor, Jeff Phillips, and members of the distribution group Legal Team 1.

Set-Mailbox -Identity "Robin Wood" -AcceptMessagesOnlyFrom "Lori Penor","Jeff Phillips" -AcceptMessagesOnlyFromDLMembers "Legal Team 1"

备注

如果要将邮箱配置为仅接受来自单个发件人的邮件,则必须使用_AcceptMessagesOnlyFrom_参数。If you're configuring a mailbox to accept messages only from individual senders, you have to use the AcceptMessagesOnlyFrom parameter. 如果要将邮箱设置为只接受来自作为特定通讯组成员的发件人的邮件,请使用_AcceptMessagesOnlyFromDLMembers_参数。If you're setting up a mailbox to accept messages only from senders that are members of a specific distribution group, use the AcceptMessagesOnlyFromDLMembers parameter.

此示例将用户 David Pelton 添加到 Robin Wood 的邮箱接受其邮件的用户列表中。This example adds the user named David Pelton to the list of users whose messages will be accepted by the mailbox of Robin Wood.

Set-Mailbox -Identity "Robin Wood" -AcceptMessagesOnlyFrom @{add="David Pelton"}

此示例将 Robin Wood 的邮箱配置为需要对所有发件人进行身份验证。这意味着该邮箱将仅接受 Exchange 组织中的其他用户所发送的邮件。This example configures the mailbox of Robin Wood to require all senders to be authenticated. This means the mailbox will only accept messages sent by other users in your Exchange organization.

Set-Mailbox -Identity "Robin Wood" -RequireSenderAuthenticationEnabled $true

此示例将 Robin Wood 的邮箱配置为拒绝来自用户 Joe Healy、Terry Adams 以及通讯组 Legal Team 2 的成员的邮件。This example configures the mailbox of Robin Wood to reject messages from the users Joe Healy, Terry Adams, and members of the distribution group Legal Team 2.

Set-Mailbox -Identity "Robin Wood" -RejectMessagesFrom "Joe Healy","Terry Adams" -RejectMessagesFromDLMembers "Legal Team 2"

此示例将 Robin Wood 的邮箱配置为也拒绝组 Legal Team 3 的成员发送的邮件。This example configures the mailbox of Robin Wood to also reject messages sent by members of the group Legal Team 3.

Set-Mailbox -Identity "Robin Wood" -RejectMessagesFromDLMembers @{add="Legal Team 3"}

备注

如果要将邮箱设置为拒绝来自单个发件人的邮件,则必须使用_RejectMessagesFrom_参数。If you're setting up a mailbox to reject messages from individual senders, you have to use the RejectMessagesFrom parameter. 如果要将邮箱设置为拒绝来自作为特定通讯组成员的发件人的邮件,请使用_RejectMessagesFromDLMembers_参数。If you're setting up a mailbox to reject messages from senders that are members of a specific distribution group, use the RejectMessagesFromDLMembers parameter.

有关与设置不同类型的收件人的传递限制相关的详细语法和参数信息,请参阅下列主题:For detailed syntax and parameter information related to placing delivery restrictions for different types of recipients, see the following topics:

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

若要验证是否为用户邮箱成功设置了邮件传递限制,请执行下列操作之一:To verify that you've successfully placed message delivery restrictions for a user mailbox, do one the following:

  1. In the EAC, navigate to Recipients > Mailboxes.In the EAC, navigate to Recipients > Mailboxes.

  2. 在用户邮箱列表中,单击要验证其邮件传递限制的邮箱,然后单击 "编辑 编辑图标"。In the list of user mailboxes, click the mailbox that you want to verify the message delivery restrictions for, and then click Edit Edit icon.

  3. 在邮箱属性页上,单击“邮箱功能”****。On the mailbox properties page, click Mailbox Features.

  4. 在“邮件传递限制”**** 下,单击“查看详情”**** 以验证邮箱的传递限制。Under Message Delivery Restrictions, click View details to verify the delivery restrictions for the mailbox.

或者Or

在 Exchange 命令行管理程序 中运行以下命令。Run the following command in the Exchange Management Shell.

Get-Mailbox <identity> | Format-List AcceptMessagesOnlyFrom,AcceptMessagesOnlyFromDLMembers,RejectMessagesFrom,RejectMessagesFromDLMembers,RequireSenderAuthenticationEnabled