Commands › Exchange Online

Set-SenderReputationConfig

Exchange Online ExchangeOnlineManagement Set-*

Modify the sender reputation configuration on Mailbox servers or Edge Transport servers.

Quick start script

# Set-SenderReputationConfig — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SenderReputationConfig
$before | Format-List

# 3. Make the change (dry run first)
Set-SenderReputationConfig  -WhatIf
Set-SenderReputationConfig

# 4. Verify and diff
$after = Get-SenderReputationConfig
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-SenderReputationConfig [-Confirm]
 [-DomainController <Fqdn>]
 [-Enabled <Boolean>]
 [-ExternalMailEnabled <Boolean>]
 [-InternalMailEnabled <Boolean>]
 [-OpenProxyDetectionEnabled <Boolean>]
 [-ProxyServerName <String>]
 [-ProxyServerPort <Int32>]
 [-ProxyServerType <ProxyType>]
 [-SenderBlockingEnabled <Boolean>]
 [-SenderBlockingPeriod <Int32>]
 [-SrlBlockThreshold <Int32>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (13)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-Enabled Boolean The Enabled parameter enables or disables sender reputation on the Exchange server. Valid values are:
-ExternalMailEnabled Boolean The ExternalMailEnabled parameter allows or prevents sender reputation from processing messages from unauthenticated connections that are external to your Exchange organization. Valid values are:
-InternalMailEnabled Boolean The InternalMailEnabled parameter allows or prevents sender reputation from processing messages from authenticated sender domains that are authoritative domains in your Exchange organization. Valid values are:
-OpenProxyDetectionEnabled Boolean The OpenProxyDetectionEnabled parameter allows or prevents sender reputation from attempting to connect to the message's source IP address to send a test message back to the Exchange server. This test determines if...
-ProxyServerName String The ProxyServerName parameter specifies the name or IP address of your organization's proxy server. Sender reputation uses this value to connect to the Internet for open proxy server detection.
-ProxyServerPort Int32 The ProxyServerPort parameter specifies the port number that's used by your organization's proxy server. Sender reputation uses this value to connect to the Internet for open proxy server detection.
-ProxyServerType ProxyType The ProxyServerType parameter specifies the type of your organization's proxy server. Sender reputation uses this value to connect to the Internet for open proxy server detection. Valid values are:
-SenderBlockingEnabled Boolean The SenderBlockingEnabled parameter allows or prevents sender reputation from blocking senders when their sender reputation level (SRL) meets or exceeds the value of the SrlBlockThreshold parameter. Valid values are:
-SenderBlockingPeriod Int32 The SenderBlockingPeriod parameter specifies the number of hours that a sender remains on the blocked senders list when their SRL meets or exceeds the value of the SrlBlockThreshold parameter. Valid input for this...
-SrlBlockThreshold Int32 The SrlBlockThreshold specifies the SRL rating that must be met or exceeded for sender reputation to block a sender. Valid input for this parameter is an integer from 0 through 9. The default value is 7.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.