Applies to: SmarterMail (all versions)
Case 1 - Command-Line scanner
Enable the command line scanner by creating a batch file that calls the scanner and then, if necessary, deletes the file (if the software doesn't do it). Use %1 for the parameter in the batch file that contains the full path to the email in the spool. In SmarterMail's Protocol Settings page, enable the command line option and enter the full path to your batch file along with the %filepath variable that passes the filename. For example:
"C:\mybatch.bat %filepath"
Once a file enters the spool, it will wait until the delivery delay expires, then the software will call the batch file which should delete the file if it contains a virus.
Case 2 - Real-Time Scanner
Real time scanners operate in a different way. The requirement of a real-time scanner in SmarterMail is that it scans all files written to the spool and that it can detect encoded viruses. Start by enabling scanning of the Spool folder in your anti-virus product. At the same time, DISABLE scanning of the Domains directories, as scanning them can have adverse effects. In SmarterMail, increase the delivery delay in General Settings to 20 or 30 seconds to give the scanner a chance to work. Then go into Anti-Virus settings. If you have set the real-time scanner to delete infected emails, you do not need to modify anything in this page except to check the "External Virus Scanner" option. If you have set the scanner to quarantine, enter the quarantine directory and choose whether you want SmarterMail to just delete the files or alert the sender. Due to most viruses being sent from spoofed addresses, we recommend you just choose Delete.