How to enable and disable anti-virus scanning of messages for a rule in Kaspersky Security 8.0 for Linux Mail Server
Latest update: August 06, 2019
ID: 9037
You can enable and disable anti-virus scanning of messages for any rule in one of the following ways:
- Via the web interface. See the Online Help page for instructions.
- Via the command line. See the instructions below.
How to enable and disable anti-virus scanning from the command line
- Export the rule’s settings to a file using the following command:
# /opt/kaspersky/klms/bin/klms-control --get-rule-settings <rule_ID> -f <file_name>
- Open the saved file in an editor.
- Go to the <avScanSettings> section and <engineSettings> subsection.
- Specify a value for the <enableScan> parameter:
- 1 — enable anti-virus scanning of messages for the rule.
- 0 — disable anti-virus scanning of messages for the rule.
- Save the file and import it to the rule using the following command:
# /opt/kaspersky/klms/bin/klms-control --set-rule-settings <rule_ID> -f <file_name>
Anti-virus scanning of messages will be enabled or disabled for the rule.