Send Message To Ip Address
|
To add an additional dedicated IP Address: In the left navigation, select Settings and then click IP Addresses. Here you'll see a list of your current d IPs. Your IPs in warmup will have a 'warmup' label. Click Add an IP Address. Select the number of IP addresses you would like to purchase. Under 'Additional Options' you will find the following. Feb 20, 2020 The correct IP address isn't contained in the last Received line because information faked by a sender appears at the bottom of an email header. To find the correct address: Start from the last Received line and trace the path taken by the message by traveling up through the header.
-->I'm trying to find out how to send text based or another type of message though command prompt directly to another person's computer just knowing their IP address. Please help me out! System Configuration: Windows Vista Safari 530.5. An Internet Protocol address (IP address) is a numerical label that is assigned to any device participating in a computer network that uses the Internet Protocol for communication between its nodes. (IP Addresses) We use IP addresses to analyse trends, administer our.
Conditions and exceptions in mail flow rules (also known as transport rules) identify the messages that the rule is applied to or not applied to. For example, if the rule adds a disclaimer to messages, you can configure the rule to only apply to messages that contain specific words, messages sent by specific users, or to all messages except those sent by the members of a specific distribution group. Collectively, the conditions and exceptions in mail flow rules are also known as predicates, because for every condition, there's a corresponding exception that uses the exact same settings and syntax. The only difference is conditions specify messages to include, while exceptions specify messages to exclude.
Most conditions and exceptions have one property that requires one or more values. For example, the The sender is condition requires the sender of the message. Some conditions have two properties. For example, the A message header includes any of these words condition requires one property to specify the message header field, and a second property to specify the text to look for in the header field. Some conditions or exceptions don't have any properties. For example, the Any attachment has executable content condition simply looks for attachments in messages that have executable content.
For more information about mail flow rules in Exchange Online, including how multiple conditions/exceptions or multi-valued conditions/exceptions are handled, see Mail flow rules (transport rules) in Exchange Online.
Conditions and exceptions for mail flow rules in 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.
Notes:
Send Message To Ip Address Range 16
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.
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.
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.
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.
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)
The sender is a member of(FromMemberOf)
The sender address includes(FromAddressContainsWords)
The sender address matches(FromAddressMatchesPatterns)
The sender's domain is(SenderDomainIs)
Header or envelope (
HeaderOrEnvelope
) Examine senders in the message header and the message envelope.
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
The sender is The sender > is this person | From ExceptIfFrom | Addresses | Messages that are sent by the specified mailboxes, mail users, mail contacts, or Microsoft 365 groups in the organization. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The sender is located The sender > is external/internal | FromScope ExceptIfFromScope | 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 ExceptIfFromMemberOf | Addresses | Messages that are sent by a member of the specified distribution group, mail-enabled security group, or Microsoft 365 group. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The sender address includes The sender > address includes any of these words | FromAddressContainsWords ExceptIfFromAddressContainsWords | 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 | FromAddressMatchesPatterns ExceptIfFromAddressMatchesPatterns | 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 | SenderInRecipientList ExceptIfSenderInRecipientList | 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 | SenderADAttributeContainsWords ExceptIfSenderADAttributeContainsWords | First property: ADAttribute Second property: Words | Messages where the specified Active Directory attribute of the sender contains any of the specified words. 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 | SenderADAttributeMatchesPatterns ExceptIfSenderADAttributeMatchesPatterns | First property: ADAttribute Second property: Patterns | 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 | HasSenderOverride ExceptIfHasSenderOverride | n/a | Messages where the sender has chosen to override a data loss prevention (DLP) policy. For more information about DLP policies, see Data loss prevention. Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments. |
Sender's IP address is in the range The sender > IP address is in any of these ranges or exactly matches | SenderIPRanges ExceptIfSenderIPRanges | IPAddressRanges | 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 | SenderDomainIs ExceptIfSenderDomainIs | DomainName | Messages where the domain of the sender's email address matches the specified value. If you need to find sender domains that contain the specified domain (for example, any subdomain of a domain), use The sender address matches(FromAddressMatchesPatterns) condition and specify the domain by using the syntax: '.domain.com$' . |
Recipients
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
The recipient is The recipient > is this person | SentTo ExceptIfSentTo | 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. Note: You can't specify distribution groups, mail-enabled security groups, or Microsoft 365 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 | SentToScope ExceptIfSentToScope | UserScopeTo | Messages that are sent to internal or external recipients. |
The recipient is a member of The recipient > is a member of this group | SentToMemberOf ExceptIfSentToMemberOf | Addresses | Messages that contain recipients who are members of the specified distribution group, mail-enabled security group, or Microsoft 365 group. The group can be in the To, Cc, or Bcc fields of the message. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The recipient address includes The recipient > address includes any of these words | RecipientAddressContainsWords ExceptIfRecipientAddressContainsWords | 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 | RecipientAddressMatchesPatterns ExceptIfRecipientAddressMatchesPatterns | 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 | RecipientInSenderList ExceptIfRecipientInSenderList | 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 | RecipientADAttributeContainsWords ExceptIfRecipientADAttributeContainsWords | First property: ADAttribute Second property: Words | Messages where the specified Active Directory attribute of a recipient contains any of the specified words. 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 | RecipientADAttributeMatchesPatterns ExceptIfRecipientADAttributeMatchesPatterns | First property: ADAttribute Second property: Patterns | 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 | RecipientDomainIs ExceptIfRecipientDomainIs | DomainName | Messages where the domain of a recipient's email address matches the specified value. 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$' . |
Conditions and exceptions in mail flow rules (also known as transport rules) identify the messages that the rule is applied to or not applied to. For example, if the rule adds a disclaimer to messages, you can configure the rule to only apply to messages that contain specific words, messages sent by specific users, or to all messages except those sent by the members of a specific distribution group. Collectively, the conditions and exceptions in mail flow rules are also known as predicates, because for every condition, there's a corresponding exception that uses the exact same settings and syntax. The only difference is conditions specify messages to include, while exceptions specify messages to exclude.
Most conditions and exceptions have one property that requires one or more values. For example, the The sender is condition requires the sender of the message. Some conditions have two properties. For example, the A message header includes any of these words condition requires one property to specify the message header field, and a second property to specify the text to look for in the header field. Some conditions or exceptions don't have any properties. For example, the Any attachment has executable content condition simply looks for attachments in messages that have executable content.
For more information about mail flow rules in Exchange Online, including how multiple conditions/exceptions or multi-valued conditions/exceptions are handled, see Mail flow rules (transport rules) in Exchange Online.
Conditions and exceptions for mail flow rules in 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.
Notes:
Send Message To Ip Address Range 16
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.
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.
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.
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.
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)
The sender is a member of(FromMemberOf)
The sender address includes(FromAddressContainsWords)
The sender address matches(FromAddressMatchesPatterns)
The sender's domain is(SenderDomainIs)
Header or envelope (
HeaderOrEnvelope
) Examine senders in the message header and the message envelope.
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
The sender is The sender > is this person | From ExceptIfFrom | Addresses | Messages that are sent by the specified mailboxes, mail users, mail contacts, or Microsoft 365 groups in the organization. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The sender is located The sender > is external/internal | FromScope ExceptIfFromScope | 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 ExceptIfFromMemberOf | Addresses | Messages that are sent by a member of the specified distribution group, mail-enabled security group, or Microsoft 365 group. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The sender address includes The sender > address includes any of these words | FromAddressContainsWords ExceptIfFromAddressContainsWords | 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 | FromAddressMatchesPatterns ExceptIfFromAddressMatchesPatterns | 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 | SenderInRecipientList ExceptIfSenderInRecipientList | 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 | SenderADAttributeContainsWords ExceptIfSenderADAttributeContainsWords | First property: ADAttribute Second property: Words | Messages where the specified Active Directory attribute of the sender contains any of the specified words. 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 | SenderADAttributeMatchesPatterns ExceptIfSenderADAttributeMatchesPatterns | First property: ADAttribute Second property: Patterns | 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 | HasSenderOverride ExceptIfHasSenderOverride | n/a | Messages where the sender has chosen to override a data loss prevention (DLP) policy. For more information about DLP policies, see Data loss prevention. Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments. |
Sender's IP address is in the range The sender > IP address is in any of these ranges or exactly matches | SenderIPRanges ExceptIfSenderIPRanges | IPAddressRanges | 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 | SenderDomainIs ExceptIfSenderDomainIs | DomainName | Messages where the domain of the sender's email address matches the specified value. If you need to find sender domains that contain the specified domain (for example, any subdomain of a domain), use The sender address matches(FromAddressMatchesPatterns) condition and specify the domain by using the syntax: '.domain.com$' . |
Recipients
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
The recipient is The recipient > is this person | SentTo ExceptIfSentTo | 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. Note: You can't specify distribution groups, mail-enabled security groups, or Microsoft 365 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 | SentToScope ExceptIfSentToScope | UserScopeTo | Messages that are sent to internal or external recipients. |
The recipient is a member of The recipient > is a member of this group | SentToMemberOf ExceptIfSentToMemberOf | Addresses | Messages that contain recipients who are members of the specified distribution group, mail-enabled security group, or Microsoft 365 group. The group can be in the To, Cc, or Bcc fields of the message. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The recipient address includes The recipient > address includes any of these words | RecipientAddressContainsWords ExceptIfRecipientAddressContainsWords | 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 | RecipientAddressMatchesPatterns ExceptIfRecipientAddressMatchesPatterns | 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 | RecipientInSenderList ExceptIfRecipientInSenderList | 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 | RecipientADAttributeContainsWords ExceptIfRecipientADAttributeContainsWords | First property: ADAttribute Second property: Words | Messages where the specified Active Directory attribute of a recipient contains any of the specified words. 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 | RecipientADAttributeMatchesPatterns ExceptIfRecipientADAttributeMatchesPatterns | First property: ADAttribute Second property: Patterns | 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 | RecipientDomainIs ExceptIfRecipientDomainIs | DomainName | Messages where the domain of a recipient's email address matches the specified value. If you need to find recipient domains that contain the specified domain (for example, any subdomain of a domain), use The recipient address matches (RecipientAddressMatchesPatterns) condition, and specify the domain by using the syntax '.domain.com$' . |
Message subject or body
Note
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.
Condition or exception in the EAC | 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 | SubjectOrBodyContainsWords ExceptIfSubjectOrBodyContainsWords | 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 | SubjectOrBodyMatchesPatterns ExceptIfSubjectOrBodyMatchesPatterns | 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 | SubjectContainsWords ExceptIfSubjectContainsWords | Words | Messages that have the specified words in the Subject field. |
The subject matches The subject or body > subject matches these text patterns | SubjectMatchesPatterns ExceptIfSubjectMatchesPatterns | Patterns | Messages where the Subject field contains text patterns that match the specified regular expressions. |
Attachments
For more information about how mail flow rules inspect message attachments, see Use mail flow rules to inspect message attachments in Exchange Online.
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
Any attachment's content includes Any attachment > content includes any of these words | AttachmentContainsWords ExceptIfAttachmentContainsWords | Words | Messages where an attachment contains the specified words. |
Any attachments content matches Any attachment > content matches these text patterns | AttachmentMatchesPatterns ExceptIfAttachmentMatchesPatterns | Patterns | Messages where an attachment contains text patterns that match the specified regular expressions. 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 | AttachmentIsUnsupported ExceptIfAttachmentIsUnsupported | n/a | 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 | AttachmentNameMatchesPatterns ExceptIfAttachmentNameMatchesPatterns | 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 | AttachmentExtensionMatchesWords ExceptIfAttachmentExtensionMatchesWords | 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 | AttachmentSizeOver ExceptIfAttachmentSizeOver | Size | Messages where any attachment is greater than or equal to the specified value. In the EAC, you can only specify the size in kilobytes (KB). |
The message didn't complete scanning Any attachment > didn't complete scanning | AttachmentProcessingLimitExceeded ExceptIfAttachmentProcessingLimitExceeded | 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 | AttachmentHasExecutableContent ExceptIfAttachmentHasExecutableContent | 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 | AttachmentIsPasswordProtected ExceptIfAttachmentIsPasswordProtected | n/a | 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 | AttachmentPropertyContainsWords ExceptIfAttachmentPropertyContainsWords | First property: DocumentProperties Second property: Words | Messages where the specified property of an attached Office document contains the specified words. This condition helps you integrate mail flow rules with SharePoint, File Classification Infrastructure (FCI) in Windows Server 2012 R2 or later, or a third-party classification system. You can select from a list of built-in properties, or specify a custom property. |
Any recipients
The conditions and exceptions in this section provide a unique capability that affects all recipients when the message contains at least one of the specified recipients. For example, let's say you have a rule that rejects messages. If you use a recipient condition from the Recipients section, the message is only rejected for those specified recipients. For example, if the rule finds the specified recipient in a message, but the message contains five other recipients. The message is rejected for that one recipient, and is delivered to the five other recipients.
If you add a recipient condition from this section, that same message is rejected for the detected recipient and the five other recipients.
Conversely, a recipient exception from this section prevents the rule action from being applied to all recipients of the message, not just for the detected recipients.
Note: This condition doesn't consider messages that are sent to recipient proxy addresses. It only matches messages that are sent to the recipient's primary email address.
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
Any recipient address includes Any recipient > address includes any of these words | AnyOfRecipientAddressContainsWords ExceptIfAnyOfRecipientAddressContainsWords | 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 | AnyOfRecipientAddressMatchesPatterns ExceptIfAnyOfRecipientAddressMatchesPatterns | Patterns | Messages where the To, Cc, or Bcc fields contain text patterns that match the specified regular expressions. |
Message sensitive information types, To and Cc values, size, and character sets
The conditions in this section that look for values in the To and Cc fields behave like the conditions in the Any recipients section (all recipients of the message are affected by the rule, not just the detected recipients).
Notes:
The recipient conditions in this section do not consider messages that are sent to recipient proxy addresses. They only match messages that are sent to the recipient's primary email address.
For more information about using Microsoft 365 groups with the recipient conditions in this section, see the Addresses entry in the Property types section.
Condition or exception in the EAC | 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 | MessageContainsDataClassifications ExceptIfMessageContainsDataClassifications | SensitiveInformationTypes | Messages that contain sensitive information as defined by data loss prevention (DLP) policies. This condition is required for rules that use the Notify the sender with a Policy Tip (NotifySender) action. Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments. |
The To box contains The message > To box contains this person | AnyOfToHeader ExceptIfAnyOfToHeader | 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 | AnyOfToHeaderMemberOf ExceptIfAnyOfToHeaderMemberOf | Addresses | Messages where the To field contains a recipient who is a member of the specified distribution group, mail-enabled security group, or Microsoft 365 group. |
The Cc box contains The message > Cc box contains this person | AnyOfCcHeader ExceptIfAnyOfCcHeader | 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 | AnyOfCcHeaderMemberOf ExceptIfAnyOfCcHeaderMemberOf | Addresses | Messages where the Cc field contains a recipient who is a member of the specified distribution group or mail-enabled security group. |
The To or Cc box contains The message > To or Cc box contains this person | AnyOfToCcHeader ExceptIfAnyOfToCcHeader | 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 | AnyOfToCcHeaderMemberOf ExceptIfAnyOfToCcHeaderMemberOf | Addresses | Messages where the To or Cc fields contain a recipient who is a member of the specified distribution group or mail-enabled security group. |
The message size is greater than or equal to The message > size is greater than or equal to | MessageSizeOver ExceptIfMessageSizeOver | Size | Messages where the total size (message plus attachments) is greater than or equal to the specified value. 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 | ContentCharacterSetContainsWords ExceptIfContentCharacterSetContainsWords | CharacterSets | Messages that have any of the specified character set names. |
Sender and recipient
Condition or exception in the EAC | 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 | SenderManagementRelationship ExceptIfSenderManagementRelationship | 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 and BetweenMemberOf2 ExceptIfBetweenMemberOf1 and ExceptIfBetweenMemberOf2 | Addresses | Messages that are sent between members of the specified distribution groups or mail-enabled security groups. For more information about using Microsoft 365 groups with this condition, see the Addresses entry in the Property types section. |
The manager of the sender or recipient is The sender and the recipient > the manager of the sender or recipient is this person | ManagerForEvaluatedUser and ManagerAddress ExceptIfManagerForEvaluatedUser and ExceptIfManagerAddress | First property: EvaluatedUser Second 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 and ADComparisonOperator ExceptIfADAttributeComparisonAttribute and ExceptIfADComparisonOperator | First property: ADAttribute Second property: Evaluation | Messages where the specified Active Directory attribute for the sender and recipient either match or don't match. |
Message properties
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
The message type is The message properties > include the message type | MessageTypeMatches ExceptIfMessageTypeMatches | MessageType | Messages of the specified type. Note: When Outlook or Outlook on the web (formerly known as Outlook Web App) is configured to forward a message, the ForwardingSmtpAddress property is added to the message. The message type isn't changed to AutoForward . |
The message is classified as The message properties > include this classification | HasClassification ExceptIfHasClassification | 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. Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments. |
The message isn't marked with any classifications The message properties > don't include any classification | HasNoClassification ExceptIfHasNoClassification | n/a | Messages that don't have a message classification. Note: This condition/exception isn't available in standalone Exchange Online Protection (EOP) environments. |
The message importance is set to The message properties > include the importance level | WithImportance ExceptIfWithImportance | Importance | Messages that are marked with the specified Importance level. |
Message headers
Note
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.
Condition or exception in the EAC | Condition and exception parameters in Exchange Online PowerShell | Property type | Description |
---|---|---|---|
A message header includes A message header > includes any of these words | HeaderContainsMessageHeader and HeaderContainsWords ExceptIfHeaderContainsMessageHeader and ExceptIfHeaderContainsWords | First property: MessageHeaderField Second 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 and HeaderMatchesPatterns ExceptIfHeaderMatchesMessageHeader and ExceptIfHeaderMatchesPatterns | First property: MessageHeaderField Second property: Patterns | Messages that contain the specified header field, and the value of that header field contains the specified regular expressions. The name of the header field and the value of the header field are always used together. |
Property types
Send Message To Ip Address
The property types that are used in conditions and exceptions are described in the following table.
Note
If the property is a string, trailing spaces are not allowed.
Property type | Valid values | Description |
---|---|---|
ADAttribute | Select from a predefined list of Active Directory attributes | You can check against any of the following Active Directory attributes: City Company Country CustomAttribute1 - CustomAttribute15 Department DisplayName FaxNumber FirstName HomePhoneNumber Initials LastName Manager MobileNumber Notes Office OtherFaxNumber OtherHomePhoneNumber OtherPhoneNumber PagerNumber PhoneNumber POBox State Street Title UserLogonName ZipCode 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). For more information, see Country Codes - ISO 3166. |
Addresses | Exchange Online recipients | Depending on the nature of the condition or exception, you might be able to specify any mail-enabled object in the organization (for example, recipient-related conditions), or you might be limited to a specific object type (for example, groups for group membership conditions). And, the condition or exception might require one value, or allow multiple values. In Exchange Online PowerShell, separate multiple values by commas. This condition doesn't consider messages that are sent to recipient proxy addresses. It only matches messages that are sent to the recipient's primary email address. The recipient picker in the EAC doesn't allow you to select Microsoft 365 groups from the list of recipients. But, you can enter the email address of a Microsoft 365 group in the box next to Check names, and then validate the email address by clicking Check names, which will add the group to the add box. |
CharacterSets | Array of character set names | One or more content character sets that exist in a message. For example: Arabic/iso-8859-6 Chinese/big5 Chinese/euc-cn Chinese/euc-tw Chinese/gb2312 Chinese/iso-2022-cn Cyrillic/iso-8859-5 Cyrillic/koi8-r Cyrillic/windows-1251 Greek/iso-8859-7 Hebrew/iso-8859-8 Japanese/euc-jp Japanese/iso-022-jp Japanese/shift-jis Korean/euc-kr Korean/johab Korean/ks_c_5601-1987 Turkish/windows-1254 Turkish/iso-8859-9 Vietnamese/tcvn |
DomainName | Array of SMTP domains | 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 | Single value of Equal or Not equal (NotEqual ) | 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 | The Importance level that was assigned to the message by the sender in Outlook or Outlook on the web. |
IPAddressRanges | Array of IP addresses or address ranges | 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 | Single value of Manager or Direct report (DirectReport ) | 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 | 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 | 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 | Specifies 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 on the web 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 | 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 | One of the following values: • Bypass spam filtering ( -1 ) • Integers 0 through 9 | Specifies the spam confidence level (SCL) that's assigned to a message. A higher SCL value indicates that a message is more likely to be spam. |
SensitiveInformationTypes | Array of sensitive information types | Specifies one or more sensitive information types that are defined in your organization. For a list of built-in sensitive information types, see Sensitive information types in Exchange Server. In Exchange Online PowerShell, use the syntax @{},@{},... . For example, to look for content that contains at least two credit card numbers, and at least one ABA routing number, use the value @{Name='Credit Card Number'; minCount='2'},@{Name='ABA Routing Number'; minCount='1'} . |
Size | Single size value | Specifies the size of an attachment or the whole message. 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, 20 MB . Unqualified values are typically treated as bytes, but small values may be rounded up to the nearest kilobyte. |
SupervisionList | Single value of Allow or Block | 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 Microsoft 365 and Office 365, you can't configure supervision list entries on mailboxes. |
UserScopeFrom | Single value of Inside the organization (InOrganization ) or Outside the organization (NotInOrganization ) | A sender is considered to be inside the organization if either of the following conditions is true: • The sender is a mailbox, mail user, group, or mail-enabled public folder that exists inside the organization. • The sender's email address is in an accepted domain that's configured as an authoritative domain or an internal relay domain, and the message was sent or received over an authenticated connection. For more information about accepted domains, see Manage accepted domains in Exchange Online. A sender is considered to be outside the organization if either of the following conditions is true: • The sender's email address isn't in an accepted domain. • The sender's email address is in an accepted domain that's configured as an external relay domain. Note: To determine whether mail contacts are considered to be inside or outside the organization, the sender's address is compared with the organization's accepted domains. |
UserScopeTo | One of the following values: • Inside the organization ( InOrganization ) • Outside the organization ( NotInOrganization ) | A recipient is considered to be inside the organization if either of the following conditions is true: • The recipient is a mailbox, mail user, group, or mail-enabled public folder that exists inside the organization. • The recipient's email address is in an accepted domain that's configured as an authoritative domain or an internal relay domain, and the message was sent or received over an authenticated connection. A recipient is considered to be outside the organization if either of the following conditions is true: • The recipient's email address isn't in an accepted domain. • The recipient's email address is in an accepted domain that's configured as an external relay domain. |
Words | Array of strings | Specifies one or more words to look for. The words aren't case-sensitive, and can be surrounded by spaces and punctuation marks. Wildcards and partial matches aren't supported. 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. |