在 Exchange Online 中的邮件流规则条件和例外 (predicates)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 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 中的邮件流规则的详细信息,请参阅Mail flow 规则 (传输规则) 在 Exchange OnlineFor more information about mail flow rules in Exchange Online, see Mail flow rules (transport rules) in Exchange Online.

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

条件和例外的邮件流 Exchange Online 中的规则Conditions 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) 中选择条件或例外后,在" 在以下情况应用此规则"或" 下列情况除外"字段中最终显示的值通常不同(短于)所选的单击路径值。此外,根据模板(已筛选的方案列表)创建新规则时,通常可以选择短条件名称而不是遵循完整单击路径。短名称和完整单击路径值显示在表的 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. The short names and full click path values are shown in the EAC column in the tables.

  • 如果您选择 [应用于所有邮件] 在 EAC 中,则无法指定任何其他条件。在 Exchange Online PowerShell 中的等效项是不指定任何条件参数创建规则。If you select [Apply to all messages] in the EAC, you can't specify any other conditions. The equivalent in Exchange Online 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 中,在此规则的属性部分中,单击邮件中的匹配发件人地址。请注意,您可能需要单击更多选项以查看此设置。在 Exchange Online PowerShell 中,则_SenderAddressLocation_参数。可用的值为: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. In Exchange Online 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.

  • 信封只检查邮件信封 ( MAIL FROM值 SMTP 传输,这通常存储在返回路径字段中使用) 从发件人。请注意,邮件信封搜索仅适用于以下条件 (和对应的例外):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):

    • 发件人为 ( From)The sender is ( From)

    • 发件人为以下组的成员 ( FromMemberOf)The sender is a member of ( FromMemberOf)

    • 在发件人地址中包含 ( FromAddressContainsWords)The sender address includes ( FromAddressContainsWords)

    • 发件人地址匹配 ( FromAddressMatchesPatterns)The sender address matches ( FromAddressMatchesPatterns)

    • 发件人域为 ( SenderDomainIs)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 在 Exchange Online PowerShell 中的条件和例外参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
发件人为The sender is
发件人 > 是此人The sender > is this person
FromFrom
ExceptIfFromExceptIfFrom
Addresses
按指定的邮箱、 邮件用户或邮件联系人在组织中的发送的邮件。Messages that are sent by the specified mailboxes, mail users, or mail contacts in the organization.
找到发件人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
Frommemberof 以下组FromMemberOf
ExceptIfFromMemberOfExceptIfFromMemberOf
Addresses
由指定组成员发送的邮件。Messages that are sent by a member of the specified group.
在发件人地址中包含The sender address includes
发件人 > 地址包含这些词语中的任意词语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
发件人 > 地址与这些文本模式中的任意模式匹配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.
发件人的 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$'.

Return to topReturn to top

收件人Recipients

EAC 中的条件或例外Condition or exception in the EAC 在 Exchange Online PowerShell 中的条件和例外参数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.
注意: 您不能指定通讯组或已启用邮件的安全组。如果您需要对向组发送的邮件执行操作,请改用框包含( AnyOfToHeader) 条件。Note: You can't specify distribution groups or mail-enabled security groups. 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
包含指定组成员的收件人的邮件。组可以位于邮件的" To "、" Cc "或" Bcc "字段中。 Messages that contain recipients who are members of the specified group. The group can be in the To, Cc, or Bcc fields of the message.
收件人地址包括The recipient address includes
收件人 > 地址包含这些词语中的任意词语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
收件人 > 地址与这些文本模式中的任意模式匹配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$'.

Return to topReturn to top

邮件主题或正文Message subject or body

备注

搜索单词或主题中的文本模式或消息中的其他标头字段发生从编码方法用来将二进制邮件 ASCII 文本中的 SMTP 服务器之间传输的 MIME 内容传输解码邮件。不能使用条件或例外的原始搜索 (通常是 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 在 Exchange Online PowerShell 中的条件和例外参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
在主题或正文中包含The subject or body includes
主题或正文 > 主题或正文包含以下任何词语The subject or body > subject or body includes any of these words
SubjectOrBodyContainsWordsSubjectOrBodyContainsWords
ExceptIfSubjectOrBodyContainsWordsExceptIfSubjectOrBodyContainsWords
Words
在" Subject "字段或邮件正文中包含指定词语的邮件。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
主题或正文 > 主题包含以下任何词语The subject or body > subject includes any of these words
SubjectContainsWordsSubjectContainsWords
ExceptIfSubjectContainsWordsExceptIfSubjectContainsWords
Words
在" Subject "字段中包含指定词语的邮件。Messages that have the specified words in the Subject field.
主题匹配The subject matches
主题或正文 > 主题与这些文本模式匹配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.

Return to topReturn to top

附件Attachments

有关如何邮件流规则检查邮件附件的详细信息,请参阅Use 邮件流 rules to inspect message attachments 位于 Office 365For more information about how mail flow rules inspect message attachments, see Use mail flow rules to inspect message attachments in Office 365.

EAC 中的条件或例外Condition or exception in the EAC 在 Exchange Online PowerShell 中的条件和例外参数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
任何附件> 大小是大于或等于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
附件受密码保护的邮件(因而无法扫描)。密码检测仅适用于 Office 文档和 .zip 文件。Messages where an attachment is password protected (and therefore can't be scanned). Password detection only works for Office documents and .zip 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 文档附件的指定属性包含指定词语的邮件。该条件有助于将邮件流规则与 UNRESOLVED_TOKEN_VAL(exWinSvr2012R2) 或更高版本中的 SharePoint、UNRESOLVED_TOKEN_VAL(exFCI) (FCI) 或第三方分类系统集成。Messages where the specified property of an attached Office document contains the specified words. This condition helps you integrate mail flow rules with SharePoint, UNRESOLVED_TOKEN_VAL(exFCI) (FCI) in UNRESOLVED_TOKEN_VAL(exWinSvr2012R2) or later, or a third-party classification system.
可以从内置属性列表中选择,或指定自定义属性。You can select from a list of built-in properties, or specify a custom property.

Return to topReturn to top

任意收件人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 在 Exchange Online PowerShell 中的条件和例外参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
任何收件人地址包括Any recipient address includes
任何收件人 > 地址包含这些词语中的任意词语Any recipient > address includes any of these words
AnyOfRecipientAddressContainsWordsAnyOfRecipientAddressContainsWords
ExceptIfAnyOfRecipientAddressContainsWordsExceptIfAnyOfRecipientAddressContainsWords
Words
在邮件的" To "、" Cc "或" Bcc "字段中包含指定词语的邮件。Messages that contain the specified words in the To, Cc, or Bcc fields of the message.
任何收件人地址匹配Any recipient address matches
任何收件人 > 地址与这些文本模式中的任意模式匹配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.

Return to topReturn to top

邮件敏感信息类型,"收件人"和"抄送"值、大小和字符集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).

注意:此条件不考虑发送到收件人代理地址的邮件。它只匹配发送到收件人主电子邮件地址的邮件。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 在 Exchange Online PowerShell 中的条件和例外参数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.
"收件人"框包含The To box contains
邮件 > "收件人"框包含此人The message > To box contains this person
AnyOfToHeaderAnyOfToHeader
ExceptIfAnyOfToHeaderExceptIfAnyOfToHeader
Addresses
" To "字段包含任意指定收件人的邮件。Messages where the To field includes any of the specified recipients.
"收件人"框包含以下组的成员The To box contains a member of
邮件 > "收件人"框包含此组的一个成员The message > To box contains a member of this group
AnyOfToHeaderMemberOfAnyOfToHeaderMemberOf
ExceptIfAnyOfToHeaderMemberOfExceptIfAnyOfToHeaderMemberOf
Addresses
" To "字段包含的某个收件人为指定组的成员的邮件。Messages where the To field contains a recipient who is a member of the specified group.
"抄送"框包含The Cc box contains
邮件 > "抄送"框包含此人The message > Cc box contains this person
AnyOfCcHeaderAnyOfCcHeader
ExceptIfAnyOfCcHeaderExceptIfAnyOfCcHeader
Addresses
" Cc "字段包含任意指定收件人的邮件。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
" Cc "字段包含的某个收件人为指定组的成员的邮件。Messages where the Cc field contains a recipient who is a member of the specified group.
"收件人"或"抄送"框中包含The To or Cc box contains
邮件 > "收件人"或"抄送"框包含此人The message > To or Cc box contains this person
Anyoftoccheader 会AnyOfToCcHeader
ExceptIfAnyOfToCcHeaderExceptIfAnyOfToCcHeader
Addresses
" To "或" Cc "字段包含任意指定收件人的邮件。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
" To "或" Cc "字段包含的某个收件人为指定组的成员的邮件。Messages where the To or Cc fields contain a recipient who is a member of the specified group.
邮件大小大于或等于The message size is greater than or equal to
邮件 > 大小大于或等于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.

Return to topReturn to top

发件人和收件人Sender and recipient

EAC 中的条件或例外Condition or exception in the EAC 在 Exchange Online PowerShell 中的条件和例外参数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 groups.
发件人或收件人的经理是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
ExceptIfManagerForEvaluatedUserExceptIfManagerAddressExceptIfManagerForEvaluatedUser 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
发件人和收件人 > 发件人和收件人的属性比较结果为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.

Return to topReturn to top

邮件属性Message properties

EAC 中的条件或例外Condition or exception in the EAC 在 Exchange Online PowerShell 中的条件和例外参数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.
> [!NOTE]> 当 Outlook 或 Outlook Web App 配置为将邮件转发, ForwardingSmtpAddress属性将被添加到邮件中。消息类型不更改为AutoForward> [!NOTE]> When Outlook or Outlook Web App is configured to forward a message, the ForwardingSmtpAddress property is added to the message. The message type isn't changed to AutoForward.
邮件分类为The message is classified as
邮件属性 > 包含此分类The message properties > include this classification
HasClassificationHasClassification
ExceptIfHasClassificationExceptIfHasClassification
MessageClassification
包含指定邮件分类的邮件。这是一种自定义邮件分类,可以使用 New-MessageClassification cmdlet 在组织内进行创建。 Messages that have the specified message classification. This is a custom message classification that you can create in your organization by using the New-MessageClassification cmdlet.
邮件没有用任何分类标记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.
邮件的 SCL 大于或等于The message has an SCL greater than or equal to
邮件属性 > 包含大于或等于以下值的 SCLThe message properties > include an SCL greater than or equal to
SCLOverSCLOver
ExceptIfSCLOverExceptIfSCLOver
SCLValue
分配了大于或等于指定值的垃圾邮件可信度 (SCL) 的邮件。Messages that are assigned a spam confidence level (SCL) that's greater than or equal to the specified value.
消息的重要性设置为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.

Return to topReturn to top

邮件头Message headers

备注

搜索单词或主题中的文本模式或消息中的其他标头字段发生从编码方法用来将二进制邮件 ASCII 文本中的 SMTP 服务器之间传输的 MIME 内容传输解码邮件。不能使用条件或例外的原始搜索 (通常是 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 在 Exchange Online PowerShell 中的条件和例外参数Condition and exception parameters in Exchange Online PowerShell 属性类型Property type 说明Description
邮件头中包含A message header includes
邮件头 > 包含以下任何词语A message header > includes any of these words
HeaderContainsMessageHeaderHeaderContainsWordsHeaderContainsMessageHeader 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
HeaderMatchesMessageHeaderHeaderMatchesPatternsHeaderMatchesMessageHeader and HeaderMatchesPatterns
ExceptIfHeaderMatchesMessageHeaderExceptIfHeaderMatchesPatternsExceptIfHeaderMatchesMessageHeader 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.

Return to topReturn to top

属性类型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 UNRESOLVED_TOKENBLOCK_VAL (PD_Transport_Rules_ADAttributes_Snippet) 在 EAC 中,若要指定多个单词或文本模式的同一属性,用逗号分隔值。例如,旧金山帕洛阿尔托市的市/县属性的值查找"市/县等于旧金山"或市/县等于帕洛阿尔托市"。在 Exchange Online PowerShell 中,使用语法"AttributeName1:Value1,Value 2 with spaces,Value3...","AttributeName2:Word4,Value 5 with spaces,Value6...",其中Value是您想要匹配的单词或文本模式。例如,"City:San Francisco,Palo Alto""City:San Francisco,Palo Alto""Department:Sales,Finance"。当指定多个属性或多个属性的值相同时,将使用or运算符。不要使用值的前导或尾随空格。注意的国家/地区属性,需要两个字母 ISO 3166-1 国家/地区代码值 (例如,DE 德国)。若要搜索的值,请参阅https://go.microsoft.com/fwlink/p/?LinkId=331680UNRESOLVED_TOKENBLOCK_VAL(PD_Transport_Rules_ADAttributes_Snippet)In the EAC, to specify multiple words or text patterns for the same attribute, separate the values with commas. For example, the value San Francisco,Palo Alto for the City attribute looks for "City equals San Francisco" or City equals Palo Alto". 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. For example, "City:San Francisco,Palo Alto" or "City:San Francisco,Palo Alto", "Department:Sales,Finance".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. Note that the Country attribute requires the two-letter ISO 3166-1 country code value (for example, DE for Germany). To search for values, see https://go.microsoft.com/fwlink/p/?LinkId=331680.
Addresses Exchange Online 收件人Exchange Online recipients 根据条件或例外的性质,您可能能够指定 (例如,收件人相关条件),在组织中任何启用邮件的对象或您可能会受到限制到特定对象类型 (例如,组的组成员身份条件)。和条件或例外可能需要一个值,或允许多个值。在 Exchange Online PowerShell 中,使用逗号分隔多个值。注意: 此条件会不考虑到收件人的代理地址发送的邮件。它仅匹配发送到收件人的主电子邮件地址的邮件。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.In Exchange Online PowerShell, separate multiple values by commas. 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.
CharacterSets 字符集名称数组Array of character set names 邮件中存在的一个或多个内容字符集。例如: 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/tcvnOne 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.comeu.contoso.com。在 Exchange Online PowerShell 中,您可以指定用逗号分隔的多个域。For example, contoso.com or eu.contoso.com.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 " 等于"或" 不等于"( NotEqual) 的单个值Single 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 或 Outlook Web App 中的重要性级别。The Importance level that was assigned to the message by the sender in Outlook or Outlook Web App.
IPAddressRanges IP 地址或地址范围数组Array of IP addresses or address ranges 输入使用以下语法的 IPv4 地址: 例如,单个 IP 地址 192.168.1.1IP 地址范围例如, 192.168.0.1-192.168.0.254无类别域际路由选择 (CIDR) IP 地址范围例如, 192.168.0.1/25。 在 Exchange Online PowerShell 中,您可以指定多个 IP 地址或以逗号分隔的范围。You enter the IPv4 addresses using the following syntax: Single IP address For example, 192.168.1.1. IP address range For example, 192.168.0.1-192.168.0.254. Classless InterDomain Routing (CIDR) IP address range For example, 192.168.0.1/25. 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) 指定发件人和任意收件人之间的关系。此规则检查 Active Directory 中的 Manager 属性,以查看发件人是否是收件人的经理,或发件人是否由收件人管理。Specifies the relationship between the sender and any of the recipients. 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 中,从列表中选择您已创建的邮件分类。在 Exchange Online PowerShell 中,您可以使用Get-messageclassification cmdlet 来标识邮件分类。例如,使用以下命令搜索带有Company Internal分类和值与邮件主题前面追加CompanyInternalNew-TransportRule "Rule Name" -HasClassification @(Get-MessageClassification "Company Internal").Identity -PrependSubject "CompanyInternal"In the EAC, you select from the list of message classifications that you've created.In Exchange Online PowerShell, you use the Get-MessageClassification cmdlet to identify the message classification. 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 指定标头字段的名称。标头字段 (word 或文本模式匹配) 中的值与始终配对标头字段的名称。邮件头的消息中的必需的和可选的标头字段的集合。标头字段的示例包括Received内容类型。RFC 5322 中定义了官方标头字段。非正式的标头字段开头X- 和称为 X 标头。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. Examples of header fields are To, From, Received, and Content-Type. Official header fields are defined in RFC 5322. Unofficial header fields start with X- and are known as X-headers.
MessageType 单个邮件类型值Single message type value 指定以下邮件类型之一:自动答复( OOF)自动转接( AutoForward)加密日历权限控制( PermissionControlled)语音邮件已登录 审批请求( ApprovalRequest)已读回执( ReadReceipt) > [!NOTE]> 时的 Outlook 或 Outlook Web App 配置为将邮件转发, ForwardingSmtpAddress属性添加到邮件。消息类型不更改为AutoForwardSpecifies one of the following message types: Automatic reply ( OOF) Auto-forward ( AutoForward) Encrypted Calendaring Permission controlled ( PermissionControlled) Voicemail Signed Approval request ( ApprovalRequest) Read receipt ( ReadReceipt) > [!NOTE]> When Outlook or Outlook Web App is configured to forward a message, the ForwardingSmtpAddress property is added to the message. The message type isn't changed to AutoForward.
Patterns 正则表达式数组Array of regular expressions 指定用于标识值中的文本模式的一个或多个正则表达式。有关详细信息,请参阅正则表达式语法。在 Exchange Online PowerShell 中,指定用逗号分隔的多个正则表达式,则将每个正则表达式括在引号 (")。Specifies one or more regular expressions that are used to identify text patterns in values. For more information, see Regular Expression Syntax.In Exchange Online PowerShell, you specify multiple regular expressions separated by commas, and you enclose each regular expression in quotation marks (").
SCLValue 下列值之一: 不使用垃圾邮件筛选 ( -1) 整数 0 到 9One of the following values: Bypass spam filtering ( -1) Integers 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 指定在组织中定义的一个或多个敏感信息类型。内置的敏感信息类型的列表,请参阅类型 Exchange 中的寻找什么敏感信息。在 Exchange Online PowerShell 中,使用语法@{<SensitiveInformationType1>},@{<SensitiveInformationType2>},...。例如,若要寻找包含至少两个信用卡号,并至少一个 ABA 银行代号内容时,使用值@{Name="Credit Card Number"; minCount="2"},@{Name="ABA Routing Number"; minCount="1"}Specifies one or more sensitive information types that are defined in your organization. For a list of built-in sensitive information types, see What the sensitive information types in Exchange look for.In Exchange Online PowerShell, use the syntax @{<SensitiveInformationType1>},@{<SensitiveInformationType2>},.... 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 指定附件或整个邮件的大小。 在 EAC 中,您可以只指定的大小以千字节 (KB)。 在 Exchange Online PowerShell 中,输入一个值时,限定的值与下列单位之一: B (字节) KB (千字节) MB (兆字节) GB (千兆字节),如20MB未限定的值通常被视为字节,但较小的值可能被四舍五入到最接近千字节为止。Specifies the size of an attachment or the whole message. In the EAC, you can only specify the size in kilobytes (KB). In Exchange Online PowerShell, when you enter a value, qualify the value with one of the following units: B (bytes) KB (kilobytes) MB (megabytes) GB (gigabytes) For example, 20MB Unqualified values are typically treated as bytes, but small values may be rounded up to the nearest kilobyte.
SupervisonList 允许阻止的单个值Single value of Allow or Block 监督策略已允许您以控制哪些人无法发送到的邮件,并接收来自组织 (例如,封闭式的校园和指定的策略) 中的用户的邮件的 Live@edu 中的功能。在 Office 365 中,不能对邮箱配置监督列表条目。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). In Office 365, you can't configure supervision list entries on mailboxes.
UserScopeFrom " 组织内部"( InOrganization) 或" 组织外部"( NotInOrganization) 的单个值Single value of Inside the organization ( InOrganization) or Outside the organization ( NotInOrganization) 如果满足下列任一条件,则认为发件人位于组织内部: 发件人是存在于组织的 Active Directory 内的邮箱、邮件用户、组或启用邮件功能的公用文件夹。 发件人的电子邮件地址位于配置为权威域或内部中继域的接受域中, 并且 通过经验证的连接发送或接收邮件。有关接受域的详细信息,请参阅 接受域。 如果满足下列任一条件,则认为发件人位于组织外部: 发件人的电子邮件地址不位于接受域中。 发件人的电子邮件地址位于配置为外部中继域的接受域中。 > [!NOTE]> 要确定邮件联系人在组织内部还是外部,可将发件人地址与组织的接受域进行比较。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 in the organization's Active Directory. 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. For more information about accepted domains, see Accepted Domains. 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 下列值之一:组织内部( InOrganization)在组织外部( NotInOrganization)One of the following values: Inside the organization ( InOrganization) Outside the organization ( NotInOrganization) 收件人被认为如果满足下列条件之一,可以在组织内: 收件人是邮箱、 邮件用户、 组或已启用邮件的公用文件夹存在于组织的 Active Directory 中。 收件人的电子邮件地址位于配置为权威域或内部中继域,邮件已发送或接收通过经过身份验证连接的接受域。 收件人被认为是组织外部,如果满足以下条件之一为真: 收件人的电子邮件地址不在的接受域。 收件人的电子邮件地址位于配置为外部中继域的接受域。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 in the organization's Active Directory. 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 指定一个或多个要查找的词语。词语不区分大小写,且可以由空格和标点围绕。不支持通配符和部分匹配。 例如,"contoso"匹配" Contoso"。但是,如果文本由其他字符围绕,则不会被视作匹配项。 例如,"contoso"并不匹配以下值: Acontoso Contosoa Acontosob 星号 (*) 将被视为是文字字符,而不用作通配符。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. For example, "contoso" matches " Contoso.". However, if the text is surrounded by other characters, it isn't considered a match. For example, "contoso" doesn't match the following values: Acontoso Contosoa Acontosob The asterisk (*) is treated as a literal character, and isn't used as a wildcard character.

Return to topReturn to top

详细信息For more information

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

邮件流规则操作在 Exchange OnlineMail flow rule actions in Exchange Online

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

Exchange server 中的 transport Rule Conditions (Predicates)Transport Rule Conditions (Predicates) for Exchange Server

适用于 Exchange Online Protection 的Transport Rule Conditions (Predicates)Transport Rule Conditions (Predicates) for Exchange Online Protection

New-transportruleNew-TransportRule