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.

如需關於條件和例外狀況的郵件流程規則中的 Exchange Online Protection 或 Exchange 2013,請參閱[郵件流程規則條件和例外狀況 (述詞) 在 Exchange Online Protection郵件流程規則條件及Exchange 2013 中的例外狀況 (述詞)For more information about conditions and exceptions in mail flow rules in Exchange Online Protection or Exchange 2013, see Mail flow rule conditions and exceptions (predicates) in Exchange Online Protection or Mail flow rule conditions and exceptions (predicates) in Exchange 2013.

條件和例外狀況的郵件流程 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) 中選取的條件或例外狀況之後,最終示套用此規則情況如果除了欄位的值通常是不同 (小於) 您所選取的 click 路徑值。此外,當您建立新的範本 (已篩選清單的案例) 為基礎的規則,您通常可以選取而不是遵循完成 click 路徑的簡短的條件名稱。簡短的名稱與完整按一下值顯示在表格中的 [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指令程式的輸出不會分別列出例外狀況。此外,此指令程式會傳回述詞的部分名稱不同於相對應的參數名稱,且述詞可能需要多個參數。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 傳輸,通常是儲存在 [ Return 路徑] 欄位中)。請注意郵件信封搜尋只適用於下列情況 (和對應的例外狀況):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)

    • 寄件者的網域是( 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
From
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.
請注意國家屬性需要兩個字母國家/地區碼值 (例如 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 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
郵件包含收件者屬於指定之群組的成員。群組可以將郵件[副本] 或 [密件副本] 欄位中。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.
注意事項:這種情況並未考慮傳送至收件者 Proxy 位址的郵件。而只比對傳送至收件者主要電子郵件地址的郵件。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.
注意事項:這種情況並未考慮傳送至收件者 Proxy 位址的郵件。而只比對傳送至收件者主要電子郵件地址的郵件。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.
請注意國家屬性需要兩個字母國家/地區碼值 (例如 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 top

郵件主旨或內文Message subject or body

注意

搜尋字詞或主旨中的文字模式或其他郵件中的標頭欄位發生已從 MIME 內容傳輸編碼方法用來傳輸 ASCII 文字中的 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 在 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
在 [主旨] 欄位或郵件內文中含有指定的文字的郵件。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
其中模式的 [主旨] 欄位或郵件內文包含文字的郵件符合指定規則運算式。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
在 [主旨] 欄位中含有指定的文字的郵件。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
出 [主旨] 欄位中包含文字模式符合指定規則運算式的郵件。Messages where the Subject field contains text patterns that match the specified regular expressions.

回到頁首Return to top

附件Attachments

如需如何郵件流程規則檢查郵件附件的詳細資訊,請參閱使用郵件流程規則檢查 Office 365 中的郵件附件For 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 文件的指定的屬性包含指定的文字的郵件。此條件可協助您整合 SharePoint、 UNRESOLVED_TOKEN_VAL(exFCI) (FCI) 以 UNRESOLVED_TOKEN_VAL(exWinSvr2012R2) 或更新版本或協力廠商分類系統郵件流程規則。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 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.

注意事項:這種情況並未考慮傳送至收件者 Proxy 位址的郵件。而只比對傳送至收件者主要電子郵件地址的郵件。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
包含指定的文字的郵件[副本] 或 [密件副本] 欄位中的郵件。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
其中[副本] 或 [密件副本] 欄位包含的文字模式符合指定規則運算式的郵件。Messages where the To, Cc, or Bcc fields contain text patterns that match the specified regular expressions.

回到頁首Return to top

為郵件敏感資訊類型和 [副本] 值、 大小和字元集Message sensitive information types, To and Cc values, size, and character sets

在這個條件] 區段的外觀 for和 **[副本]** 欄位中的值的行為像任何收件者] 區段中的條件 (所有收件者的郵件影響規則,而不只是偵測到的收件者)。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).

注意事項:這種情況並未考慮傳送至收件者 Proxy 位址的郵件。而只比對傳送至收件者主要電子郵件地址的郵件。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
其中 [] 欄位包含任何指定收件者的郵件。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
欄位包含收件者屬於指定之群組成員的郵件。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
出 [副本] 欄位包含任何指定收件者的郵件。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 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 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 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
BetweenMemberOf1_及_BetweenMemberOf2BetweenMemberOf1 and BetweenMemberOf2
ExceptIfBetweenMemberOf1_和_ExceptIfBetweenMemberOf2ExceptIfBetweenMemberOf1 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
ManagerForEvaluatedUser_及_ManagerAddressManagerForEvaluatedUser 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
寄件者和收件者> 寄件者和收件者的屬性比較結果為The sender and the recipient > the sender and recipient property compares as
ADAttributeComparisonAttribute_及_ADComparisonOperatorADAttributeComparisonAttribute and ADComparisonOperator
ExceptIfADAttributeComparisonAttribute_和_ExceptIfADComparisonOperatorExceptIfADAttributeComparisonAttribute 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指令程式來建立自訂的郵件分類。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
編製郵件內容> 包含的 SCL 大於或等於The 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 top

郵件標頭Message headers

注意

搜尋字詞或主旨中的文字模式或其他郵件中的標頭欄位發生已從 MIME 內容傳輸編碼方法用來傳輸 ASCII 文字中的 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 在 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
HeaderContainsMessageHeader_及_HeaderContainsWordsHeaderContainsMessageHeader and HeaderContainsWords
ExceptIfHeaderContainsMessageHeader_和_ExceptIfHeaderContainsWordsExceptIfHeaderContainsMessageHeader 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
比對的模式_和_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.

回到頁首Return 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 中,若要指定多個字或文字模式相同的屬性,請使用逗號分隔值。例如,金山、 Palo Alto City屬性的值會尋找"-市/鎮等於金山"] 或 [城市] 相當於 Palo Alto"。在 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 中以逗號來分隔多個值。注意: 此條件可不會考量就會傳送給收件者的 proxy 位址的郵件。只比對出收件者的主要電子郵件地址傳送的郵件。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 SenderRecipient 的單一值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 Low標準模式、 或的單一值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 單一Manager直屬的值 ( DirectReport)Single value of Manager or Direct report( DirectReport) 會指定寄件者與任何收件者之間的關係。此規則會檢查中看到如果寄件者是收件者、 主管或寄件者收件者管理 Active Directory管理員屬性。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指令程式來識別的郵件分類。例如,使用下列命令來搜尋郵件是否有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)語音信箱 Signed 核准要求( 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>},...。例如,若要尋找包含至少兩種信用卡數字及至少一個阿拉巴馬州路由號碼的內容、 使用值@{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 (mb) GB (gb) 例如20MB無限定的值都通常被視為位元組,但較小的值可能要無條件進位至最接近 kb。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 2013 的transport Rule Conditions (Predicates)Transport Rule Conditions (Predicates) for Exchange 2013

Exchange Online Protection 的Transport Rule Conditions (Predicates)Transport Rule Conditions (Predicates) for Exchange Online Protection

New-transportruleNew-TransportRule