Cisco Cisco Email Security Appliance X1070 用户指南
9-65
User Guide for AsyncOS 9.8 for Cisco Email Security Appliances
Chapter 9 Using Message Filters to Enforce Email Policies
Message Filter Actions
The following filter sends a blind carbon copy to
mom@home.org
for each message addressed to
sue
from
johnny
:
The
bcc
action also supports up to three additional, optional arguments that allow you to specify the
subject header and Envelope Sender to use on the copied message, as well as an alt-mailhost. These
parameters must appear in order, so a subject must be provided if the Envelope Sender is to be set.
parameters must appear in order, so a subject must be provided if the Envelope Sender is to be set.
The subject parameter may contain action variables (see
) that will be
replaced with data from the original message. By default, this is set to the subject of the original message
(the equivalent of
(the equivalent of
$Subject
).
The Envelope Sender parameter may be any valid email address, or alternatively, may be the action
variable
variable
$EnvelopeFrom
, which will set the return path of the message to the same as the original
message.
This example expands the previous one by setting the subject to be
[Bcc] <original subject>
, and the
return path set to
badbounce@home.org
:
The alt-mailhost is the fourth parameter:
momFilter:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc('mom@home.org');
}
momFilter:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc('mom@home.org', '[Bcc] $Subject', 'badbounce@home.org');
}
momFilterAltM:
if ((mail-from == '^johnny$') and (rcpt-to == '^sue$'))
{
bcc('mom@home.org', '[Bcc] $Subject', '$EnvelopeFrom',
'momaltmailserver.example.com');
}