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

Detect Looping Filter<br />

OL-25137-01<br />

}<br />

insert-header("X-Group", "$Group");<br />

if ((mail-from == "@test\\.mycompany\\.com") AND (header("X-Group") != "RELAYLIST")) {<br />

notify("me@here.com");<br />

drop();<br />

strip-header("X-Group");<br />

This filter is used to detect, stop, and determine what is causing, a mail loop. This filter can help<br />

determine a <strong>configuration</strong> issue on the Exchange server or elsewhere.<br />

External_Loop_Count:<br />

if (header("X-ExtLoop1")) {<br />

if (header("X-ExtLoopCount2")) {<br />

if (header("X-ExtLoopCount3")) {<br />

if (header("X-ExtLoopCount4")) {<br />

if (header("X-ExtLoopCount5")) {<br />

if (header("X-ExtLoopCount6")) {<br />

if (header("X-ExtLoopCount7")) {<br />

if (header("X-ExtLoopCount8")) {<br />

if (header("X-ExtLoopCount9")) {<br />

}<br />

notify ('joe@example.com');<br />

drop();<br />

else {insert-header("X-ExtLoopCount9", "from<br />

$RemoteIP");}}<br />

else {insert-header("X-ExtLoopCount8", "from $RemoteIP");}}<br />

else {insert-header("X-ExtLoopCount7", "from $RemoteIP");}}<br />

else {insert-header("X-ExtLoopCount6", "from $RemoteIP");}}<br />

else {insert-header("X-ExtLoopCount5", "from $RemoteIP");}}<br />

else {insert-header("X-ExtLoopCount4", "from $RemoteIP");}}<br />

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

6-103

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

Saved successfully!

Ooh no, something went wrong!