Cisco Cisco Email Security Appliance C160 用户指南
Chapter 6 Using Message Filters to Enforce Email Policies
6-38
Cisco IronPort AsyncOS 7.5 for Email Advanced Configuration Guide
OL-25137-01
searching messages with non-US date formats.) the following filter bounces all
messages from
messages from
campaign1@yourdomain.com
that are injected after 1:00pm on July
28th, 2003:
Note
Do not confuse the
date
rule with the
$Date
message filter action variable.
Header Rule
The
header()
rule checks the message headers for a specific header, which must
be specified quoted in parentheses (“header name”). This rule may be compared
to a regular expression, much like the
to a regular expression, much like the
subject
rule, or may be used without any
comparison, in which case it will be “true” if the header is found in the message,
and “false” if it is not found. For example, the following example checks to see if
the header
and “false” if it is not found. For example, the following example checks to see if
the header
X-Sample
is found, and if its value contains the string “
sample text
”.
If a match is made, the message is bounced.
TimeOutFilter:
if ((date > '07/28/2003 13:00:00') and (mail-from ==
'campaign1@yourdomain\\.com'))
{
bounce();
}
FooHeaderFilter:
if (header('X-Sample') == 'sample text')
{