Configuring Anti-Spam module settings

August 21, 2023

ID 76529

You can configure general Anti-Spam scan settings. These settings apply to all message processing rules according to which the application performs scanning of messages for spam.

To configure general Anti-Spam scan settings:

  1. Export the ScanLogic task settings to an XML file using the command:

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

    --get-settings <ScanLogic task ID> -f <name of the settings file> or

    --get-settings ScanLogic -n -f <name of the settings file>

  2. Open the XML file of the ScanLogic task to edit the task settings.
  3. In the <asSettings> section, specify the values of the relevant Anti-Spam scan settings:
    • In the <enableReputationFiltering> subsection, specify the value 1 to enable reputation filtering or 0 to disable reputation filtering. If the value in the <useKsnStatus> subsection is set to 0, reputation filtering is disabled.

      Reputation filtering is enabled by default.

    • In the <scanTimeLimit> subsection, specify the maximum duration of Anti-Spam scanning of a message in seconds. If the message has not been scanned during this time, the application issues an Error verdict — the message scan has returned an error.

      The default maximum duration of Anti-Spam scanning of a message is 30 seconds.

    • In the <useKsnStatus> subsection, specify the value 1 if you want the application to use information from Kaspersky Security Network when issuing a verdict on the message, or 0 if you do not want the application to use information from Kaspersky Security Network.

      The use of information from Kaspersky Security Network is enabled by default.

    • In the <useEnforcedAntiSpamUpdatesService> subsection, specify the value 1 to enable the Enforced Anti-Spam Updates service or 0 to disable the service.

      The Enforced Anti-Spam Updates service is enabled by default.

    • In the <externalServices> subsection, specify the relevant values for the following nodes:
      • <dnsTimeout> – the maximum time during which the application waits for a response from DNS servers (in seconds). The default value is 10 seconds.
      • <dnsblList> – the list of DNSBL servers from which the application will request information about the message being scanned. Each DNSBL server must be specified in the following format: <item>Server name or IP address</item>.
      • <surblList> – the list of SURBL servers from which the application will request information about the message being scanned. Each SURBL server must be specified in the following format: <item>Server name or IP address</item>.
  4. Save the changes made.
  5. Import the ScanLogic task settings from an XML file using the command:

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

    --set-settings <ScanLogic task ID> -f <settings file name> or

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

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.