Configuring the Anti-Spam module
July 4, 2024
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:
- Export the
ScanLogic
task settings to an XML file using the command:# /opt/kaspersky/klms/bin/klms-control \
--get-settings <
ScanLogic taskID> -f <
name of the settings file>
or--get-settings ScanLogic -n -f <
name of the settings file>
- Open the XML file of the
ScanLogic
task to edit the task settings. - In the
<asSettings>
section, specify the values of the relevant Anti-Spam scan settings:- In the
<enableReputationFiltering>
subsection, specify the value1
to enable reputation filtering or0
to disable reputation filtering. If the value in the<useKsnStatus>
subsection is set to0
, 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 value1
if you want the application to use information from Kaspersky Security Network when issuing a verdict on the message, or0
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 value1
to enable the Enforced Anti-Spam Updates service or0
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>.
- In the
- Save the changes made.
- 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>