Add Exceptions to Windows Defender

Windows Defender is malware protection that is built into Windows Server 2012 and 2016 and is used to help identify and remove viruses, spyware, and other malicious software. When SmarterMail is initially installed, and each time the SmarterMail service is started, SmarterMail will attempt to add exceptions to Windows Defender if they are not currently present. If SmarterMail fails to add these exceptions, you must manually add them in order to prevent Windows Defender from scanning SmarterMail files. 
NOTE: SmarterMail exceptions must be added to Windows Defender. Without them, your server will be drastically slowed down, corruption to SmarterMail files may occur, and important email components could be deleted. 
Follow the steps below to add exceptions for SmarterMail to Windows Defender:
  1. Log into the server where SmarterMail is installed.
  2. Click on the Start menu. 
  3. Hover your mouse over Administrative Tools and right-click on Windows PowerShell Module. Then click on Run as administrator. In the following confirmation window, choose Yes to allow the program to make changes to your computer.
  4. Windows PowerShell will open in a new window. One at a time, enter the following lines into the module:
    Add-MpPreference -ExclusionExtension XML
    Add-MpPreference -ExclusionExtension CFG
    Add-MpPreference -ExclusionExtension GRP
  5. Exceptions for SmarterMail have now been added to Windows Defender.

Extra Troubleshooting Tips

Execution of Scripts is Disabled
If you see the following line in the PowerShell window, you may not have the necessary permission to execute a command:
WARNING: File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDiagnostics.psm1 cannot be loaded because the execution of scripts is diabled on this system. Please see "get-help about_signing" for more details.
To resolve this issue, enter set-executionpolicy remotesigned into the PowerShell window. Then, confirm the policy change by entering into the PowerShell window. After changing the execution policy, you should be able to follow the steps above to add the SmarterMail exceptions.
Term is Not Recognized
If you see the following line in the PowerShell window, then Windows Defender has not been installed or is not enabled on your server: 
The term 'Add-MpPreference' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
If Windows Defender is not installed or enabled by default on your server, adding exceptions for SmarterMail is not required. However, if Windows Defender is supported on your server, you can install Windows Defender and follow the steps above to add exceptions for SmarterMail.
Learn more about SmarterMail's enterprise email features and benefits.

Add Feedback