To configure content filtering of messages by attachment format:
# /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.
<engineSettings> subsection of the <cfScanSettings> section, specify the value 1 for the <enableScan> setting.<engineSettings> subsection of the <cfScanSettings> section, specify the value 1 for each setting corresponding to file formats inside the <bannedFileFormat> subsection.<executableCategory> subsection specify the value 1 for the settings corresponding to the executable file formats that you want to block.<officeCategory> subsection specify the value 1 for the settings corresponding to the file formats that you want to block.<multimediaSubcategory> subsection specify the value 1 for the settings corresponding to the file formats that you want to block.<imageCategory> subsection specify the value 1 for the settings corresponding to the file formats that you want to block.<archiveCategory> subsection specify the value 1 for the settings corresponding to the file formats that you want to block.<databaseCategory> subsection specify the value 1 for the settings corresponding to the file formats that you want to block.<cfScanSettings> section, specify the value Skip, DeleteMessage, DeleteAttachment or Reject for the <bannedFileFormatAction> setting.The default action is Reject.
<cfScanSettings> section, specify the value 1 for the <backupBannedFileFormat> setting.# /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.