Enabling and disabling Anti-Spam scanning of messages for a rule

You can enable or disable Anti-Spam scanning of messages for any message processing rule.

To enable or disable spam scanning of messages for a rule:

  1. Export rule settings to an ХML file using the following command:

    # /opt/kaspersky/klms/bin/klms-control \

    --get-rule-settings <rule ID> -f <rule settings file name> or

    --get-rule-settings <rule name> -n -f <rule settings file name>

    The <rule name> should be enclosed in double quotes if it contains blanks.

  2. Open the rule settings ХML file for editing.
  3. In the <engineSettings> subsection of the <asScanSettings> section, specify one of the following values of the <enableScan> setting:
    • 1, to enable Anti-Spam scanning of messages for this rule;
    • 0, to disable Anti-Spam scanning of messages for this rule.
  4. Save the changes made.
  5. To import rule settings from an ХML file, use the following command:

    # /opt/kaspersky/klms/bin/klms-control \

    --set-rule-settings <rule ID> -f <rule settings file name> or

    --set-rule-settings <rule name> -n -f <rule settings file name>

    The <rule name> should be enclosed in double quotes if it contains blanks.

Page top