Cisco Cisco Email Security Appliance C160 Guía Del Usuario
5-311
Cisco IronPort AsyncOS 7.1 for Email Advanced Configuration Guide
OL-22164-02
Chapter 5 Using Message Filters to Enforce Email Policies
(the right side of the expression). For example, the following message filter rule
evaluates to
evaluates to
true
if the sender group of the message matches the regular
expression Internal, and, if so, sends the message to an alternate mail host.
senderGroupFilter:
if (sendergroup == "Internal")
{
alt-mailhost("[172.17.0.1]");
}
Body Size Rule
Body size refers to the size of the message, including both headers and
attachments. The
attachments. The
body-size
rule selects those messages where the body size
compares as directed to a given number. For example, the following filter bounces
any message where the body size is greater than 5 megabytes.
any message where the body size is greater than 5 megabytes.
BigFilter:
if (body-size > 5M)
{
bounce();
}
The
body-size
can be compared in the following ways:
Example
Comparison Type
body-size < 10M
Less than
body-size <= 10M
Less than or equal
body-size > 10M
Greater than
body-size >= 10M
Greater than or equal