Exchange Server 中的邮件流规则操作Mail flow rule actions in Exchange Server

Actions in mail flow rules (also known as transport rules) specify what you want to do to messages that match conditions of the rule.Actions in mail flow rules (also known as transport rules) specify what you want to do to messages that match conditions of the rule. For example, you can create a rule that forwards message from specific senders to a moderator, or adds a disclaimer or personalized signature to all outbound messages.For example, you can create a rule that forwards message from specific senders to a moderator, or adds a disclaimer or personalized signature to all outbound messages.

Actions typically require additional properties.Actions typically require additional properties. For example, when the rule redirects a message, you need to specify where to redirect the message.For example, when the rule redirects a message, you need to specify where to redirect the message. Some actions have multiple properties that are available or required.Some actions have multiple properties that are available or required. For example, when the rule adds a header field to the message header, you need to specify both the name and value of the header.For example, when the rule adds a header field to the message header, you need to specify both the name and value of the header. When the rule adds a disclaimer to messages, you need to specify the disclaimer text, but you can also specify where to insert the text, or what to do if the disclaimer can't be added to the message.When the rule adds a disclaimer to messages, you need to specify the disclaimer text, but you can also specify where to insert the text, or what to do if the disclaimer can't be added to the message. Typically, you can configure multiple actions in a rule, but some actions are exclusive.Typically, you can configure multiple actions in a rule, but some actions are exclusive. For example, one rule can't reject and redirect the same message.For example, one rule can't reject and redirect the same message.

有关 Exchange Server 中的邮件流规则的详细信息,包括如何处理多个操作,请参阅Exchange Server 中的邮件流规则For more information about mail flow rules in Exchange Server, including how multiple actions are handled, see Mail flow rules in Exchange Server.

有关邮件流规则中的条件和例外的详细信息,请参阅邮件流规则条件和 Exchange Server 中的例外(谓词)For more information about conditions and exceptions in mail flow rules, see Mail flow rule conditions and exceptions (predicates) in Exchange Server.

邮箱服务器上邮件流规则的操作Actions for mail flow rules on Mailbox servers

邮箱服务器上邮件流规则中的可用操作如下表所述。The actions that are available in mail flow rules on Mailbox servers are described in the following table. "属性值[属性值]" 部分介绍了每个属性的有效值。Valid values for each property are described in Property values[Property values] section.

注意Notes:

  • After you select an action in the Exchange admin center (EAC), the value that's ultimately shown in the Do the following field is often different from the click path you selected.After you select an action in the Exchange admin center (EAC), the value that's ultimately shown in the Do the following field is often different from the click path you selected. Also, when you create new rules, you can sometimes (depending on the selections you make) select a short action name from a template (a filtered list of actions) instead of following the complete click path.Also, when you create new rules, you can sometimes (depending on the selections you make) select a short action name from a template (a filtered list of actions) instead of following the complete click path. The short names and full click path values are shown in the EAC column in the table.The short names and full click path values are shown in the EAC column in the table.

  • Get-TransportRuleAction cmdlet 返回的一些操作名称不同于相应的参数名,并且一个操作可能需要多个参数。The names of some of the actions that are returned by the Get-TransportRuleAction cmdlet are different than the corresponding parameter names, and multiple parameters might be required for an action.

EAC 中的操作Action in the EAC Exchange 命令行管理程序中的操作参数Action parameter in the Exchange Management Shell 属性Property 说明Description 适用对象Available in
将要审批的邮件转发给这些人Forward the message for approval to these people

转发邮件以供审批 >给这些人员Forward the message for approval > to these people
ModerateMessageByUserModerateMessageByUser Addresses Forwards the message to the specified moderators as an attachment wrapped in an approval request.Forwards the message to the specified moderators as an attachment wrapped in an approval request. For more information, see Common message approval scenarios.For more information, see Common message approval scenarios. You can't use a distribution group as a moderator.You can't use a distribution group as a moderator. Exchange 2010 或更高版本Exchange 2010 or later
将要审批的邮件转发给发件人的经理Forward the message for approval to the sender's manager

将要审批的邮件转发给 > 发件人的经理Forward the message for approval > to the sender's manager
ModerateMessageByManagerModerateMessageByManager 不适用n/a 将邮件转发给发件人的经理以进行审批。Forwards the message to the sender's manager for approval.

This action only works if the sender's Manager attribute is defined in Active Directory.This action only works if the sender's Manager attribute is defined in Active Directory. Otherwise, the message is delivered to the recipients without moderation.Otherwise, the message is delivered to the recipients without moderation.
Exchange 2010 或更高版本Exchange 2010 or later
将邮件重定向给这些收件人。Redirect the message to these recipients

将邮件重定向给 > 这些收件人Redirect the message to > these recipients
RedirectMessageToRedirectMessageTo Addresses Redirects the message to the specified recipients.Redirects the message to the specified recipients. The message isn't delivered to the original recipients, and no notification is sent to the sender or the original recipients.The message isn't delivered to the original recipients, and no notification is sent to the sender or the original recipients. Exchange 2010 或更高版本Exchange 2010 or later
拒绝邮件并提供说明Reject the message with the explanation

阻止邮件 > 拒绝邮件并包括说明Block the message > reject the message and include an explanation
RejectMessageReasonTextRejectMessageReasonText String Returns the message to the sender in a non-delivery report (also known as an NDR or bounce message) with the specified text as the rejection reason.Returns the message to the sender in a non-delivery report (also known as an NDR or bounce message) with the specified text as the rejection reason. The recipient doesn't receive the original message or notification.The recipient doesn't receive the original message or notification.

使用的默认增强状态代码为 5.7.1The default enhanced status code that's used is 5.7.1.

在 Exchange 命令行管理程序中创建或修改规则时,可以使用_RejectMessageEnhancedStatusCode_参数指定 DSN 代码。When you create or modify the rule in the Exchange Management Shell, you can specify the DSN code by using the RejectMessageEnhancedStatusCode parameter.
Exchange 2010 或更高版本Exchange 2010 or later
拒绝具有增强状态代码的邮件Reject the message with the enhanced status code

阻止邮件 > 拒绝具有以下增强状态代码的邮件Block the message > reject the message with the enhanced status code of
RejectMessageEnhancedStatusCodeRejectMessageEnhancedStatusCode DSNEnhancedStatusCode Returns the message to the sender in an NDR with the specified enhanced delivery status notification (DSN) code.Returns the message to the sender in an NDR with the specified enhanced delivery status notification (DSN) code. The recipient doesn't receive the original message or notification.The recipient doesn't receive the original message or notification.

有效的 DSN 代码是 5.7.15.7.900 通过 5.7.999Valid DSN codes are 5.7.1 or 5.7.900 through 5.7.999.

使用的默认原因文本是 Delivery not authorized, message refusedThe default reason text that's used is Delivery not authorized, message refused.

在 Exchange 命令行管理程序中创建或修改规则时,可以使用_RejectMessageReasonText_参数指定拒绝原因文本。When you create or modify the rule in the Exchange Management Shell, you can specify the rejection reason text by using the RejectMessageReasonText parameter.
Exchange 2010 或更高版本Exchange 2010 or later
在不通知任何人的情况下删除邮件Delete the message without notifying anyone

阻止邮件 > 在不通知任何人的情况下删除邮件Block the message > delete the message without notifying anyone
DeleteMessageDeleteMessage n/a 默认删除电子邮件,而不向收件人或发件人发送通知。Silently drops the message without sending a notification to the recipient or the sender. Exchange 2010 或更高版本Exchange 2010 or later
将收件人添加到"密件抄送"框Add recipients to the Bcc box

将收件人 > 添加到"密件抄送"框Add recipients > to the Bcc box
BlindCopyToBlindCopyTo Addresses Adds one or more recipients to the Bcc field of the message.Adds one or more recipients to the Bcc field of the message. The original recipients aren't notified, and they can't see the additional addresses.The original recipients aren't notified, and they can't see the additional addresses. Exchange 2010 或更高版本Exchange 2010 or later
将收件人添加到"收件人"框Add recipients to the To box

将收件人 > 添加到"收件人"框Add recipients > to the To box
AddToRecipientsAddToRecipients Addresses Adds one or more recipients to the To field of the message.Adds one or more recipients to the To field of the message. The original recipients can see the additional addresses.The original recipients can see the additional addresses. Exchange 2010 或更高版本Exchange 2010 or later
将收件人添加到"抄送"框Add recipients to the Cc box

将收件人 > 添加到"抄送"框Add recipients > to the Cc box
CopyToCopyTo Addresses Adds one or more recipients to the Cc field of the message.Adds one or more recipients to the Cc field of the message. The original recipients can see the additional address.The original recipients can see the additional address. Exchange 2010 或更高版本Exchange 2010 or later
将发件人的经理添加为收件人Add the sender's manager as a recipient

添加收件人 > 将发件人的经理添加为收件人Add recipients > add the sender's manager as a recipient
AddManagerAsRecipientTypeAddManagerAsRecipientType AddedManagerAction 将发件人的经理添加到邮件中作为指定收件人类型 (ToCcBcc),或在不通知发件人或收件人的情况下将邮件重定向到发件人的经理。Adds the sender's manager to the message as the specified recipient type (To, Cc, Bcc), or redirects the message to the sender's manager without notifying the sender or the recipient.

此操作仅在发件人的 Manager 属性于 Active Directory 中定义时适用。This action only works if the sender's Manager attribute is defined in Active Directory.
Exchange 2010 或更高版本Exchange 2010 or later
附加免责声明Append the disclaimer

对邮件应用免责声明 > 附加免责声明Apply a disclaimer to the message > append a disclaimer
ApplyHtmlDisclaimerTextApplyHtmlDisclaimerText

ApplyHtmlDisclaimerFallbackActionApplyHtmlDisclaimerFallbackAction

ApplyHtmlDisclaimerTextLocationApplyHtmlDisclaimerTextLocation
首要属性: DisclaimerTextFirst property: DisclaimerText

第二个属性:DisclaimerFallbackActionSecond property: DisclaimerFallbackAction

第三个属性(仅限 Exchange 命令行管理程序):DisclaimerTextLocationThird property (Exchange Management Shell only): DisclaimerTextLocation
将指定的 HTML 免责声明应用到邮件末尾。Applies the specified HTML disclaimer to the end of the message.

在 Exchange 命令行管理程序中创建或修改规则时,请使用_ApplyHtmlDisclaimerTextLocation_参数和值 AppendWhen you create or modify the rule in the Exchange Management Shell, use the ApplyHtmlDisclaimerTextLocation parameter with the value Append.
Exchange 2010 或更高版本Exchange 2010 or later
在开头附加免责声明Prepend the disclaimer

对邮件应用免责声明 > 在开头附加免责声明Apply a disclaimer to the message > prepend a disclaimer
ApplyHtmlDisclaimerTextApplyHtmlDisclaimerText

ApplyHtmlDisclaimerFallbackActionApplyHtmlDisclaimerFallbackAction

ApplyHtmlDisclaimerTextLocationApplyHtmlDisclaimerTextLocation
首要属性: DisclaimerTextFirst property: DisclaimerText

第二个属性:DisclaimerFallbackActionSecond property: DisclaimerFallbackAction

第三个属性(仅限 Exchange 命令行管理程序):DisclaimerTextLocationThird property (Exchange Management Shell only): DisclaimerTextLocation
将指定的 HTML 免责声明应用到邮件开头。Applies the specified HTML disclaimer to the beginning of the message.

在 Exchange 命令行管理程序中创建或修改规则时,请使用_ApplyHtmlDisclaimerTextLocation_参数和值 PrependWhen you create or modify the rule in the Exchange Management Shell, use the ApplyHtmlDisclaimerTextLocation parameter with the value Prepend.
Exchange 2010 或更高版本Exchange 2010 or later
删除此头Remove this header

修改邮件属性 > 删除邮件头Modify the message properties > remove a message header
RemoveHeaderRemoveHeader MessageHeaderField 可以从邮件头中删除指定的头字段。Removes the specified header field from the message header. Exchange 2010 或更高版本Exchange 2010 or later
将邮件头设置为此值Set the message header to this value

修改邮件属性 > 设置邮件头Modify the message properties > set a message header
SetHeaderNameSetHeaderName

SetHeaderValueSetHeaderValue
首要属性: MessageHeaderFieldFirst property: MessageHeaderField

第二个属性:StringSecond property: String
在邮件头中添加或修改指定的头字段,并将头字段设置为指定值。Adds or modifies the specified header field in the message header, and sets the header field to the specified value. Exchange 2010 或更高版本Exchange 2010 or later
应用邮件分类Apply a message classification

修改邮件属性 > 应用邮件分类Modify the message properties > apply a message classification
ApplyClassificationApplyClassification MessageClassification 将指定邮件分类应用到邮件。Applies the specified message classification to the message. Exchange 2010 或更高版本Exchange 2010 or later
将垃圾邮件可信度 (SCL) 设置为Set the spam confidence level (SCL) to

修改邮件属性 > 设置垃圾邮件可信度 (SCL)Modify the message properties > set the spam confidence level (SCL)
SetSCLSetSCL SCLValue 将此邮件的垃圾邮件可信度 (SCL) 设置为指定值。Sets the spam confidence level (SCL) of the message to the specified value. Exchange 2010 或更高版本Exchange 2010 or later
将权限保护应用于邮件Apply rights protection to the message with

修改邮件安全性 > 应用权限保护Modify the message security > apply rights protection
ApplyRightsProtectionTemplateApplyRightsProtectionTemplate RMSTemplate 将指定的权限管理服务 (RMS) 模板应用到邮件中。Applies the specified Rights Management Services (RMS) template to the message.

针对每个邮箱,RMS 需要 Exchange 企业版客户端访问许可证 (CAL)。RMS requires Exchange Enterprise client access licenses (CALs) for each mailbox. 有关 Cal 的详细信息,请参阅Exchange 许可常见问题解答For more information about CALs, see Exchange licensing FAQs.
Exchange 2010 或更高版本Exchange 2010 or later
需要 TLS 加密Require TLS encryption

修改邮件安全性 > 要求 TLS 加密Modify the message security > require TLS encryption
RouteMessageOutboundRequireTlsRouteMessageOutboundRequireTls n/a 强制出站邮件通过 TLS 加密连接进行路由。Forces the outbound messages to be routed over a TLS encrypted connection. Exchange 2013 或更高版本Exchange 2013 or later
在邮件主题前面追加Prepend the subject of the message with PrependSubjectPrependSubject String Adds the specified text to the beginning of the Subject field of the message.Adds the specified text to the beginning of the Subject field of the message. Consider using a space or a colon (:) as the last character of the specified text to differentiate it from the original subject text.Consider using a space or a colon (:) as the last character of the specified text to differentiate it from the original subject text.

若要禁止将同一字符串添加到已包含主题文本的邮件中(例如,"答复"),请向该规则添加主题 "包含"ExceptIfSubjectContainsWords)例外。To prevent the same string from being added to messages that already contain the text in the subject (for example, replies), add the The subject includes (ExceptIfSubjectContainsWords) exception to the rule.
Exchange 2010 或更高版本Exchange 2010 or later
使用策略提示通知发件人Notify the sender with a Policy Tip NotifySenderNotifySender

RejectMessageReasonTextRejectMessageReasonText

RejectMessageEnhancedStatusCode(仅 Exchange 命令行管理程序)RejectMessageEnhancedStatusCode (Exchange Management Shell only)
首要属性: NotifySenderTypeFirst property: NotifySenderType

第二个属性:StringSecond property: String

第三个属性(仅限 Exchange 命令行管理程序):DSNEnhancedStatusCodeThird property (Exchange Management Shell only): DSNEnhancedStatusCode
邮件匹配 DLP 策略时通知发件人或阻止邮件。Notifies the sender or blocks the message when the message matches a DLP policy.

使用此操作时,需要使用“邮件包含敏感信息”(MessageContainsDataClassification) 条件。When you use this action, you need to use the The message contains sensitive information (MessageContainsDataClassification condition.

在 Exchange 命令行管理程序中创建或修改规则时, _RejectMessageReasonText_参数是可选的。When you create or modify the rule in the Exchange Management Shell, the RejectMessageReasonText parameter is optional. 如果不使用此参数,则使用默认文本 Delivery not authorized, message refusedIf you don't use this parameter, the default text Delivery not authorized, message refused is used.

在 Exchange 命令行管理程序中,您还可以使用_RejectMessageEnhancedStatusCode_参数来指定增强状态代码。In the Exchange Management Shell, you can also use the RejectMessageEnhancedStatusCode parameter to specify the enhanced status code. 如果不使用此参数,则使用默认的增强状态代码 5.7.1If you don't use this parameter, the default enhanced status code 5.7.1 is used.

此操作将限制其他条件、例外以及可以在规则中配置的操作。This action limits the other conditions, exceptions, and actions that you can configure in the rule.
Exchange 2013 或更高版本Exchange 2013 or later
生成事件报告并将它发送到Generate incident report and send it to GenerateIncidentReportGenerateIncidentReport

IncidentReportContentIncidentReportContent
首要属性: AddressesFirst property: Addresses

第二个属性:IncidentReportContentSecond property: IncidentReportContent
将包含指定内容的事件报告发送给指定收件人。Sends an incident report that contains the specified content to the specified recipients.

如果邮件与组织中的数据丢失防护 (DLP) 策略相匹配,则将为其生成一个事件报告。An incident report is generated for messages that match data loss prevention (DLP) policies in your organization.
Exchange 2013 或更高版本Exchange 2013 or later
使用邮件通知收件人Notify the recipient with a message GenerateNotificationGenerateNotification NotificationMessageText Specifies the text, HTML tags, and message keywords to include in the notification message that's sent to the message's recipients.Specifies the text, HTML tags, and message keywords to include in the notification message that's sent to the message's recipients. For example, you can notify recipients that the message was rejected by the rule, or marked as spam and delivered to their Junk Email folder.For example, you can notify recipients that the message was rejected by the rule, or marked as spam and delivered to their Junk Email folder. Exchange 2016 或更高版本Exchange 2016 or later
此规则的属性部分 > 使用以下严重性级别审核此规则Properties of this rule section > Audit this rule with severity level SetAuditSeveritySetAuditSeverity AuditSeverityLevel 指定是否执行以下操作:Specifies whether to:
•在邮件跟踪日志中阻止生成事件报告和相应的条目。• Prevent the generation of an incident report and the corresponding entry in the message tracking log.
•使用指定的严重级别(低、中或高)生成事件报告和邮件跟踪日志中对应的条目。• Generate an incident report and the corresponding entry in the message tracking log with the specified severity level (low, medium, or high).
Exchange 2013 或更高版本Exchange 2013 or later
此规则的属性 部分 > 停止处理更多规则Properties of this rule section > Stop processing more rules

更多选项 > 此规则的属性部分 > 停止处理更多规则More options > Properties of this rule section > Stop processing more rules
StopRuleProcessingStopRuleProcessing 不适用n/a 在邮件受规则影响后进行指定,这样免于邮件被其他规则处理。Specifies that after the message is affected by the rule, the message is exempt from processing by other rules. Exchange 2013 或更高版本Exchange 2013 or later

边缘传输服务器上邮件流规则的操作Actions for mail flow rules on Edge Transport servers

A small subset of actions that are available on Mailbox servers are also available on Edge Transport servers, but there are also some actions that are only available on Edge Transport servers.A small subset of actions that are available on Mailbox servers are also available on Edge Transport servers, but there are also some actions that are only available on Edge Transport servers. There's no EAC on Edge Transport servers, so you can only manage mail flow rules in the Exchange Management Shell on the local Edge Transport server.There's no EAC on Edge Transport servers, so you can only manage mail flow rules in the Exchange Management Shell on the local Edge Transport server. The actions are described in the following table.The actions are described in the following table. The properties types are described in the Property values section.The properties types are described in the Property values section.

Exchange 命令行管理程序中的操作参数Action parameter in the Exchange Management Shell 属性Property 说明Description 可用于Available on 适用对象Available in
AddToRecipientsAddToRecipients Addresses Adds one or more recipients to the To field of the message.Adds one or more recipients to the To field of the message. The original recipients can see the additional addresses.The original recipients can see the additional addresses. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
BlindCopyToBlindCopyTo Addresses Adds one or more recipients to the Bcc field of the message.Adds one or more recipients to the Bcc field of the message. The original recipients aren't notified, and they can't see the additional addresses.The original recipients aren't notified, and they can't see the additional addresses. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
CopyToCopyTo Addresses Adds one or more recipients to the Cc field of the message.Adds one or more recipients to the Cc field of the message. The original recipients can see the additional address.The original recipients can see the additional address. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
DeleteMessageDeleteMessage 不适用n/a 默认删除电子邮件,而不向收件人或发件人发送通知。Silently drops the message without sending a notification to the recipient or the sender. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
DisconnectDisconnect 不适用n/a 可以断开发送服务器与边缘传输服务器之间的 SMTP 连接,而不生成 NDR。Ends the SMTP connection between the sending server and the Edge Transport server without generating an NDR. 仅边缘传输服务器Edge Transport servers only Exchange 2010 或更高版本Exchange 2010 or later
LogEventTextLogEventText String Generates an event with the specified text in the Application log of the local Edge Transport server.Generates an event with the specified text in the Application log of the local Edge Transport server. The entry contains the following information:The entry contains the following information:
级别InformationLevel: Information
MSExchange Messaging PoliciesSource: MSExchange Messaging Policies
事件 ID4000Event ID: 4000
任务类别RulesTask Category: Rules
EventDataThe following message is logged by an action in the rules: <text you specify>.EventData: The following message is logged by an action in the rules: <text you specify>.
仅边缘传输服务器Edge Transport servers only Exchange 2010 或更高版本Exchange 2010 or later
PrependSubjectPrependSubject String Adds the specified text to the beginning of the Subject field of the message.Adds the specified text to the beginning of the Subject field of the message. Consider using a space or a colon (:) as the last character of the specified text to differentiate it from the original subject.Consider using a space or a colon (:) as the last character of the specified text to differentiate it from the original subject. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
QuarantineQuarantine n/a Delivers the message to the quarantine mailbox that's defined in the content filtering configuration on the Edge Transport server.Delivers the message to the quarantine mailbox that's defined in the content filtering configuration on the Edge Transport server. For more information, see Configure a spam quarantine mailbox.For more information, see Configure a spam quarantine mailbox.

如果没有配置隔离邮箱,则会将邮件以 NDR 的形式退回给发件人。If the quarantine mailbox isn't configured, the message is returned to the sender in an NDR.
仅边缘传输服务器Edge Transport servers only Exchange 2010 或更高版本Exchange 2010 or later
RedirectMessageToRedirectMessageTo Addresses Redirects the message to the specified recipients.Redirects the message to the specified recipients. The message isn't delivered to the original recipients, and no notification is sent to the sender or the original recipients.The message isn't delivered to the original recipients, and no notification is sent to the sender or the original recipients. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
RemoveHeaderRemoveHeader MessageHeaderField 可以从邮件头中删除指定的头字段。Removes the specified header field from the message header. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
SetHeaderNameSetHeaderName

SetHeaderValueSetHeaderValue
首要属性: MessageHeaderFieldFirst property: MessageHeaderField

第二个属性:StringSecond property: String
在邮件头中添加或修改指定的头字段,并将头字段设置为指定值。Adds or modifies the specified header field in the message header, and sets the header field to the specified value. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
SetSCLSetSCL SCLValue 将此邮件的 SCL 设置为指定值。Sets the SCL of the message to the specified value. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2010 或更高版本Exchange 2010 or later
SmtpRejectMessageRejectTextSmtpRejectMessageRejectText

SmtpRejectMessageRejectStatusCodeSmtpRejectMessageRejectStatusCode
首要属性: StringFirst property: String

第二个属性:SMTPStatusCodeSecond property: SMTPStatusCode
Ends the SMTP connection between the sending server and the Edge Transport server with the specified SMTP status code and the specified rejection text.Ends the SMTP connection between the sending server and the Edge Transport server with the specified SMTP status code and the specified rejection text. The recipient doesn't receive the original message or notification.The recipient doesn't receive the original message or notification.

SMTP 状态代码的有效值是 400 500 在 RFC 3463 中定义的整数。Valid values for the SMTP status code are integers from 400 through 500 as defined in RFC 3463.

如果在不指定 SMTP 状态代码的情况下指定拒绝文本,则将 550 使用默认代码。If you specify the rejection text without specifying the SMTP status code, the default code 550 is used.

如果在不指定拒绝文本的情况下指定 SMTP 状态代码,则使用的文本是 Delivery not authorized, message refusedIf you specify the SMTP status code without specifying the rejection text, the text that's used is Delivery not authorized, message refused.
仅边缘传输服务器Edge Transport servers only Exchange 2010 或更高版本Exchange 2010 or later
StopRuleProcessingStopRuleProcessing n/a 在邮件受规则影响后进行指定,这样免于邮件被其他规则处理。Specifies that after the message is affected by the rule, the message is exempt from processing by other rules. 邮箱服务器和边缘服务器Mailbox servers and Edge Transport servers Exchange 2013 或更高版本Exchange 2013 or later

属性值Property values

用于邮件流规则中操作的属性值如下表所述。The property values that are used for actions in mail flow rules are described in the following table.

属性Property 有效值Valid values 描述Description
AddedManagerAction 下列值之一:One of the following values:
若要To
抄送Cc
BccBcc
重定向Redirect
指定如何在邮件中包含发件人的经理。Specifies how to include the sender's manager in messages.

如果选择" 收件人"、" 抄送"或" 密件抄送",则会将发件人的经理在指定字段中添加为收件人。If you select To, Cc, or Bcc, the sender's manager is added as a recipient in the specified field.

如果选择" 重定向",邮件仅会发送给发件人的经理,而不通知发件人或收件人。If you select Redirect, the message is only delivered to the sender's manager without notifying the sender or the recipient.

此操作仅在发件人的 Manager 属性于 Active Directory 中定义时适用。This action only works if the sender's Manager attribute is defined in Active Directory.
Addresses Exchange 收件人Exchange recipients Depending on the action, you might be able to specify any mail-enabled object in the organization, or you might be limited to a specific object type.Depending on the action, you might be able to specify any mail-enabled object in the organization, or you might be limited to a specific object type. Typically, you can select multiple recipients, but you can only send an incident report to one recipient.Typically, you can select multiple recipients, but you can only send an incident report to one recipient.
AuditSeverityLevel 下列值之一:One of the following values:
•取消选中 "使用严重性级别审核此规则",或选择 "使用未指定值的严重性级别审核此规则" ( DoNotAudit• Uncheck Audit this rule with severity level, or select Audit this rule with severity level with the value Not specified (DoNotAudit)
Low
中等Medium
High
" "、" "或" "值指定分配到事件报告和邮件跟踪日志中相应条目的严重性级别。The values Low, Medium, or High specify the severity level that's assigned to the incident report and to the corresponding entry in the message tracking log.

其他值防止生成事件报告,并防止相应条目被写入邮件跟踪日志中。The other value prevents an incident report from being generated, and prevents the corresponding entry from being written to the message tracking log.
DisclaimerFallbackAction 下列值之一:One of the following values:
包装Wrap
忽略Ignore
拒绝Reject
Specifies what to do if the disclaimer can't be applied to a message.Specifies what to do if the disclaimer can't be applied to a message. There are situations where the contents of a message can't be altered (for example, the message is encrypted).There are situations where the contents of a message can't be altered (for example, the message is encrypted). The available fallback actions are:The available fallback actions are:

Wrap:原始邮件封装在新的邮件信封中,并将免责声明文本插入到新邮件中。Wrap: The original message is wrapped in a new message envelope, and the disclaimer text is inserted into the new message. 此值为默认值。This is the default value.
•后续的邮件流规则将应用于新的邮件信封,而不是原始邮件。• Subsequent mail flow rules are applied to the new message envelope, not to the original message. 因此,使用比其他规则更低的优先级配置这些规则。Therefore, configure these rules with a lower priority than other rules.
•如果原始邮件不能包装在新的邮件信封中,则不会传递原始邮件。• If the original message can't be wrapped in a new message envelope, the original message isn't delivered. 邮件将以 NDR 形式退回给发件人。The message is returned to the sender in an NDR.

Ignore:忽略该规则,并在不声明的情况下传递邮件Ignore: The rule is ignored and the message is delivered without the disclaimer

拒绝:将邮件以 NDR 的的的发件人的邮件返回给发件人。Reject: The message is returned to the sender in an NDR.
DisclaimerText HTML 字符串HTML string Specifies the disclaimer text, which can include HTML tags, inline cascading style sheet (CSS) tags, and images by using the IMG tag.Specifies the disclaimer text, which can include HTML tags, inline cascading style sheet (CSS) tags, and images by using the IMG tag. The maximum length is 5000 characters, including tags.The maximum length is 5000 characters, including tags.
DisclaimerTextLocation 单个值: AppendPrependSingle value: Append or Prepend 在 Exchange 命令行管理程序中,使用_ApplyHtmlDisclaimerTextLocation_指定邮件中免责声明文本的位置。In the Exchange Management Shell, you use the ApplyHtmlDisclaimerTextLocation to specify the location of the disclaimer text in the message.

Append:将免责声明添加到邮件正文的末尾。Append: Add the disclaimer to the end of the message body. 此值为默认值。This is the default value.

Prepend:将免责声明添加到邮件正文的开头。Prepend: Add the disclaimer to the beginning of the message body.
DSNEnhancedStatusCode 单个 DSN 代码值:Single DSN code value:
5.7.15.7.1
5.7.900 通过5.7.9995.7.900 through 5.7.999
指定使用的 DSN 代码。Specifies the DSN code that's used. 通过使用 New-SystemMessage cmdlet,可以创建自定义 DSN。You can create custom DSNs by using the New-SystemMessage cmdlet.

如果未指定拒绝原因文本和 DSN 代码,则使用的默认原因文本是 Delivery not authorized, message refusedIf you don't specify the rejection reason text along with the DSN code, the default reason text that's used is Delivery not authorized, message refused.

在 Exchange 命令行管理程序中创建或修改规则时,可以使用_RejectMessageReasonText_参数指定拒绝原因文本。When you create or modify the rule in the Exchange Management Shell, you can specify the rejection reason text by using the RejectMessageReasonText parameter.
IncidentReportContent 下列值中的一个或多个:One or more of the following values:
发件人Sender
收件人Recipients
主题Subject
"抄送" 收件人CcCc'd recipients (Cc)
密件抄送收件人BccBcc'd recipients (Bcc)
严重度Severity
发件人替代信息OverrideSender override information (Override)
匹配规则RuleDetectionsMatching rules (RuleDetections)
假肯定报告FalsePositiveFalse positive reports (FalsePositive)
检测到的数据分类DataClassificationsDetected data classifications (DataClassifications)
匹配内容IdMatchMatching content (IdMatch)
原始邮件AttachOriginalMailOriginal mail (AttachOriginalMail)
Specifies the original message properties to include in the incident report.Specifies the original message properties to include in the incident report. You can choose to include any combination of these properties.You can choose to include any combination of these properties. In addition to the properties you specify, the message ID is always included.In addition to the properties you specify, the message ID is always included. The available properties are:The available properties are:

发件人:原始邮件的发件人。Sender: The sender of the original message.

收件人抄送收件人密件抄送收件人:邮件的所有收件人,或仅 " Cc " 或 "Bcc " 字段中的收件人。Recipients, Cc'd recipients, and Bcc'd recipients: All recipients of the message, or only the recipients in the Cc or Bcc fields. 对于每个属性,事件报告中只包含前 10 个收件人。For each property, only the first 10 recipients are included in the incident report.

Subject:原始邮件的 "主题" 字段。Subject: The Subject field of the original message.

严重性:触发的规则的审核严重性。Severity: The audit severity of the rule that was triggered. 邮件跟踪日志包括所有审核严重性级别,并可以按审核严重性进行筛选。Message tracking logs include all the audit severity levels, and can be filtered by audit severity. 在 EAC 中,如果清除 "使用严重性级别审核此规则" 复选框(在 Exchange 命令行管理程序中, _SetAuditSeverity_参数值 DoNotAudit ),则规则匹配不会显示在规则报告中。In the EAC, if you clear the Audit this rule with severity level check box (in the Exchange Management Shell, the SetAuditSeverity parameter value DoNotAudit), rule matches won't appear in the rule reports. 如果邮件是由多个规则进行处理,则所有事件报告中均包含最高严重性。If a message is processed by more than one rule, the highest severity is included in any incident reports.

发件人重写信息:如果发件人选择替代策略提示,则为替代。Sender override information: The override if the sender chose to override a Policy Tip. 如果发件人已提供理由,还将包含理由的前 100 个字符。If the sender provided a justification, the first 100 characters of the justification are also included.

匹配规则:邮件触发的规则的列表。Matching rules: The list of rules that the message triggered.

误报报告:误报如果发件人将邮件标记为误报的策略提示,则为误报。False positive reports: The false positive if the sender marked the message as a false positive for a Policy Tip.

检测到的数据分类:在邮件中检测到的敏感信息类型的列表。Detected data classifications: The list of sensitive information types detected in the message.

匹配内容:检测到的敏感信息类型、邮件中的准确匹配内容以及匹配敏感信息前后的150个字符。Matching content: The sensitive information type detected, the exact matched content from the message, and the 150 characters before and after the matched sensitive information.

原始邮件:触发规则的整个邮件将附加到事件报告中。Original mail: The entire message that triggered the rule is attached to the incident report.

在 Exchange 命令行管理程序中,可以指定用逗号分隔的多个值。In the Exchange Management Shell, you specify multiple values separated by commas.
MessageClassification 单个邮件分类对象Single message classification object 在 EAC 中,可以从可用邮件分类列表进行选择。In the EAC, you select from the list of available message classifications.

在 Exchange 命令行管理程序中,使用 Get-MessageClassification cmdlet 以查看可用的邮件分类对象。In the Exchange Management Shell, use the Get-MessageClassification cmdlet to see the message classification objects that are available.
MessageHeaderField 单个字符串Single string 指定要添加、删除或修改的 SMTP 邮件头字段。Specifies the SMTP message header field to add, remove, or modify.

邮件头是邮件中必需和可选的头字段的集合。The message header is a collection of required and optional header fields in the message. 头字段的示例有" To "、" From "、" Received "和" Content-Type "。Examples of header fields are To, From, Received, and Content-Type. 正式头字段用 RFC 5322 定义。Official header fields are defined in RFC 5322. 非正式标头字段以x为开头,并且称为X 标头Unofficial header fields start with X- and are known as X-headers.
NotificationMessageText 纯文本、HTML 标记和关键字的任意组合Any combination of plain text, HTML tags, and keywords 指定收件人通知邮件中要使用的文本。Specified the text to use in a recipient notification message.

除了纯文本和 HTML 标记外,可以指定使用原始邮件值的以下关键字:In addition to plain text and HTML tags, you can specify the following keywords that use values from the original message:
%%From%%%%From%%
%%To%%%%To%%
%%Cc%%%%Cc%%
%%Subject%%%%Subject%%
%%Headers%%%%Headers%%
%%MessageDate%%%%MessageDate%%
NotifySenderType 下列值之一:One of the following values:
通知发件人,但允许他们发送NotifyOnlyNotify the sender, but allow them to send (NotifyOnly)
阻止邮件RejectMessageBlock the message (RejectMessage)
阻止邮件,除非它是误报RejectUnlessFalsePositiveOverrideBlock the message unless it's a false positive (RejectUnlessFalsePositiveOverride)
阻止邮件,但允许发件人覆盖和发送RejectUnlessSilentOverrideBlock the message, but allow the sender to override and send (RejectUnlessSilentOverride)
阻止邮件,但允许发件人使用业务理由进行覆盖和发送RejectUnlessExplicitOverrideBlock the message, but allow the sender to override with a business justification and send (RejectUnlessExplicitOverride)
Specifies the type of Policy Tip that the sender receives if the message violates a DLP policy.Specifies the type of Policy Tip that the sender receives if the message violates a DLP policy. The settings are described in the following list:The settings are described in the following list:

通知发件人,但允许其发送 通知发件人,但邮件正常传送。Notify the sender, but allow them to send The sender is notified, but the message is delivered normally.

阻止邮件 拒绝邮件并通知发件人。Block the message The message is rejected, and the sender is notified.

除非邮件为误报否则阻止邮件 除非发件人将邮件标记为误报,否则拒绝邮件。Block the message unless it's a false positive The message is rejected unless it's marked as a false positive by the sender.

阻止邮件,但是允许发件人进行覆盖和发送 除非发件人选择覆盖策略限制,否则拒绝邮件。Block the message, but allow the sender to override and send The message is rejected unless the sender has chosen to override the policy restriction.

阻止邮件,但是允许发件人用业务理由覆盖并发送 这与" 阻止邮件,但是允许发件人进行覆盖和发送"类型相似,但发件人还提供了覆盖策略限制的理由。Block the message, but allow the sender to override with a business justification and send This is similar to Block the message, but allow the sender to override and send type, but the sender also provides a justification for overriding the policy restriction.

使用此操作时,需要使用“邮件包含敏感信息”(MessageContainsDataClassification) 条件。When you use this action, you need to use the The message contains sensitive information (MessageContainsDataClassification) condition.
RMSTemplate 单个 RMS 模板对象Single RMS template object 指定应用到邮件中的权限管理服务 (RMS) 模板。Specifies the Rights Management Services (RMS) template that's applied to the message.

在 EAC 中,从列表中选择 RMS 模板。In the EAC, you select the RMS template from a list.

在 Exchange 命令行管理程序中,使用 Get-RMSTemplate cmdlet 来查看可用的 RMS 模板。In the Exchange Management Shell, use the Get-RMSTemplate cmdlet to see the RMS templates that are available.

针对每个邮箱,RMS 需要 Exchange 企业版客户端访问许可证 (CAL)。RMS requires Exchange Enterprise client access licenses (CALs) for each mailbox. 有关 Cal 的详细信息,请参阅Exchange 许可常见问题解答For more information about CALs, see Exchange licensing FAQs.
SCLValue 下列值之一:One of the following values:
绕过垃圾邮件筛选-1Bypass spam filtering (-1)
•整数0到9• Integers 0 through 9
Specifies the spam confidence level (SCL) that's assigned to the message.Specifies the spam confidence level (SCL) that's assigned to the message. A higher SCL value indicates that a message is more likely to be spam.A higher SCL value indicates that a message is more likely to be spam.
String 单个字符串Single string 指定将应用于指定邮件头字段、NDR 或事件日志条目的文本。Specifies the text that's applied to the specified message header field, NDR, or event log entry.

在 Exchange 命令行管理程序中,如果值包含空格,请使用双引号 (") 将此值括起来。In the Exchange Management Shell, if the value contains spaces, enclose the value in quotation marks (").

更多信息For more information

Exchange Server 中的邮件流规则条件和例外(谓词)Mail flow rule conditions and exceptions (predicates) in Exchange Server