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

邮件流规则(也称为传输规则)中的条件和例外可识别应用或不应用规则的邮件。Conditions and exceptions in mail flow rules (also known as transport rules) identify the messages that the rule is applied to or not applied to. 例如,如果规则向邮件添加免责声明,您可以将规则配置为仅应用于包含特定词语的邮件、由特定用户发送的邮件,或除特定通讯组的成员发送的邮件之外的所有邮件。For example, if the rule adds a disclaimer to messages, you can configure the rule to only apply to messages that contain specific words, messages sent by specific users, or to all messages except those sent by the members of a specific distribution group. 邮件流规则中的条件和例外也统称为 谓词,因为针对每个条件,都存在使用完全相同的设置和语法的相应例外。Collectively, the conditions and exceptions in mail flow rules are also known as predicates, because for every condition, there's a corresponding exception that uses the exact same settings and syntax. 唯一的区别是:条件指定要包含的邮件,而例外指定要排除的邮件。The only difference is conditions specify messages to include, while exceptions specify messages to exclude.

大多数的条件及例外有一个需要一个或多个值的属性。例如,“发件人是”条件需要指定邮件的发件人。一些条件有两个属性。例如,“邮件头包含以下任何词语”条件需要一个属性来指定邮件头字段,需要第二个属性来指定要在头字段中查找的文本。某些条件或例外没有任何属性。例如,“任何附件都具有可执行内容”条件只是在邮件中查找包含可执行内容的附件。Most conditions and exceptions have one property that requires one or more values. For example, the The sender is condition requires the sender of the message. Some conditions have two properties. For example, the A message header includes any of these words condition requires one property to specify the message header field, and a second property to specify the text to look for in the header field. Some conditions or exceptions don't have any properties. For example, the Any attachment has executable content condition simply looks for attachments in messages that have executable content.

有关 Exchange Online 中的邮件流规则(包括如何处理多个条件/例外或多值条件/例外)的信息,请参阅邮件流规则 (transport rules) in Exchange OnlineFor more information about mail flow rules in Exchange Online, including how multiple conditions/exceptions or multi-valued conditions/exceptions are handled, see Mail flow rules (transport rules) in Exchange Online.

邮件流规则在邮件流中的Exchange OnlineConditions and exceptions for mail flow rules in Exchange Online

以下各节中的表介绍了邮件流规则中可用的条件和Exchange Online。The tables in the following sections describe the conditions and exceptions that are available in mail flow rules in Exchange Online. 属性类型在"属性类型" 部分 进行介绍。The property types are described in the Property types section.

发件人Senders

收件人Recipients

邮件主题或正文Message subject or body

附件Attachments

任意收件人Any recipients

邮件敏感信息类型,"收件人"和"抄送"值、大小和字符集Message sensitive information types, To and Cc values, size, and character sets

发件人和收件人Sender and recipient

邮件属性Message properties

邮件标头Message headers

注意Notes:

  • 在 Exchange 管理中心 (EAC) 中选择条件或例外后,"在应用此规则时应用此规则"或"如果字段通常与所选的单击路径值短 () 时除外"中显示的值。After you select a condition or exception in the Exchange admin center (EAC), the value that's ultimately shown in the Apply this rule if or Except if field is often different (shorter) than the click path value you selected. 此外,根据模板(已筛选的方案列表)创建新规则时,通常可以选择短条件名称而不是遵循完整单击路径。Also, when you create new rules based on a template (a filtered list of scenarios), you can often select a short condition name instead of following the complete click path. 短名称和完整单击路径值显示在表的 EAC 列中。The short names and full click path values are shown in the EAC column in the tables.

  • 如果在 EAC 中选择“[应用于所有邮件]”,则无法指定任何其他条件。If you select [Apply to all messages] in the EAC, you can't specify any other conditions. PowerShell 中的等效项是创建规则,而不指定任何条件参数。The equivalent in PowerShell is to create a rule without specifying any condition parameters.

  • 此设置和属性与条件和例外中的设置和属性一致,因此,Get-TransportRulePredicate cmdlet 的输出结果并不会单独列出例外。此外,此 cmdlet 返回的谓词的一些名称不同于相应的参数名,并且一个谓词可能需要多个参数。The settings and properties are the same in conditions and exceptions, so the output of the Get-TransportRulePredicate cmdlet doesn't list exceptions separately. Also, the names of some of the predicates that are returned by this cmdlet are different than the corresponding parameter names, and a predicate might require multiple parameters.

发件人Senders

对于检查发件人地址的条件和例外,可以指定规则查找发件人地址的位置。For conditions and exceptions that examine the sender's address, you can specify where rule looks for the sender's address.

在 EAC 的“此规则的属性”部分,单击“匹配邮件中的发件人地址”。In the EAC, in the Properties of this rule section, click Match sender address in message. 注意,可能需要单击“更多选项”来查看此设置。Note that you might need to click More options to see this setting. 在 PowerShell 中,参数为 SenderAddressLocationIn PowerShell, the parameter is SenderAddressLocation. 可用值有:The available values are:

  • 标头:仅检查邮件头中的发件人 (例如,"发件人"、发件人或"答复 " 字段) 。Header: Only examine senders in the message headers (for example, the From, Sender, or Reply-To fields). 此值为默认值。This is the default value.

  • 信封:仅检查邮件信封中的发件人 (SMTP 传输中使用的 MAIL FROM 值,该值通常存储在 " 返回路径"字段) 。Envelope: Only examine senders from the message envelope (the MAIL FROM value that was used in the SMTP transmission, which is typically stored in the Return-Path field). 请注意,邮件信封搜索仅适用于以下条件 (以及相应的) :Note that message envelope searching is only available for the following conditions (and the corresponding exceptions):

    • 发件人 (发件人) The sender is(From)
    • 发件人是 FromMemberOf (的成员)The sender is a member of(FromMemberOf)
    • 发件人地址包括 ( FromAddressContainsWords)The sender address includes(FromAddressContainsWords)
    • 发件人地址与 FromAddressMatchesPatterns (匹配)The sender address matches(FromAddressMatchesPatterns)
    • 发件人的域是发件人 (域)The sender's domain is(SenderDomainIs)
  • 邮件头或 () 检查邮件头和邮件信封 HeaderOrEnvelope 中的发件人。Header or envelope (HeaderOrEnvelope) Examine senders in the message header and the message envelope.



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
发件人为The sender is

发件人 >是此人The sender > is this person

FromFrom
ExceptIfFromExceptIfFrom
Addresses 由组织中指定的邮箱、邮件用户、邮件联系人或Microsoft 365组发送的邮件。Messages that are sent by the specified mailboxes, mail users, mail contacts, or Microsoft 365 groups in the organization.

有关使用此条件Microsoft 365组的信息,请参阅"属性类型"部分中的"地址"条目。For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section.

找到发件人The sender is located

发件人 >是外部/内部The sender > is external/internal

FromScopeFromScope
ExceptIfFromScopeExceptIfFromScope
UserScopeFrom 由内部发件人或外部发件人发送的邮件。Messages that are sent by either internal senders or external senders.
发件人为以下组的成员The sender is a member of

发件人 >是此组的成员The sender > is a member of this group

FromMemberOfFromMemberOf
ExceptIfFromMemberOfExceptIfFromMemberOf
Addresses 由指定通讯组、已启用邮件的安全组或通讯组的成员Microsoft 365的邮件。Messages that are sent by a member of the specified distribution group, mail-enabled security group, or Microsoft 365 group.

有关使用此条件Microsoft 365组的信息,请参阅"属性类型"部分中的"地址"条目。For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section.

在发件人地址中包含The sender address includes

发件人 >address 包含以下任何词语The sender > address includes any of these words

FromAddressContainsWordsFromAddressContainsWords
ExceptIfFromAddressContainsWordsExceptIfFromAddressContainsWords
Words 发件人电子邮件地址中包含指定词语的邮件。Messages that contain the specified words in the sender's email address.
发件人地址匹配The sender address matches

发件人 >address 匹配这些文本模式中的任意一种The sender > address matches any of these text patterns

FromAddressMatchesPatternsFromAddressMatchesPatterns
ExceptIfFromAddressMatchesPatternsExceptIfFromAddressMatchesPatterns
Patterns 发件人的电子邮件地址包含匹配指定正则表达式的文本模式的邮件。Messages where the sender's email address contains text patterns that match the specified regular expressions.
发件人在收件人列表中The sender is on a recipient's list

发件人 >位于收件人的监督列表中The sender > is on a recipient's supervision list

SenderInRecipientListSenderInRecipientList
ExceptIfSenderInRecipientListExceptIfSenderInRecipientList
SupervisionList 发件人位于收件人的允许列表或阻止列表中的邮件。Messages where the sender is on the recipient's Allow list or Block list.
发件人的指定属性包括以下任何词语The sender's specified properties include any of these words

发件人 >具有特定属性,包括以下任何词语The sender > has specific properties including any of these words

SenderADAttributeContainsWordsSenderADAttributeContainsWords
ExceptIfSenderADAttributeContainsWordsExceptIfSenderADAttributeContainsWords
首要属性: ADAttributeFirst property: ADAttribute

第二个属性: WordsSecond property: Words

发件人的指定的 Active Directory 属性包含任意的指定词语的邮件。Messages where the specified Active Directory attribute of the sender contains any of the specified words.

请注意 ,Country 属性需要两个字母的国家/地区代码值 (,例如,DE 表示德国) 。Note that the Country attribute requires the two-letter country code value (for example, DE for Germany).

发件人的指定属性匹配这些文本模式The sender's specified properties match these text patterns

发件人 >具有与这些文本模式匹配的特定属性The sender > has specific properties matching these text patterns

SenderADAttributeMatchesPatternsSenderADAttributeMatchesPatterns
ExceptIfSenderADAttributeMatchesPatternsExceptIfSenderADAttributeMatchesPatterns
首要属性: ADAttributeFirst property: ADAttribute

第二个属性: PatternsSecond property: Patterns

发件人的指定的 Active Directory 属性包含与指定正则表达式匹配的文本模式的邮件Messages where the specified Active Directory attribute of the sender contains text patterns that match the specified regular expressions.
发件人已覆盖策略提示The sender has overridden the Policy Tip

发件人 >已覆盖策略提示The sender > has overridden the Policy Tip

HasSenderOverrideHasSenderOverride
ExceptIfHasSenderOverrideExceptIfHasSenderOverride
n/a 发件人已选择覆盖数据丢失防护 (DLP) 策略的邮件。有关 DLP 策略的详细信息,请参阅 数据丢失防护Messages where the sender has chosen to override a data loss prevention (DLP) policy. For more information about DLP policies, see Data loss prevention.

注意:此条件/例外在独立 EOP Exchange Online Protection (中) 可用。Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments.

发件人的 IP 地址在范围内Sender's IP address is in the range

发件人 >IP 地址位于以下任一范围内或完全匹配The sender > IP address is in any of these ranges or exactly matches

SenderIPRangesSenderIPRanges
ExceptIfSenderIPRangesExceptIfSenderIPRanges
IPAddressRanges 发件人的 IP 地址匹配指定的 IP 地址或位于指定的 IP 地址范围内的邮件。Messages where the sender's IP address matches the specified IP address, or falls within the specified IP address range.
发件人域为The sender's domain is

发件人 >域为The sender > domain is

SenderDomainIsSenderDomainIs
ExceptIfSenderDomainIsExceptIfSenderDomainIs
DomainName 发件人的电子邮件地址域与指定值匹配的邮件。Messages where the domain of the sender's email address matches the specified value.

如果需要查找包含指定域 (例如,域) 的任何子域的发件人域,请使用与 ( FromAddressMatchesPatterns) 条件匹配的发件人地址,并使用语法指定域 '\.domain\.com$' :。If you need to find sender domains that contain the specified domain (for example, any subdomain of a domain), use The sender address matches(FromAddressMatchesPatterns) condition and specify the domain by using the syntax: '\.domain\.com$'.

收件人Recipients



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
收件人为The recipient is

收件人 >是此人The recipient > is this person

SentToSentTo
ExceptIfSentToExceptIfSentTo
Addresses 其中一个收件人是组织中指定的邮箱、邮件用户或邮件联系人的邮件。Messages where one of the recipients is the specified mailbox, mail user, or mail contact in the organization. 收件人可以在邮件的"收件人****"、"抄 送"或"密件 抄送"字段中。The recipients can be in the To, Cc, or Bcc fields of the message.

注意:不能指定通讯组、已启用邮件的安全组或Microsoft 365组。Note: You can't specify distribution groups, mail-enabled security groups, or Microsoft 365 groups. 如果需要对发送到组的邮件采取操作,请改为使用"接收 (AnyOfToHeader) 条件。 If you need to take action on messages that are sent to a group, use the To box contains(AnyOfToHeader) condition instead.

找到收件人The recipient is located

收件人 >是外部/外部The recipient > is external/external

SentToScopeSentToScope
ExceptIfSentToScopeExceptIfSentToScope
UserScopeTo 发送给内部或外部收件人的邮件。Messages that are sent to internal or external recipients.
收件人为以下组的成员The recipient is a member of

收件人 >是此组的成员The recipient > is a member of this group

SentToMemberOfSentToMemberOf
ExceptIfSentToMemberOfExceptIfSentToMemberOf
Addresses 包含收件人的邮件,这些收件人是指定通讯组、已启用邮件的安全组或Microsoft 365组的成员。Messages that contain recipients who are members of the specified distribution group, mail-enabled security group, or Microsoft 365 group. 组可以在邮件的"收件人****"、" 抄送"或"密 件抄送"字段中。The group can be in the To, Cc, or Bcc fields of the message.

有关使用此条件Microsoft 365组的信息,请参阅"属性类型"部分中的"地址"条目。For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section.

收件人地址包括The recipient address includes

收件人 >address 包含以下任何词语The recipient > address includes any of these words

RecipientAddressContainsWordsRecipientAddressContainsWords
ExceptIfRecipientAddressContainsWordsExceptIfRecipientAddressContainsWords
Words 收件人电子邮件地址中包含指定词语的邮件。Messages that contain the specified words in the recipient's email address.

注意:此条件不考虑发送到收件人代理地址的邮件。它只匹配发送到收件人主电子邮件地址的邮件。Note: This condition doesn't consider messages that are sent to recipient proxy addresses. It only matches messages that are sent to the recipient's primary email address.

收件人地址匹配The recipient address matches

收件人 >address 匹配这些文本模式中的任意一种The recipient > address matches any of these text patterns

RecipientAddressMatchesPatternsRecipientAddressMatchesPatterns
ExceptIfRecipientAddressMatchesPatternsExceptIfRecipientAddressMatchesPatterns
Patterns 收件人的电子邮件地址包含匹配指定正则表达式的文本模式的邮件。Messages where a recipient's email address contains text patterns that match the specified regular expressions.

注意:此条件不考虑发送到收件人代理地址的邮件。它只匹配发送到收件人主电子邮件地址的邮件。Note: This condition doesn't consider messages that are sent to recipient proxy addresses. It only matches messages that are sent to the recipient's primary email address.

收件人在发件人列表中The recipient is on the sender's list

收件人 >位于发件人的监督列表中The recipient > is on the sender's supervision list

RecipientInSenderListRecipientInSenderList
ExceptIfRecipientInSenderListExceptIfRecipientInSenderList
SupervisionList 收件人位于发件人的允许列表或阻止列表中的邮件。Messages where the recipient is on the sender's Allow list or Block list.
收件人的指定属性包括以下任何词语The recipient's specified properties include any of these words

收件人 >具有特定属性,包括以下任何词语The recipient > has specific properties including any of these words

RecipientADAttributeContainsWordsRecipientADAttributeContainsWords
ExceptIfRecipientADAttributeContainsWordsExceptIfRecipientADAttributeContainsWords
首要属性: ADAttributeFirst property: ADAttribute

第二个属性: WordsSecond property: Words

收件人的指定的 Active Directory 属性包含任意的指定词语的邮件。Messages where the specified Active Directory attribute of a recipient contains any of the specified words.

请注意 ,Country 属性需要两个字母的国家/地区代码值 (,例如,DE 表示德国) 。Note that the Country attribute requires the two-letter country code value (for example, DE for Germany).

收件人的指定属性匹配这些文本模式The recipient's specified properties match these text patterns

收件人 >具有与这些文本模式匹配的特定属性The recipient > has specific properties matching these text patterns

RecipientADAttributeMatchesPatternsRecipientADAttributeMatchesPatterns
ExceptIfRecipientADAttributeMatchesPatternsExceptIfRecipientADAttributeMatchesPatterns
首要属性: ADAttributeFirst property: ADAttribute

第二个属性: PatternsSecond property: Patterns

收件人的指定的 Active Directory 属性包含与指定正则表达式匹配的文本模式的邮件。Messages where the specified Active Directory attribute of a recipient contains text patterns that match the specified regular expressions.
收件人的域为A recipient's domain is

收件人 >域为The recipient > domain is

RecipientDomainIsRecipientDomainIs
ExceptIfRecipientDomainIsExceptIfRecipientDomainIs
DomainName 收件人的电子邮件地址域与指定的值匹配的邮件。Messages where the domain of a recipient's email address matches the specified value.

如果需要查找包含指定域 (例如,域) 的任何子域的收件人域,请使用与 ( RecipientAddressMatchesPatterns) 条件匹配的收件人地址,并使用语法 指定域 '\.domain\.com$'If you need to find recipient domains that contain the specified domain (for example, any subdomain of a domain), use The recipient address matches (RecipientAddressMatchesPatterns) condition, and specify the domain by using the syntax '\.domain\.com$'.

邮件主题或正文Message subject or body

备注

在邮件已通过 MIME 内容传输编码方法(用于以 ACSII 文本方式在 SMTP 服务器之间传输二进制消息)解码 ,搜索邮件中主题或其他头字段中的字词或文本模式。不能使用条件或例外来搜索邮件中主题或其他头字段的原始(通常为 Base64)编码值。The search for words or text patterns in the subject or other header fields in the message occurs after the message has been decoded from the MIME content transfer encoding method that was used to transmit the binary message between SMTP servers in ASCII text. You can't use conditions or exceptions to search for the raw (typically, Base64) encoded values of the subject or other header fields in messages.



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
在主题或正文中包含The subject or body includes

主题或正文 >subject 或 body 包含以下任何词语The subject or body > subject or body includes any of these words

SubjectOrBodyContainsWordsSubjectOrBodyContainsWords
ExceptIfSubjectOrBodyContainsWordsExceptIfSubjectOrBodyContainsWords
Words 在"主题"字段或邮件 正文 中具有指定词语的邮件。Messages that have the specified words in the Subject field or message body.
主题或正文匹配The subject or body matches

主题或正文 >主题或正文匹配这些文本模式The subject or body > subject or body matches these text patterns

SubjectOrBodyMatchesPatternsSubjectOrBodyMatchesPatterns
ExceptIfSubjectOrBodyMatchesPatternsExceptIfSubjectOrBodyMatchesPatterns
Patterns Subject 字段 邮件正文包含匹配指定正则表达式的文本模式的邮件。Messages where the Subject field or message body contain text patterns that match the specified regular expressions.
主题包括The subject includes

主题或正文 >subject 包含以下任何词语The subject or body > subject includes any of these words

SubjectContainsWordsSubjectContainsWords
ExceptIfSubjectContainsWordsExceptIfSubjectContainsWords
Words "主题"字段中包含 指定词语的邮件Messages that have the specified words in the Subject field.
主题匹配The subject matches

主题或正文 >subject 与这些文本模式匹配The subject or body > subject matches these text patterns

SubjectMatchesPatternsSubjectMatchesPatterns
ExceptIfSubjectMatchesPatternsExceptIfSubjectMatchesPatterns
Patterns Subject 字段 包含 匹配指定正则表达式的文本模式的邮件。Messages where the Subject field contains text patterns that match the specified regular expressions.

附件Attachments

有关邮件流规则如何检查邮件附件的信息,请参阅使用邮件流规则检查邮件Exchange Online。For more information about how mail flow rules inspect message attachments, see Use mail flow rules to inspect message attachments in Exchange Online.



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
任何附件的内容都包含Any attachment's content includes

任何附件 >内容包含以下任何词语Any attachment > content includes any of these words

AttachmentContainsWordsAttachmentContainsWords
ExceptIfAttachmentContainsWordsExceptIfAttachmentContainsWords
Words 附件包含指定词语的邮件。Messages where an attachment contains the specified words.
任何附件内容都匹配Any attachments content matches

任何附件 >内容与这些文本模式匹配Any attachment > content matches these text patterns

AttachmentMatchesPatternsAttachmentMatchesPatterns
ExceptIfAttachmentMatchesPatternsExceptIfAttachmentMatchesPatterns
Patterns 附件包含匹配指定正则表达式的文本模式的邮件。Messages where an attachment contains text patterns that match the specified regular expressions.

注意:仅扫描附件 (前) 150 KB。Note: Only the first 150 kilobytes (KB) of the attachments are scanned.

任何附件的内容无法检查Any attachment's content can't be inspected

任何附件 >无法检查内容Any attachment > content can't be inspected

AttachmentIsUnsupportedAttachmentIsUnsupported
ExceptIfAttachmentIsUnsupportedExceptIfAttachmentIsUnsupported
n/a 附件在本机无法被用户识别Exchange Online。Messages where an attachment isn't natively recognized by Exchange Online.
任何附件的文件名匹配Any attachment's file name matches

任何附件 >文件名与这些文本模式匹配Any attachment > file name matches these text patterns

AttachmentNameMatchesPatternsAttachmentNameMatchesPatterns
ExceptIfAttachmentNameMatchesPatternsExceptIfAttachmentNameMatchesPatterns
Patterns 附件的文件名包含匹配指定正则表达式的文本模式的邮件。Messages where an attachment's file name contains text patterns that match the specified regular expressions.
任何附件的文件扩展名匹配Any attachment's file extension matches

任何附件 >文件扩展名包含以下词语Any attachment > file extension includes these words

AttachmentExtensionMatchesWordsAttachmentExtensionMatchesWords
ExceptIfAttachmentExtensionMatchesWordsExceptIfAttachmentExtensionMatchesWords
Words 附件的文件扩展名匹配任意指定词语的邮件。Messages where an attachment's file extension matches any of the specified words.
任何附件都大于或等于Any attachment is greater than or equal to

任何附件 >size 大于或等于Any attachment > size is greater than or equal to

AttachmentSizeOverAttachmentSizeOver
ExceptIfAttachmentSizeOverExceptIfAttachmentSizeOver
Size 任何附件大于或等于指定值的邮件。Messages where any attachment is greater than or equal to the specified value.

在 EAC 中,只能以千字节 (KB) 为单位指定大小。In the EAC, you can only specify the size in kilobytes (KB).

邮件未完成扫描The message didn't complete scanning

任何附件 >未完成扫描Any attachment > didn't complete scanning

AttachmentProcessingLimitExceededAttachmentProcessingLimitExceeded
ExceptIfAttachmentProcessingLimitExceededExceptIfAttachmentProcessingLimitExceeded
n/a 规则引擎无法完成附件扫描的邮件。可以使用此条件创建规则,以协同工作来标识并处理无法完全扫描内容的邮件。Messages where the rules engine couldn't complete the scanning of the attachments. You can use this condition to create rules that work together to identify and process messages where the content couldn't be fully scanned.
任何附件具有可执行内容Any attachment has executable content

任何附件 >具有可执行内容Any attachment > has executable content

AttachmentHasExecutableContentAttachmentHasExecutableContent
ExceptIfAttachmentHasExecutableContentExceptIfAttachmentHasExecutableContent
n/a 附件是可执行文件的邮件。系统将检查该文件的属性,而不是依赖文件的扩展名。Messages where an attachment is an executable file. The system inspects the file's properties rather than relying on the file's extension.
任何附件采用密码保护Any attachment is password protected

任何附件 >受密码保护Any attachment > is password protected

AttachmentIsPasswordProtectedAttachmentIsPasswordProtected
ExceptIfAttachmentIsPasswordProtectedExceptIfAttachmentIsPasswordProtected
n/a 附件受密码保护的邮件(因而无法扫描)。Messages where an attachment is password protected (and therefore can't be scanned). 密码检测仅适用于Office文档.zip文件以及 .7z 文件。Password detection only works for Office documents, .zip files, and .7z files.
具有这些属性,包括以下任何词语has these properties, including any of these words

任何附件 >具有这些属性,包括以下任何词语Any attachment > has these properties, including any of these words

AttachmentPropertyContainsWordsAttachmentPropertyContainsWords
ExceptIfAttachmentPropertyContainsWordsExceptIfAttachmentPropertyContainsWords
首要属性: DocumentPropertiesFirst property: DocumentProperties

第二个属性: WordsSecond property: Words

Office 文档附件的指定属性包含指定词语的邮件。Messages where the specified property of an attached Office document contains the specified words.

此条件可帮助您将邮件流规则与 SharePoint、Windows Server 2012 R2 或更高版本中的文件分类基础结构 (FCI) 或第三方分类系统集成。This condition helps you integrate mail flow rules with SharePoint, File Classification Infrastructure (FCI) in Windows Server 2012 R2 or later, or a third-party classification system.

可以从内置属性列表中选择,或指定自定义属性。You can select from a list of built-in properties, or specify a custom property.

任意收件人Any recipients

邮件包含至少一个指定收件人时,本部分中的条件和例外会提供可影响 全部 收件人的独特功能。例如,假设你有一个拒绝邮件的规则。如果使用 收件人部分的收件人条件,则邮件仅被那些指定的收件人拒绝。例如,如果规则在在邮件中找到指定的收件人,但该邮件包含五个其他收件人。邮件将被其中一个收件人拒绝,但会发送给其他五个收件人。The conditions and exceptions in this section provide a unique capability that affects all recipients when the message contains at least one of the specified recipients. For example, let's say you have a rule that rejects messages. If you use a recipient condition from the Recipients section, the message is only rejected for those specified recipients. For example, if the rule finds the specified recipient in a message, but the message contains five other recipients. The message is rejected for that one recipient, and is delivered to the five other recipients.

如果添加此部分的收件人条件,则同一邮件将被检测到的收件人和其他五个收件人拒绝。If you add a recipient condition from this section, that same message is rejected for the detected recipient and the five other recipients.

与此相反,此部分的收件人例外可 防止 该规则操作应用于邮件的 所有 收件人,而不仅是检测到的收件人。Conversely, a recipient exception from this section prevents the rule action from being applied to all recipients of the message, not just for the detected recipients.

注意:此条件不考虑发送到收件人代理地址的邮件。它只匹配发送到收件人主电子邮件地址的邮件。Note: This condition doesn't consider messages that are sent to recipient proxy addresses. It only matches messages that are sent to the recipient's primary email address.



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
任何收件人地址包括Any recipient address includes

任何收件人 >address 包含以下任何词语Any recipient > address includes any of these words

AnyOfRecipientAddressContainsWordsAnyOfRecipientAddressContainsWords
ExceptIfAnyOfRecipientAddressContainsWordsExceptIfAnyOfRecipientAddressContainsWords
Words 在邮件的"收件人"、"抄送"或"密件抄送"字段中 包含指定 词语的邮件。Messages that contain the specified words in the To, Cc, or Bcc fields of the message.
任何收件人地址匹配Any recipient address matches

任何收件人 >address 匹配这些文本模式中的任意一种Any recipient > address matches any of these text patterns

AnyOfRecipientAddressMatchesPatternsAnyOfRecipientAddressMatchesPatterns
ExceptIfAnyOfRecipientAddressMatchesPatternsExceptIfAnyOfRecipientAddressMatchesPatterns
Patterns "To"、Cc或 "Bcc" 字段包含匹配指定正则表达式的文本模式的邮件。 Messages where the To, Cc, or Bcc fields contain text patterns that match the specified regular expressions.

邮件敏感信息类型,“收件人”和“抄送”值、大小和字符集Message sensitive information types, To and Cc values, size, and character sets

此部分中查找"收件人"和"抄 送"字段中 值的条件的行为与"任何收件人"部分 的条件类似 (邮件的所有收件人都受规则影响,而不只是检测到的收件人) 。 The conditions in this section that look for values in the To and Cc fields behave like the conditions in the Any recipients section (all recipients of the message are affected by the rule, not just the detected recipients).

注意Notes:

  • 本节中的收件人条件不考虑发送到收件人代理地址的邮件。The recipient conditions in this section do not consider messages that are sent to recipient proxy addresses. 它们仅匹配发送到收件人主电子邮件地址的邮件。They only match messages that are sent to the recipient's primary email address.
  • 有关使用具有此Microsoft 365条件的邮件组,请参阅"属性类型"部分中的"地址"条目。For more information about using Microsoft 365 groups with the recipient conditions in this section, see the Addresses entry in the Property types section.


EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
邮件包含敏感信息The message contains sensitive information

邮件 >包含这些敏感信息类型中的任意一种The message > contains any of these types of sensitive information

MessageContainsDataClassificationsMessageContainsDataClassifications
ExceptIfMessageContainsDataClassificationsExceptIfMessageContainsDataClassifications
SensitiveInformationTypes 包含由数据丢失防护 (DLP) 策略定义的敏感信息的邮件。Messages that contain sensitive information as defined by data loss prevention (DLP) policies.

使用“使用策略提示通知发件人”(NotifySender) 操作的规则需要此条件。This condition is required for rules that use the Notify the sender with a Policy Tip (NotifySender) action.

注意:此条件/例外在独立 EOP 环境中不可用。Note: This condition/exception isn't available in standalone EOP environments.

“收件人”框包含The To box contains

邮件 >"到"框包含此人The message > To box contains this person

AnyOfToHeaderAnyOfToHeader
ExceptIfAnyOfToHeaderExceptIfAnyOfToHeader
Addresses "收件人 "字段 包含任何指定收件人的邮件。Messages where the To field includes any of the specified recipients.
“收件人”框包含以下组的成员The To box contains a member of

邮件 >"To"框包含此组的成员The message > To box contains a member of this group

AnyOfToHeaderMemberOfAnyOfToHeaderMemberOf
ExceptIfAnyOfToHeaderMemberOfExceptIfAnyOfToHeaderMemberOf
Addresses "收件人"字段 包含的收件人是指定通讯组、已启用邮件的安全组或邮件Microsoft 365的邮件。Messages where the To field contains a recipient who is a member of the specified distribution group, mail-enabled security group, or Microsoft 365 group.
“抄送”框包含The Cc box contains

邮件 >"抄送"框包含此人The message > Cc box contains this person

AnyOfCcHeaderAnyOfCcHeader
ExceptIfAnyOfCcHeaderExceptIfAnyOfCcHeader
Addresses "抄 送"字段 包含任何指定收件人的邮件。Messages where the Cc field includes any of the specified recipients.
“抄送”框中包含以下组的成员The Cc box contains a member of

邮件 >包含此组的成员The message > contains a member of this group

AnyOfCcHeaderMemberOfAnyOfCcHeaderMemberOf
ExceptIfAnyOfCcHeaderMemberOfExceptIfAnyOfCcHeaderMemberOf
Addresses " 抄送" 字段包含的收件人是指定通讯组或已启用邮件的安全组的成员的邮件。Messages where the Cc field contains a recipient who is a member of the specified distribution group or mail-enabled security group.
“收件人”或“抄送”框中包含The To or Cc box contains

邮件 >"到"或"抄送"框包含此人The message > To or Cc box contains this person

AnyOfToCcHeaderAnyOfToCcHeader
ExceptIfAnyOfToCcHeaderExceptIfAnyOfToCcHeader
Addresses "收件人" " 送"字段包含任何指定收件人的邮件。Messages where the To or Cc fields contain any of the specified recipients.
“收件人”或“抄送”框包含以下组的成员The To or Cc box contains a member of

邮件 >"到"或"抄送"框包含此组的成员The message > To or Cc box contains a member of this group

AnyOfToCcHeaderMemberOfAnyOfToCcHeaderMemberOf
ExceptIfAnyOfToCcHeaderMemberOfExceptIfAnyOfToCcHeaderMemberOf
Addresses " 收件人" 或" 送"字段包含的收件人是指定通讯组或已启用邮件的安全组的成员的邮件。Messages where the To or Cc fields contain a recipient who is a member of the specified distribution group or mail-enabled security group.
邮件大小大于或等于The message size is greater than or equal to

邮件 >size 大于或等于The message > size is greater than or equal to

MessageSizeOverMessageSizeOver
ExceptIfMessageSizeOverExceptIfMessageSizeOver
Size 总大小(邮件和附件)大于或等于指定值的邮件。Messages where the total size (message plus attachments) is greater than or equal to the specified value.

在 EAC 中,只能以千字节 (KB) 为单位指定大小。In the EAC, you can only specify the size in kilobytes (KB).

注意:在确定邮件流规则之前将对邮箱的邮件大小限制进行评估。对于邮箱而言过大的邮件将被拒绝,然后此条件的规则才能对该邮件采取措施。Note: Message size limits on mailboxes are evaluated before mail flow rules. A message that's too large for a mailbox will be rejected before a rule with this condition is able to act on the message.

邮件的字符集名称包括以下任何词语The message character set name includes any of these words

邮件 >字符集名称包括以下任何词语The message > character set name includes any of these words

ContentCharacterSetContainsWordsContentCharacterSetContainsWords
ExceptIfContentCharacterSetContainsWordsExceptIfContentCharacterSetContainsWords
CharacterSets 具有任意指定字符集名称的邮件。Messages that have any of the specified character set names.

发件人和收件人Sender and recipient



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
发件人是收件人之一The sender is one of the recipient's

发件人和收件人 >发件人与收件人的关系是The sender and the recipient > the sender's relationship to a recipient is

SenderManagementRelationshipSenderManagementRelationship
ExceptIfSenderManagementRelationshipExceptIfSenderManagementRelationship
ManagementRelationship 任一发件人是收件人的经理,或发件人由收件人管理的邮件。Messages where the either sender is the manager of a recipient, or the sender is managed by a recipient.
该邮件是在这些组的成员之间发送/接收的The message is between members of these groups

发件人和收件人 >邮件位于这些组的成员之间The sender and the recipient > the message is between members of these groups

BetweenMemberOf1BetweenMemberOf2BetweenMemberOf1 and BetweenMemberOf2
ExceptIfBetweenMemberOf1ExceptIfBetweenMemberOf2ExceptIfBetweenMemberOf1 and ExceptIfBetweenMemberOf2
Addresses 在指定的通讯组或已启用邮件的安全组的成员之间发送的邮件。Messages that are sent between members of the specified distribution groups or mail-enabled security groups.

有关使用此条件Microsoft 365组的信息,请参阅"属性类型"部分中的"地址"条目。For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section.

发件人或收件人的经理是The manager of the sender or recipient is

发件人和收件人 >发件人或收件人的经理是此人The sender and the recipient > the manager of the sender or recipient is this person

ManagerForEvaluatedUserManagerAddressManagerForEvaluatedUser and ManagerAddress
ExceptIfManagerForEvaluatedUser 和 ExceptIfManagerAddressExceptIfManagerForEvaluatedUser and ExceptIfManagerAddress
首要属性: EvaluatedUserFirst property: EvaluatedUser

第二个属性: AddressesSecond property: Addresses

指定用户是发件人的经理,或者指定用户是收件人的经理的邮件。Messages where either a specified user is the manager of the sender, or a specified user is the manager of a recipient.
发件人和任何收件人的属性比较形式为The sender's and any recipient's property compares as

发件人和收件人 >sender 和 recipient 属性比较为The sender and the recipient > the sender and recipient property compares as

ADAttributeComparisonAttributeADComparisonOperatorADAttributeComparisonAttribute and ADComparisonOperator
ExceptIfADAttributeComparisonAttributeExceptIfADComparisonOperatorExceptIfADAttributeComparisonAttribute and ExceptIfADComparisonOperator
首要属性: ADAttributeFirst property: ADAttribute

第二个属性: EvaluationSecond property: Evaluation

发件人和收件人的指定 Active Directory 属性匹配或不匹配的邮件。Messages where the specified Active Directory attribute for the sender and recipient either match or don't match.

邮件属性Message properties



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
邮件类型为The message type is

邮件属性 >包含邮件类型The message properties > include the message type

MessageTypeMatchesMessageTypeMatches
ExceptIfMessageTypeMatchesExceptIfMessageTypeMatches
MessageType 指定类型的邮件。Messages of the specified type.
注意:Outlook或Outlook Web (之前称为 Outlook Web App) 的邮件配置为转发邮件时 ,ForwardingSmtpAddress 属性将添加到邮件中。Note: When Outlook or Outlook on the web (formerly known as Outlook Web App) is configured to forward a message, the ForwardingSmtpAddress property is added to the message. 邮件类型不会更改为 AutoForwardThe message type isn't changed to AutoForward.
邮件分类为The message is classified as

邮件属性 >包含此分类The message properties > include this classification

HasClassificationHasClassification
ExceptIfHasClassificationExceptIfHasClassification
MessageClassification 包含指定邮件分类的邮件。Messages that have the specified message classification. 这是一种自定义邮件分类,您可以使用 New-MessageClassification cmdlet 在组织中创建。This is a custom message classification that you can create in your organization by using the New-MessageClassification cmdlet.

注意:此条件/例外在独立 EOP 环境中不可用。Note: This condition/exception isn't available in standalone EOP environments.

邮件没有用任何分类标记The message isn't marked with any classifications

邮件属性 >不包括任何分类The message properties > don't include any classification

HasNoClassificationHasNoClassification
ExceptIfHasNoClassificationExceptIfHasNoClassification
n/a 不包含邮件分类的邮件。Messages that don't have a message classification.

注意:此条件/例外在独立 EOP 环境中不可用。Note: This condition/exception isn't available in standalone EOP environments.

消息的重要性设置为The message importance is set to

邮件属性 >包括重要性级别The message properties > include the importance level

WithImportanceWithImportance
ExceptIfWithImportanceExceptIfWithImportance
Importance 标记为指定重要性级别的邮件。Messages that are marked with the specified Importance level.

邮件头Message headers

备注

在邮件已通过 MIME 内容传输编码方法(用于以 ACSII 文本方式在 SMTP 服务器之间传输二进制消息)解码 ,搜索邮件中主题或其他头字段中的字词或文本模式。不能使用条件或例外来搜索邮件中主题或其他头字段的原始(通常为 Base64)编码值。The search for words or text patterns in the subject or other header fields in the message occurs after the message has been decoded from the MIME content transfer encoding method that was used to transmit the binary message between SMTP servers in ASCII text. You can't use conditions or exceptions to search for the raw (typically, Base64) encoded values of the subject or other header fields in messages.



EAC 中的条件或例外Condition or exception in the EAC PowerShell 中的条件和Exchange Online参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
邮件头中包含A message header includes

邮件头 >包含以下任何词语A message header > includes any of these words

HeaderContainsMessageHeader 和 HeaderContainsWordsHeaderContainsMessageHeader and HeaderContainsWords
ExceptIfHeaderContainsMessageHeaderExceptIfHeaderContainsWordsExceptIfHeaderContainsMessageHeader and ExceptIfHeaderContainsWords
首要属性: MessageHeaderFieldFirst property: MessageHeaderField

第二个属性: WordsSecond property: Words

包含指定头字段的邮件,以及该头字段的值包含指定的单词。Messages that contain the specified header field, and the value of that header field contains the specified words.

页眉字段的名称和页眉字段的值始终一同使用。The name of the header field and the value of the header field are always used together.

邮件头匹配A message header matches

邮件头 >匹配这些文本模式A message header > matches these text patterns

HeaderMatchesMessageHeader 和 HeaderMatchesPatternsHeaderMatchesMessageHeader and HeaderMatchesPatterns
ExceptIfHeaderMatchesMessageHeader 和 ExceptIfHeaderMatchesPatternsExceptIfHeaderMatchesMessageHeader and ExceptIfHeaderMatchesPatterns
首要属性: MessageHeaderFieldFirst property: MessageHeaderField

第二个属性: PatternsSecond property: Patterns

包含指定头字段以及该头字段的值的邮件包含指定的正则表达式。Messages that contain the specified header field, and the value of that header field contains the specified regular expressions.

页眉字段的名称和页眉字段的值始终一同使用。The name of the header field and the value of the header field are always used together.

属性类型Property types

下表介绍了条件和例外中使用的属性类型。The property types that are used in conditions and exceptions are described in the following table.

备注

如果该属性是一个字符串,不允许有尾随空格。If the property is a string, trailing spaces are not allowed.



属性类型Property type 有效值Valid values 描述Description
ADAttribute 从 Active Directory 属性的预定义列表中选择Select from a predefined list of Active Directory attributes 您可以针对以下任一 Active Directory 属性进行检查:You can check against any of the following Active Directory attributes:
  • 市/县City
  • CompanyCompany
  • 国家/地区Country
  • CustomAttribute1 - CustomAttribute15CustomAttribute1 - CustomAttribute15
  • DepartmentDepartment
  • DisplayNameDisplayName
  • EmailEmail
  • FaxNumberFaxNumber
  • FirstNameFirstName
  • HomePhoneNumberHomePhoneNumber
  • 缩写Initials
  • LastNameLastName
  • 经理Manager
  • MobileNumberMobileNumber
  • 备注Notes
  • OfficeOffice
  • OtherFaxNumberOtherFaxNumber
  • OtherHomePhoneNumberOtherHomePhoneNumber
  • OtherPhoneNumberOtherPhoneNumber
  • PagerNumberPagerNumber
  • PhoneNumberPhoneNumber
  • POBoxPOBox
  • StateState
  • StreetStreet
  • TitleTitle
  • UserLogonNameUserLogonName
  • ZipCodeZipCode

在 EAC 中,要为同一属性指定多个词语或文本模式,请使用逗号分隔这些值。In the EAC, to specify multiple words or text patterns for the same attribute, separate the values with commas. 例如 San Francisco,Palo Alto ,City 属性的值查找"City equals San Francisco"或 City equals Palo Alto"。For example, the value San Francisco,Palo Alto for the City attribute looks for "City equals San Francisco" or City equals Palo Alto".

在 Exchange Online PowerShell 中,使用语法 ,其中 是你想要匹配的单词 "AttributeName1:Value1,Value 2 with spaces,Value3...","AttributeName2:Word4,Value 5 with spaces,Value6..." Value 或文本模式。In Exchange Online PowerShell, use the syntax "AttributeName1:Value1,Value 2 with spaces,Value3...","AttributeName2:Word4,Value 5 with spaces,Value6...", where Value is the word or text pattern that you want to match. 例如, "City:San Francisco,Palo Alto""City:San Francisco,Palo Alto" "Department:Sales,Finance"For example, "City:San Francisco,Palo Alto" or "City:San Francisco,Palo Alto", "Department:Sales,Finance".

为同一属性指定多个属性或多个值时,使用 or 运算符。请勿使用具有前导或尾随空格的值。When you specify multiple attributes, or multiple values for the same attribute, the or operator is used. Don't use values with leading or trailing spaces.

注意,Country 属性要求使用两个字母的 ISO 3166-1 国家/地区代码值(例如,DE 代表德国)。Note that the Country attribute requires the two-letter ISO 3166-1 country code value (for example, DE for Germany). 有关详细信息,请参阅国家/地区代码 - ISO 3166。For more information, see Country Codes - ISO 3166.

Addresses Exchange Online收件人Exchange Online recipients 根据条件或例外的特性,或许能够在组织中指定任何启用邮件的对象(例如,收件人相关条件),或也可能限制为特定的对象类型(例如,组成员资格条件的组)。而且,条件或例外可能需要一个值,或允许多个值。Depending on the nature of the condition or exception, you might be able to specify any mail-enabled object in the organization (for example, recipient-related conditions), or you might be limited to a specific object type (for example, groups for group membership conditions). And, the condition or exception might require one value, or allow multiple values.

在 Exchange Online PowerShell 中,用逗号分隔多个值。In Exchange Online PowerShell, separate multiple values by commas.

此条件不考虑发送到收件人代理地址的邮件。This condition doesn't consider messages that are sent to recipient proxy addresses. 它只匹配发送到收件人主电子邮件地址的邮件。It only matches messages that are sent to the recipient's primary email address.

EAC 中的收件人选取器不允许从收件人Microsoft 365选择组。The recipient picker in the EAC doesn't allow you to select Microsoft 365 groups from the list of recipients. 但是,您可以在"检查名称"旁边的框中输入 Microsoft 365 组的电子邮件地址,然后单击"检查名称"验证电子邮件地址,这将向添加框中 添加组But, you can enter the email address of a Microsoft 365 group in the box next to Check names, and then validate the email address by clicking Check names, which will add the group to the add box.

CharacterSets 字符集名称数组Array of character set names 邮件中存在的一个或多个内容字符集。例如:One or more content character sets that exist in a message. For example:
  • Arabic/iso-8859-6
  • Chinese/big5
  • Chinese/euc-cn
  • Chinese/euc-tw
  • Chinese/gb2312
  • Chinese/iso-2022-cn
  • Cyrillic/iso-8859-5
  • Cyrillic/koi8-r
  • Cyrillic/windows-1251
  • Greek/iso-8859-7
  • Hebrew/iso-8859-8
  • Japanese/euc-jp
  • Japanese/iso-022-jp
  • Japanese/shift-jis
  • Korean/euc-kr
  • Korean/johab
  • Korean/ks_c_5601-1987
  • Turkish/windows-1254
  • Turkish/iso-8859-9
  • Vietnamese/tcvn
DomainName SMTP 域数组Array of SMTP domains 例如, contoso.com eu.contoso.com 或 。For example, contoso.com or eu.contoso.com.

在 Exchange Online PowerShell 中,可以指定用逗号分隔的多个域。In Exchange Online PowerShell, you can specify multiple domains separated by commas.

EvaluatedUser 发件人”或“收件人”的单个值Single value of Sender or Recipient 指定规则是否查找发件人的经理或收件人的经理。Specifies whether the rule is looking for the manager of the sender or the manager of the recipient.
Evaluation "等于"或****"不等于" () NotEqualSingle value of Equal or Not equal (NotEqual) 比较发件人和收件人的 Active Directory 属性时,该属性将指定值应该匹配还是不应该匹配。When comparing the Active Directory attribute of the sender and recipients, this specifies whether the values should match, or not match.
Importance ”、“标准”或“”的单个值Single value of Low, Normal, or High Outlook 或 Web 上的 Outlook 中的发件人分配给邮件的重要性级别。The Importance level that was assigned to the message by the sender in Outlook or Outlook on the web.
IPAddressRanges IP 地址或地址范围数组Array of IP addresses or address ranges 使用下面的语法输入 IPv4 地址:You enter the IPv4 addresses using the following syntax:
  • 单个 IP 地址:例如, 192.168.1.1Single IP address: For example, 192.168.1.1.
  • IP 地址范围:例如, 192.168.0.1-192.168.0.254IP address range: For example, 192.168.0.1-192.168.0.254.
  • 无类别域际路由 (CIDR) IP 地址范围: 例如, 192.168.0.1/25Classless InterDomain Routing (CIDR) IP address range: For example, 192.168.0.1/25.

在 Exchange Online PowerShell 中,可以指定用逗号分隔的多个 IP 地址或范围。In Exchange Online PowerShell, you can specify multiple IP addresses or ranges separated by commas.

ManagementRelationship 经理或直接 下属 经理 单个 DirectReport () Single value of Manager or Direct report (DirectReport) 指定发件人和任意收件人之间的关系。Specifies the relationship between the sender and any of the recipients. 该规则检查 Active Directory 中的 Manager 属性,以查看发件人是收件人的经理,还是由收件人管理发件人。The rule checks the Manager attribute in Active Directory to see if the sender is the manager of a recipient, or if the sender is managed by a recipient.
MessageClassification 单个邮件分类Single message classification 在 EAC 中,可以从所创建的邮件分类列表进行选择。In the EAC, you select from the list of message classifications that you've created.

在 Exchange Online PowerShell 中,使用 Get-MessageClassification cmdlet 标识邮件分类。In Exchange Online PowerShell, you use the Get-MessageClassification cmdlet to identify the message classification.

例如,使用以下命令搜索具有分类的邮件,并使用值在邮件 Company Internal 主题前预置 CompanyInternalNew-TransportRule "Rule Name" -HasClassification @(Get-MessageClassification "Company Internal").Identity -PrependSubject "CompanyInternal"For example, use the following command to search for messages with the Company Internal classification and prepend the message subject with the value CompanyInternal: New-TransportRule "Rule Name" -HasClassification @(Get-MessageClassification "Company Internal").Identity -PrependSubject "CompanyInternal"

MessageHeaderField 单个字符串Single string 指定页眉字段的名称。Specifies the name of the header field. 标题字段的名称始终与标题字段中的值配对, (或文本模式匹配) 。邮件头是邮件中必填和可选邮件头字段的集合。The name of the header field is always paired with the value in the header field (word or text pattern match).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-headers。Unofficial header fields start with X- and are known as X-headers.
MessageType 单个邮件类型值Single message type value 指定以下邮件类型之一:Specifies one of the following message types:
  • 自动答复 () OOFAutomatic reply (OOF)
  • 自动转发 () AutoForwardAuto-forward (AutoForward)
  • EncryptedEncrypted
  • 日历Calendaring
  • 权限控制 () PermissionControlledPermission controlled (PermissionControlled)
  • 语音邮件Voicemail
  • SignedSigned
  • 审批请求 ApprovalRequest () Approval request (ApprovalRequest)
  • 已读回ReadReceipt () Read receipt (ReadReceipt)

注意:Outlook或Outlook转发邮件时 ,ForwardingSmtpAddress 属性将添加到邮件中。Note: When Outlook or Outlook on the web is configured to forward a message, the ForwardingSmtpAddress property is added to the message. 邮件类型不会更改为 AutoForwardThe message type isn't changed to AutoForward.

Patterns 正则表达式数组Array of regular expressions 指定用于识别值中的文本模式的一个或多个正则表达式。Specifies one or more regular expressions that are used to identify text patterns in values. 有关详细信息,请参阅 正则表达式语法For more information, see Regular Expression Syntax.

在 Exchange Online PowerShell 中,指定多个用逗号分隔的正则表达式,将每个正则表达式括在引号 (") 。In Exchange Online PowerShell, you specify multiple regular expressions separated by commas, and you enclose each regular expression in quotation marks (").

SCLValue 下列值之一:One of the following values:
  • 绕过垃圾邮件筛选 -1 () Bypass spam filtering (-1)
  • 整数 0 到 9Integers 0 through 9
指定分配到邮件的垃圾邮件可信度 (SCL)。SCL 值越高,表示邮件是垃圾邮件的可能性越大。Specifies the spam confidence level (SCL) that's assigned to a message. A higher SCL value indicates that a message is more likely to be spam.
SensitiveInformationTypes 敏感信息类型数组Array of sensitive information types 指定组织中定义的一个或多个敏感信息类型。Specifies one or more sensitive information types that are defined in your organization. 有关内置敏感信息类型的列表,请参阅敏感信息类型Exchange Server。For a list of built-in sensitive information types, see Sensitive information types in Exchange Server.

在 Exchange Online PowerShell 中,使用语法 @{<SensitiveInformationType1>},@{<SensitiveInformationType2>},...In Exchange Online PowerShell, use the syntax @{<SensitiveInformationType1>},@{<SensitiveInformationType2>},.... 例如,若要查找至少包含两个信用卡号和至少一个 ABA 路由号码的内容,请使用值 @{Name="Credit Card Number"; minCount="2"},@{Name="ABA Routing Number"; minCount="1"}For example, to look for content that contains at least two credit card numbers, and at least one ABA routing number, use the value @{Name="Credit Card Number"; minCount="2"},@{Name="ABA Routing Number"; minCount="1"}.

Size 单个大小值Single size value 指定附件或整个邮件的大小。Specifies the size of an attachment or the whole message.

在 EAC 中,只能以千字节 (KB) 为单位指定大小。In the EAC, you can only specify the size in kilobytes (KB).

在 Exchange Online PowerShell 中,输入值时,使用下列单位之一限定该值:In Exchange Online PowerShell, when you enter a value, qualify the value with one of the following units:

  • B (字节) B (bytes)
  • KB (千字节) KB (kilobytes)
  • MB (兆字节) MB (megabytes)
  • GB (GB) GB (gigabytes)

例如,20 MBFor example, 20 MB. TB(兆兆字节)Unqualified values are typically treated as bytes, but small values may be rounded up to the nearest kilobyte.

SupervisionList 允许或 阻止的 单个 Single value of Allow or Block 监督策略是 Live@edu 中的一项功能,可让你控制谁可以向组织用户发送邮件以及接收来自组织用户的邮件 (例如封闭式校园和防威胁策略) 。Supervision policies were a feature in Live@edu that allowed you to control who could send mail to and receive mail from users in your organization (for example, the closed campus and anti-bullying policies). 在Microsoft 365和Office 365中,不能配置邮箱上的监督列表条目。In Microsoft 365 and Office 365, you can't configure supervision list entries on mailboxes.
UserScopeFrom "组织内部 " () " 或"组织 InOrganization 外部" () NotInOrganizationSingle value of Inside the organization (InOrganization) or Outside the organization (NotInOrganization) 如果满足下列任一条件,则认为发件人位于组织内部:A sender is considered to be inside the organization if either of the following conditions is true:
  • 发件人是存在于组织内部的邮箱、邮件用户、组或启用邮件的公用文件夹。The sender is a mailbox, mail user, group, or mail-enabled public folder that exists inside the organization.
  • 发件人的电子邮件地址位于配置为权威域或内部中继域的接受域中, 并且 通过经验证的连接发送或接收邮件。The sender's email address is in an accepted domain that's configured as an authoritative domain or an internal relay domain, and the message was sent or received over an authenticated connection. 有关接受域详细信息,请参阅管理接受的域Exchange Online。For more information about accepted domains, see Manage accepted domains in Exchange Online.

如果满足下列任一条件,则认为发件人位于组织外部:A sender is considered to be outside the organization if either of the following conditions is true:

  • 发件人的电子邮件地址不位于接受域中。The sender's email address isn't in an accepted domain.
  • 发件人的电子邮件地址位于配置为外部中继域的接受域中。The sender's email address is in an accepted domain that's configured as an external relay domain.

注意:若要确定邮件联系人是位于组织内部还是外部,将发件人地址与组织的接受域进行比较。Note: To determine whether mail contacts are considered to be inside or outside the organization, the sender's address is compared with the organization's accepted domains.

UserScopeTo 下列值之一:One of the following values:
  • 组织内部 () InOrganizationInside the organization (InOrganization)
  • 组织外部 () NotInOrganizationOutside the organization (NotInOrganization)
如果满足下列任一条件,则认为收件人位于组织内部:A recipient is considered to be inside the organization if either of the following conditions is true:
  • 收件人是存在于组织内部的邮箱、邮件用户、组或启用邮件的公用文件夹。The recipient is a mailbox, mail user, group, or mail-enabled public folder that exists inside the organization.
  • 收件人的电子邮件地址位于配置为权威域或内部中继域的接受的域中, 并且 通过经验证的连接发送或接收邮件。The recipient's email address is in an accepted domain that's configured as an authoritative domain or an internal relay domain, and the message was sent or received over an authenticated connection.

如果满足下列任一条件,则认为收件人位于组织外部:A recipient is considered to be outside the organization if either of the following conditions is true:

  • 收件人的电子邮件地址不位于接受域中。The recipient's email address isn't in an accepted domain.
  • 收件人的电子邮件地址位于配置为外部中继域的接受域中。The recipient's email address is in an accepted domain that's configured as an external relay domain.
Words 字符串数组Array of strings 指定一个或多个要查找的词语。Specifies one or more words to look for. 词语不区分大小写,且可以由空格和标点围绕。The words aren't case-sensitive, and can be surrounded by spaces and punctuation marks. 不支持通配符和部分匹配。Wildcards and partial matches aren't supported. 例如,"contoso"与"Contoso"匹配。For example, "contoso" matches " Contoso".

但是,如果文本由其他字符围绕,则不会被视作匹配项。However, if the text is surrounded by other characters, it isn't considered a match. 例如,“contoso”并不匹配以下值:For example, "contoso" doesn't match the following values:

  • AcontosoAcontoso
  • ContosoaContosoa
  • AcontosobAcontosob

星号字符 () 字面字符,不用作 * 通配符。The asterisk (*) is treated as a literal character, and isn't used as a wildcard character.

详细信息For more information

Exchange Online 中的邮件流规则(传输规则)Mail flow rules (transport rules) in Exchange Online

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

邮件流规则过程Exchange OnlineMail flow rule procedures in Exchange Online

New-TransportRuleNew-TransportRule