Configuring content filtering by attachment format
Configuring content filtering by attachment format
July 4, 2024
ID 62594
To configure content filtering of messages by attachment format:
- 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 formats of attached files that are banned. To do so, in the
<engineSettings>
subsection of the<cfScanSettings>
section, specify the value1
for each setting corresponding to file formats inside the<bannedFileFormat>
subsection.- To block the sending of executable files, in the
<executableCategory>
subsection specify the value 1 for the settings corresponding to the executable file formats that you want to block. - To block the sending of document files, in the
<officeCategory>
subsection specify the value1
for the settings corresponding to the file formats that you want to block. - To block the sending of multimedia files, in the
<multimediaSubcategory>
subsection specify the value1
for the settings corresponding to the file formats that you want to block. - To block the sending of image attachments, in the
<imageCategory>
subsection specify the value1
for the settings corresponding to the file formats that you want to block. - To block the sending of archived objects, in the
<archiveCategory>
subsection specify the value1
for the settings corresponding to the file formats that you want to block. - To block the sending of database files, in the
<databaseCategory>
subsection specify the value1
for the settings corresponding to the file formats that you want to block.
- To block the sending of executable files, in the
- Specify the action you want the application to take on messages with attachments of forbidden formats. To do so, in the
<cfScanSettings>
section, specify the valueSkip, DeleteMessage, DeleteAttachment
orReject
for the<bannedFileFormatAction>
setting.The default action is
Reject
. - If necessary, you can configure the application to move copies of messages with attachments that have forbidden formats to Backup. To do so, in the
<cfScanSettings>
section, specify the value1
for the<backupBannedFileFormat>
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.