Set-ContentFilterConfig
Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3
Use the Set-ContentFilterConfig cmdlet to modify the content filter configuration on a computer that has the Edge Transport server role or the Hub Transport server role installed.
Syntax
Set-ContentFilterConfig [-BypassedRecipients <MultiValuedProperty>] [-BypassedSenderDomains <MultiValuedProperty>] [-BypassedSenders <MultiValuedProperty>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-Enabled <$true | $false>] [-ExternalMailEnabled <$true | $false>] [-Instance <ContentFilterConfig>] [-InternalMailEnabled <$true | $false>] [-OutlookEmailPostmarkValidationEnabled <$true | $false>] [-QuarantineMailbox <Nullable>] [-RejectionResponse <AsciiString>] [-SCLDeleteEnabled <$true | $false>] [-SCLDeleteThreshold <Int32>] [-SCLQuarantineEnabled <$true | $false>] [-SCLQuarantineThreshold <Int32>] [-SCLRejectEnabled <$true | $false>] [-SCLRejectThreshold <Int32>] [-WhatIf [<SwitchParameter>]]
Detailed Description
This command modifies the content filter configuration.
To run the Set-ContentFilterConfig cmdlet, the account you use must be delegated the following:
- Exchange Server Administrator role and local Administrators group for the target server
To run the Set-ContentFilterConfig cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
BypassedRecipients |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter takes the SMTP address values of recipients in your organization. The Content Filter agent does not process any content filtering for messages that are bound to the addresses that are listed on this parameter. To enter multiple SMTP addresses, separate the addresses by using a comma as follows, for example: The maximum number of recipients you can input is 800. |
BypassedSenderDomains |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter takes domain name values of sending domains. The Content Filter agent does not process any content filtering for messages that are received from the domains that are listed on this parameter. To enter multiple domains, separate the addresses by using a comma as follows, for example: |
BypassedSenders |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter takes the SMTP address values of senders. The Content Filter agent does not process any content filtering for messages that are received from the addresses that are listed on this parameter. To enter multiple SMTP addresses, separate the addresses by using a comma as follows, for example: The maximum number of SMTP addresses you can input is 800. |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm parameter causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm parameter. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory directory service, include the DomainController parameter on the command. The DomainController parameter is not supported on computers that have the Edge Transport server role installed. The Edge Transport server role writes only to the local ADAM instance. |
Enabled |
Optional |
System.Boolean |
Valid input for the Enabled parameter is |
ExternalMailEnabled |
Optional |
System.Boolean |
Valid input for the ExternalMailEnabled parameter is |
Instance |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.ContentFilterConfig |
The Instance parameter enables you to pass an entire object to the command to be processed. It is mainly used in scripts where an entire object must be passed to the command. |
InternalMailEnabled |
Optional |
System.Boolean |
Valid input for the InternalMailEnabled parameter is |
OutlookEmailPostmarkValidationEnabled |
Optional |
System.Boolean |
Valid input for the OutlookEmailPostmarkValidationEnabled parameter is |
QuarantineMailbox |
Optional |
System.Nullable |
Valid input for the QuarantineMailbox parameter is an SMTP address. A spam quarantine mailbox is required when you set the SCLQuarantineEnabled parameter to |
RejectionResponse |
Optional |
Microsoft.Exchange.Data.AsciiString |
This parameter is required if you set the SCLRejectEnabled parameter to |
SCLDeleteEnabled |
Optional |
System.Boolean |
Valid input for the SCLDeleteEnabled parameter is |
SCLDeleteThreshold |
Optional |
System.Int32 |
This parameter takes an integer value between |
SCLQuarantineEnabled |
Optional |
System.Boolean |
Valid input for the SCLQuarantineEnabled parameter is |
SCLQuarantineThreshold |
Optional |
System.Int32 |
This parameter takes an integer value between |
SCLRejectEnabled |
Optional |
System.Boolean |
Valid input for the SCLRejectEnabled parameter is |
SCLRejectThreshold |
Optional |
System.Int32 |
This parameter takes an integer value between |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf parameter. |
Input Types
Return Types
Errors
Error | Description |
---|---|
|
Example
The first code example shows a Set-ContentFilterConfig command that has the following modifications to the Content Filter configuration:
It enables and configures the SCL threshold functionalities that quarantine, reject, and delete messages.
It makes spamQ@contoso.com the spam quarantine mailbox.
It sets the Content Filter action to reject all messages that exceed the SCL threshold.
It sets the rejection response.
It defines two users for whom the Content Filter should not process messages.
The second code example shows a Set-ContentFilterConfig command that specifies a sender domain, which is called woodgrovebank.com, whose inbound e-mail will bypass content filtering.
Set-ContentFilterConfig -SclQuarantineEnabled:$true -SclRejectEnabled:$true -SclDeleteEnabled:$true -SclQuarantineThreshold 5 -SclRejectThreshold 6 -SclDeleteThreshold 8 -QuarantineMailbox spamQ@contoso.com -RejectionResponse "Message rejected due to content restrictions" -BypassedRecipients user1@contoso.com,user2@contoso.com
Set-ContentFilterConfig -BypassedSenderDomains woodgrovebank.com