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 />

Random Rule<br />

OL-25137-01<br />

}<br />

When working with headers, remember that the current value of the header includes changes made<br />

during processing (such as with filter actions that add, remove, or modify message headings). See<br />

Message Header Rules and Evaluation, page 6-4 for more information.<br />

The random rule generates a random number from zero to N-1, where N is the integer value supplied in<br />

parenthesis after the rule. Like the header() rule, this rule may be used in a comparison, or may be used<br />

alone in a “unary” form. The rule evaluates to true in the unary form if the random number generated<br />

is non-zero. For example, both of the following filters are effectively equal, choosing Virtual Gateway<br />

address A half the time, and Virtual Gateway address B the other half of the time:<br />

load_balance_a:<br />

strip-header('X-DeleteMe');<br />

if (random(10) < 5) {<br />

} else {<br />

}<br />

load_balance_b:<br />

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

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

if (random(2)) {<br />

} else {<br />

}<br />

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

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

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

6-27

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

Saved successfully!

Ooh no, something went wrong!