27.11.2012 Views

IronPort - advanced configuration guide

IronPort - advanced configuration guide

IronPort - advanced configuration guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6 Using Message Filters to Enforce Email Policies<br />

Archive Action<br />

OL-25137-01<br />

The IP interface may only be changed to an IP interface or interface group currently configured in the<br />

system. the following filter creates a Virtual Gateway using the outbound (delivery) IP interface<br />

outbound2 for all messages received from a remote host with the IP address 1.2.3.4.<br />

externalFilter:<br />

if(remote-ip == '1.2.3.4')<br />

{<br />

}<br />

the following filter uses the IP interface group Group1 for all messages received from a remote host with<br />

the IP address 1.2.3.4.<br />

groupFilter:<br />

alt-src-host('outbound2');<br />

if(remote-ip == '1.2.3.4')<br />

{<br />

}<br />

alt-src-host('Group1');<br />

The archive action saves a copy of the original message, including all message headers and recipients<br />

into an mbox-format file on the appliance. The action takes a parameter that is the name of the log file<br />

in which to save the message. The system automatically creates a log subscription with the specified<br />

filename when you create the filter, or you can also specify an existing filter log file. After the filter and<br />

the filter log file are created, the filter log options may then be edited with the filters -> logconfig<br />

subcommand.<br />

Note The logconfig command is a subcommand of filters. See Using the CLI to Manage Message Filters,<br />

page 6-75 for a full description of how to use this subcommand.<br />

The mbox format is a standard UNIX mailbox format, and there are many utilities available to make<br />

viewing the messages easier. Most UNIX systems allow you to type<br />

“mail -f mbox.filename” to view the files. The mbox format is in plain text, so you can use a simple<br />

text editor to view the contents of the messages.<br />

In the following example, a copy of the message is saved to a log named joesmith if the Envelope Sender<br />

matches joesmith@yourdomain.com:<br />

logJoeSmithFilter:<br />

if(mail-from == '^joesmith@yourdomain\\.com$')<br />

{<br />

Cisco <strong>IronPort</strong> AsyncOS 7.6 for Email Advanced Configuration Guide<br />

6-59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!