en-US

TestModeAction

Parameter of HostedContentFilterPolicy

Applies to : Exchange Online, Built-in security add-on for on-premises mailboxes

Description

The TestModeAction parameter specifies the additional action to take on messages when one or more IncreaseScoreWith\* or MarkAsSpam\* ASF parameters are set to the value Test. Valid values are:

  • None: This value is the default, and we recommend that you don't change it.
  • AddXHeader: The X-header value X-CustomSpam: This message was filtered by the custom spam filter option is added to the message.
  • BccMessage: Redirect the message to the recipients specified by the TestModeBccToRecipients parameter.

Microsoft Learn documentation

Characteristics

Type
SpamFilteringTestModeAction
Parameter sets
(All)

Apply

This value type (SpamFilteringTestModeAction) must be built by hand: see the examples on the policy page and the Microsoft documentation.