Configuring content filtering by message size

To configure content filtering by message size, do the following:

  1. 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.

  2. Open the XML file to edit the rule settings.
  3. Enable content filtering of messages. To do so, in the <engineSettings> subsection of the <cfScanSettings> section, specify the value 1 for the <enableScan> setting.
  4. 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 under 1073741824 bytes (equal to 1 GB).
  5. 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 value Skip, DeleteMessage or Reject for the <sizeExceededAction> setting:

    The default action is Reject.

  6. 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 value 1 for the <backupSizeExceeded> setting.
  7. Save the changes made.
  8. 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.

Page top