Skip to main content

How to Configure a Command-Line Antivirus Scanner

System Administrators can configure SmarterMail to use a command-line antivirus scanner to protect mailboxes. This configuration allows SmarterMail to interface with various antivirus engines via a command-line interface (CLI) to scan incoming and...

System Administrators can configure SmarterMail to use a command-line antivirus scanner to protect mailboxes. This configuration allows SmarterMail to interface with various antivirus engines via a command-line interface (CLI) to scan incoming and outgoing mail.

Important: This feature is only available on specific SmarterMail plans and editions. Verify your license and feature availability before attempting to configure a custom scanner.

Before you begin

You will need:

  • System Administrator access to SmarterMail

  • A supported command-line antivirus scanner installed on the server

  • The specific command-line path and syntax required by your antivirus provider

Configure the Command-Line Antivirus Scanner

  1. Log in to the SmarterMail administration interface.

  2. Navigate to Administration > Security > Antivirus.

  3. Select the Command-Line Scanner option.

  4. Enter the path to the antivirus executable and the required command-line arguments in the provided fields.

  5. Click Save.

Warning: Incorrectly entering the path or the command-line arguments can cause SmarterMail to fail to scan mail or, in some cases, cause the mail processing service to hang. Ensure you have the exact syntax provided by your antivirus vendor before saving.

Confirm the result

  • SmarterMail will display a success message or remain on the configuration page without error.

  • You can verify the configuration by checking the SmarterMail logs to ensure the scanner is being called correctly during mail processing.

Limitations

This feature requires a valid license and specific feature enablement. If you do not see the "Command-Line Scanner" option, your current SmarterMail edition or plan may not support this functionality. This configuration does not replace the standard ClamAV or Microsoft Defender options if those are preferred for your environment.

Did this answer your question?