If you want to restrict the relaying of messages that contain attachments of a certain size, in the If the allowed message size is exceeded group of settings, in the drop-down list, select an action to apply to messages:
Skip.
Delete message.
Reject.
The Reject action is selected by default.
If you want to automatically place messages containing attached objects of a certain size in Backup based on the scan results, select the Move message to Backup check box.
This check box is selected by default.
If you want a tag to be automatically added after the scan to the beginning of the subject of messages that contain attachment objects of a certain size, type the text of the tags in text boxes under the Move message to Backup check box.
By default, no tag is assigned.
In the Message size field, type the maximum size of objects in the range from 0 KB to 1,048,576 KB (1 GB).
If the value is set to 0 KB, no restrictions apply to the size of objects.
If you want to limit the relaying of messages with attachments of a particular format, in the Attachment type group of settings, create a list of attachment formats to which the rule must apply. To do so:
Select a list creation method:
Attachments that have type from the list below if you want to specify attachment formats that you want to add to the list.
Content Filtering settings will be applied to messages containing attachments that have specified formats.
Attachments that have type NOT from the list below if you want to specify attachment formats that you want to exclude from the list.
Content Filtering settings will not be applied to messages containing attachments that have specified formats.
Click Edit to open the list of possible attachment formats.
Select check boxes next to attachment formats that you want to add to the list or exclude from the list:
In the lower part of the settings window, click OK.
In the In case of detection drop-down list, select the action that will be applied to messages:
Skip.
Delete message.
Delete attachment.
Reject.
The Reject action is selected by default.
If you want to automatically place messages containing attachments of the specified formats in Backup based on the scan results, select the Move message to Backup check box.
This check box is selected by default.
If you want a tag to be automatically added after the scan to the beginning of the subject of messages that contain attachment objects of a certain format, type the text of the tags in text boxes under the Move message to Backup check box.
If you want to restrict the sending of messages that contain attachments with certain names, under Attachment name, in the Names of attachments field, enter the names of such attachments.
You can use masks and regular expressions in an attachment name. Names can contain any characters. Use semicolons ";" to separate the names.
Masks and regular expressions are not case-insensitive.
For example, you can enter the *.exe name mask to restrict transmission of messages that include attachments with the EXE extension.
To restrict the sending of messages that contain executable files of widespread formats, you can use the following regular expression:
In the In case of detection drop-down list, select the action that you want to apply to messages:
Skip.
Delete message.
Delete attachment.
Reject.
The Reject action is selected by default.
If you want to automatically place messages containing attachments with the specified names in Backup based on the scan results, select the Move message to Backup check box.
This check box is selected by default.
If you want a tag to be automatically added after the scan to the beginning of the subject of messages that contain attachment objects of a certain format, type the text of the tags in text boxes under the Move message to Backup check box.
By default, no tag is assigned.
If you want to scan for banned objects within compound objects (including archives), select the Scan compound objects check box.
We recommend scanning compound objects (not archives) only for the presence of Banned Attachment Formats.
If you enable scanning compound objects, the Scan file formats and names in archive check box is selected automatically because archives are a subset of compound objects.
If at the previous step, you did not enable scanning compound objects and want to scan for forbidden formats or filenames only in archives, select the Scan file formats and names in archive check box.
Click Save.
Content Filtering is configured. The specified settings are applied to messages that match the rule criteria.
To make sure the configured settings are applied during the operation of Kaspersky Secure Mail Gateway, enable Content Filtering for the rule and enable the configured rule.