Cisco Cisco Email Security Appliance C170 Betriebsanweisung
Chapter 5 Using Message Filters to Enforce Email Policies
5-320
Cisco IronPort AsyncOS 7.1 for Email Advanced Configuration Guide
OL-22164-02
Attachment Type Rule
The
attachment-type
rule checks the MIME types of each attachment in a
message to see if it matches the given pattern. The pattern must be of the same
form used in the
form used in the
scanconfig
command as described in
, and so may have either side of the slash (
/
) replaced by
an asterisk as a wildcard. If the message contains an attachment that matches this
specified MIME type, this rule returns “true.”
specified MIME type, this rule returns “true.”
Because this function requires the message to be scanned, it obeys all of the
options defined by the
options defined by the
scanconfig
command as described in
.
See
for more information on message filter
rules you can use to manipulate attachments to messages.
The following filter checks all email sent through the listener, and if a message
contains an attachment with a MIME type of
contains an attachment with a MIME type of
video/*
, the message is bounced:
bounce_video_clips:
if (attachment-type == 'video/*') {
bounce();
}
Attachment Filename Rule
The
attachment-filename
rule checks the filenames of each attachment in a
message to see if it matches the given regular expression. This comparison is
case-sensitive. The comparison is, however sensitive to whitespace so if the
filename has encoded whitespace at the end, the filter will skip the attachment. If
one of the message’s attachments matches the filename, this rule returns “true.”
case-sensitive. The comparison is, however sensitive to whitespace so if the
filename has encoded whitespace at the end, the filter will skip the attachment. If
one of the message’s attachments matches the filename, this rule returns “true.”
Please note the following points:
bounce();
}