Configuring content filtering by message size
Configuring content filtering by message size
July 4, 2024
ID 56145
To configure content filtering by message size, do the following:
- Export rule settings to an XML file using the 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. - Open the XML file to edit the rule settings.
- Enable content filtering of messages. To do so, in the
<engineSettings>
subsection of the<cfScanSettings>
section, specify the value1
for the<enableScan>
setting. - Specify the maximum allowed message size (
0
- no size restriction). To do so, in the<engineSettings>
subsection of the<cfScanSettings>
section, for the<maxAllowedSize>
setting specify a value under1073741824 bytes
(equal to1 GB
). - Specify the action you want the application to take on messages whose size exceeds the specified limit. To do so, in the
<cfScanSettings>
section, specify the valueSkip, DeleteMessage
orReject
for the<sizeExceededAction>
setting:The default action is
Reject
. - If necessary, you can configure the application to move messages exceeding the specified size to Backup. To do so, in the
<cfScanSettings>
section, specify the value1
for the<backupSizeExceeded>
setting. - Save the changes made.
- To import rule settings from an XML file, use the 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.
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.