Руководство Пользователя для Cisco Cisco Email Security Appliance X1070
6-335
Cisco IronPort AsyncOS 7.3 for Email Advanced Configuration Guide
OL-23081-01
Chapter 6 Using Message Filters to Enforce Email Policies
You can specify non-ASCII characters to search for in the value of the header.
The following example demonstrates the header rule without a comparison. In this
case, if the header
case, if the header
X-DeleteMe
is found, it is removed from the message.
DeleteMeHeaderFilter:
if header('X-DeleteMe')
{
strip-header('X-DeleteMe');
}
When working with headers, remember that the current value of the header
includes changes made during processing (such as with filter actions that add,
remove, or modify message headings). See
includes changes made during processing (such as with filter actions that add,
remove, or modify message headings). See
for more information.
Random Rule
The
random
rule generates a random number from zero to N-1, where N is the
integer value supplied in parenthesis after the rule. Like the
header()
rule, this
rule may be used in a comparison, or may be used alone in a “unary” form. The
rule evaluates to
rule evaluates to
true
in the unary form if the random number generated is
non-zero. For example, both of the following filters are effectively equal,
choosing Virtual Gateway address A half the time, and Virtual Gateway address
B the other half of the time:
choosing Virtual Gateway address A half the time, and Virtual Gateway address
B the other half of the time:
bounce();
}
load_balance_a:
if (random(10) < 5) {
alt-src-host('interface_a');