按附件格式配置邮件的内容过滤:
# /opt/kaspersky/klms/bin/klms-control \
--get-rule-settings <rule ID> -f <rule settings file name> 或
--get-rule-settings <rule name> -n -f <rule settings file name>
如果 <rule name> 包含空白,应将其放在双引号中。
<cfScanSettings> 区域的 <engineSettings> 子区域中,为 <enableScan> 设置指定值 1。<cfScanSettings> 区域的 <engineSettings> 子区域中,为与 <bannedFileFormat> 子区域内的文件格式对应的每个设置指定值 1。<executableCategory> 子区域中,为与要阻止的可执行文件格式对应的设置指定值 1。<officeCategory> 子区域中,为与要阻止的文件格式对应的设置指定值 1。<multimediaSubcategory> 子区域中,为与要阻止的文件格式对应的设置指定值 1。<imageCategory> 子区域中,为与要阻止的文件格式对应的设置指定值 1。<archiveCategory> 子区域中,为与要阻止的文件格式对应的设置指定值 1。<databaseCategory> 子区域中,为与要阻止的文件格式对应的设置指定值 1。<cfScanSettings> 区域中,为 <bannedFileFormatAction> 设置指定值 Skip、DeleteMessage、DeleteAttachment 或 Reject。默认操作为拒绝。
<cfScanSettings> 区域中,为 <backupBannedFileFormat> 设置指定值 1。# /opt/kaspersky/klms/bin/klms-control \
--set-rule-settings <规则 ID> -f <规则设置文件名> 或
--set-rule-settings <rule name> -n -f <rule settings file name>
如果 <rule name> 包含空白,应将其放在双引号中。