Configure Anti-Spam Settings on Mailboxes
Topic Last Modified: 2015-04-08
You can configure specific anti-spam settings on individual mailboxes that are different than the anti-spam settings that are applied to the rest of the mailboxes in your Exchange organization. When you configure an anti-spam setting on a mailbox, that setting overrides the corresponding organization-wide content filtering or organization configuration anti-spam setting.
Estimated time to complete each procedure: 15 minutes
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Anti-spam features" entry in the Anti-spam and anti-malware permissions topic, and the "Anti-spam" entry in the Recipients Permissions topic.
By default, anti-spam features aren't enabled in the Transport service on a Mailbox server. Typically, you only enable the anti-spam features on a Mailbox server if your Exchange organization doesn't do any prior anti-spam filtering before accepting incoming messages. For more information, see Enable anti-spam functionality on Mailbox servers.
You can only use the Shell to perform this procedure.
The Junk Email Folder SCL threshold value behaves differently than the SCL delete, reject, and quarantine values. For more information, see Spam Confidence Level Threshold.
For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.
To configure the anti-spam settings on a single mailbox, use the following syntax.
Set-Mailbox <MailboxIdentity> -AntispamBypassEnabled <$true | $false> -RequireSenderAuthenticationEnabled <$true | $false> -SCLDeleteEnabled <$true | $false | $null> -SCLDeleteThreshold <0-9 | $null> -SCLJunkEnabled <$true | $false | $null > -SCLJunkThreshold <0-9 | $null> -SCLQuarantineEnabled <$true | $false | $null > -SCLQuarantineThreshold <0-9 | $null> -SCLRejectEnabled <$true | $false | $null > -SCLRejectThreshold <0-9 | $null>
This example configures the mailbox of a user named Jeff Phillips to bypass all the anti-spam filters and to have messages that meet or exceed a Junk Email folder SCL threshold of 5 delivered to his Junk Email folder in Microsoft Outlook.
Set-Mailbox "Jeff Phillips" -AntispamBypassEnabled $true -SCLJunkEnabled $true -SCLJunkThreshold 4
To configure all the anti-spam settings on multiple mailboxes, use the following syntax.
Get-Mailbox [<Filter>]| Set-Mailbox <Anti-Spam Settings>
This example enables the SCL quarantine threshold with a value of 7 on all mailboxes in the Users container in the Contoso.com domain.
Get-Mailbox -OrganizationalUnit Contoso.com/Users | Set-Mailbox -SCLQuarantineEnabled $true -SCLQuarantineThreshold 7
Run the following command:
Set-OrganizationConfig -SCLJunkThreshold <Integer>
This example sets the organization's junk email threshold to 5.
Set-OrganizationConfig -SCLJunkThreshold 5
To verify that you have successfully configured the junk email threshold for all mailboxes in your organization, do the following:
Run the following command:
Get-OrganizationConfig | Format-List SCLJunkThreshold
Verify the value displayed is the value you configured.