To configure content filtering of messages by attachment name:
# /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.<cfScanSettings>
section, <engineSettings>
subsection, in the <bannedFileNames>
setting, specify file names that are banned in attachments.You can use masks and regular expressions in attached file names. Names can contain any characters. Use semicolons ";" to separate the names.
Regular expressions and masks are not case-sensitive.
For example, you can enter the *.exe name mask to restrict transmission of messages that include attachments with the EXE extension.
If you need to add several file names, each file name must be in a separate <item>
section, typed in a new string of the settings file.
Example:
|
Example of adding common executable files to the list of banned attachments:
Example:
|
<cfScanSettings>
section, specify the value Skip, DeleteMessage, DeleteAttachment
or Reject
for the <bannedFileNameAction>
setting.The default action is Reject
.
<cfScanSettings>
section, specify the value 1
for the <backupBannedFileName>
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.