Get the App
SLTechnology News&Howtos  ›  Servers  › 

Exchange 2010 Spam function is enabled and whitelist setting

Shulou Source: shulou.com Published: 2022-06-03 00:23:29 12月02日 Update

1. Run powershell of exchange with administrator privileges

2. Enable anti-spam

C\: ExchangeInstallPath\ Scripts\ Install-AntiSpamAgents.ps1

Note if prompted to restart the transport service after input, it proves that the enable is successful.

3. Restart the transport service

Run the following command

Restart-Service MSExchangeTransport

Note: restart the front and back end transport service in case of Exchange2016

4. Specify the SMTP server

Please run the following command

Set-TransportConfig-InternalSMTPServers @ {Add= ","...}

For example: Set-TransportConfig-InternalSMTPServers @ {Add= "192.168.1.111"}

Note: you can specify multiple smtp servers. The function of this command is to add smtp servers. Because some companies have smtp servers that use other smtp servers as proxies, so they cannot use the anti-spam function, so it is recommended that the anti-spam function included in exchange should be removed from other third-party smtp servers.

5. Enable sender filtering

Please run the following command

Set-SenderFilterConfig-Enabled $true

Note: verify that the following command was run successfully

Get-SenderFilterConfig | Format-List Enabled

If the true is returned, the function has been enabled.

6. Disable messages with empty senders. This feature is very important. It can isolate a lot of spam and prevent it from being relayed.

Enter the following command

Set-SenderFilterConfig-BlankSenderBlockingEnabled $true

= =

Part II

1. Set whitelist: a single mailbox

Set-ContentFilterConfig-BypassedSenders lokccie@hotmail.com

2. Set whitelist: the entire domain

Get-ContentFilterConfig

Set-ContentFilterConfig-BypassedSenderDomains sina.com,sina.cn,sina.net

Tags: Service function command server mail run spam transfer list success sender third party agent input important company single multiple suggestion permission Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info MySQL vpn Docker