Configure Anti-Spam Features on a Mailbox

 

Applies to: Exchange Server 2010 SP2, Exchange Server 2010 SP3

You can use the Shell to configure anti-spam features on a mailbox. All messages that come into the Exchange organization from the Internet are filtered by the anti-spam agents that are enabled on the Edge Transport server. As the messages are filtered, metadata is added to the messages.

Legitimate messages that haven't been filtered are delivered to the recipient's mailbox.

Note

On November 1, 2016, Microsoft stopped producing spam definition updates for the SmartScreen filters in Exchange and Outlook. The existing SmartScreen spam definitions will be left in place, but their effectiveness will likely degrade over time. For more information, see Deprecating support for SmartScreen in Outlook and Exchange.

Looking for other management tasks related to user mailboxes? Check out Managing User Mailboxes.

Prerequisites

Before you perform these procedures, review Understanding Anti-Spam and Antivirus Functionality to confirm that you understand the general strategy for configuring all anti-spam agents so that they work together efficiently for your organization.

Use the Shell to configure anti-spam features on mailboxes

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Anti-spam" entry in the Mailbox Permissions topic.

Note

You can't use the EMC to configure anti-spam features on mailboxes.

You use the following parameters to configure anti-spam features with the Set-Mailbox cmdlet:

  • AntispamBypassEnabled

  • RequireSenderAuthenticationEnabled

  • SCLDeleteEnabled

  • SCLDeleteThreshold

  • SCLJunkEnabled

  • SCLJunkThreshold

  • SCLQuarantineEnabled

  • SCLQuarantineThreshold

  • SCLRejectEnabled

  • SCLRejectThreshold

Note

With the exception of the junk e-mail settings, the spam confidence level (SCL) settings on the mailbox are the same as the settings that you apply on the Content Filter agent. The content filtering settings are applied to the organization. The mailbox settings are applied to the individual mailbox user. The mailbox settings override the organization-wide content filtering settings.
The SCLDeleteEnabled, SCLJunkEnabled, SCLQuarantineEnabled, and SCLRejectEnabled parameters have three possible values: $true, $false, and $null. If a parameter has the value of $true or $false, that parameter overrides the settings on the Content Filter agent. If the setting is $null, the settings on the Content Filter agent are applied.

Use the Shell to configure anti-spam features on a single mailbox

To configure all the anti-spam settings on a mailbox, use the following syntax.

Set-Mailbox -Identity <MailboxIdParameter> -AntispamBypassEnabled <$true | $false> -RequireSenderAuthenticationEnabled <$true | $false> -SCLDeleteEnabled <$true | $false | $null> -SCLDeleteThreshold <Nullable> -SCLJunkEnabled <$true | $false | $null > -SCLJunkThreshold <Nullable> -SCLQuarantineEnabled <$true | $false | $null > -SCLQuarantineThreshold <Nullable> -SCLRejectEnabled <$true | $false | $null > -SCLRejectThreshold <Nullable>

This example configures John Peoples' mailbox to bypass all the anti-spam filters and to have messages that meet or exceed an SCL Junk E-mail folder threshold of 5 delivered to his Junk E-mail folder in Microsoft Outlook.

Set-Mailbox -Identity John -AntispamBypassEnabled $true -SCLJunkEnabled $true -SCLJunkThreshold 5

For detailed syntax and parameter information, see Set-Mailbox.

Use the Shell to configure anti-spam features on multiple mailboxes by using a piped command

To configure all the anti-spam settings on multiple mailboxes by using a piped command, use the following syntax.

Get-Mailbox | Set-Mailbox

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

For detailed syntax and parameter information, see Set-Mailbox.

Use the Shell to configure anti-spam features for all mailboxes in your organization

You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Anti-spam features" entry in the Transport Permissions topic.

Note

You can't use the EMC to configure anti-spam features for all mailboxes in your organization.

To configure all the anti-spam features on multiple mailboxes by using the Set-OrganizationConfig cmdlet, use the following syntax.

Set-OrganizationConfig -SCLJunkThreshold <Int32>

This example sets the organization's junk e-mail threshold to 5.

Set-OrganizationConfig -SCLJunkThreshold 5

For detailed syntax and parameter information, see Set-OrganizationConfig.

 © 2010 Microsoft Corporation. All rights reserved.