Exchange 2010 Spam function is enabled and whitelist setting
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