Virus Protection - Windows Specific Instructions.

SurgeMail has a variety of mechanisms for integrating with commercial and free products as well as built in mechanisms to handle zero hour attacks.

For windows the recommended scanning mechanism is windows defender, surgemail will detect it and make use of it with the Auto Config button in the web admin tool.


If you have installed some other virus scanner, then surgemail will try and make use of it via the Real Time scanner mechanism. 

Settings for Windows Defender:

These will be set in surgemail.ini by the auto config button:
    g_virus_cmd "'C:\Program Files\Windows Defender\mpcmdrun.exe' -Scan -DisableRemediation -ScanType 3 -File $FILE$"
    g_virus_cmd_codes "2"
    g_virus_strangers "true"


Add an exclusion for the real time scanning for the surgemail folders/path, e.g.

Open Windows Defender, click on Settings, then find Exclusions, and Add an exclusion
    c:\surgemail

Settings for Real Time Scanner method:

These will be set in surgemail.ini by the auto config button:
    g_virus_cmd "do_not_run"
    g_virus_strangers "true"

Then in your virus scanner settings add a real time scanner exclusion for c:\surgemail
You may also want to disable notifications so it doesn't generate messages when the mail server is scanning viruses.