27.11.2012 Views

IronPort - Configuration Guide - AsyncOS 7.6.1

Create successful ePaper yourself

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

Chapter 9 Anti-Spam<br />

Received Header<br />

OL-25136-01<br />

Figure 9-14 Mail Relayed by MX/MTA — Variable Number of Hops<br />

Hop 2<br />

Hop 1<br />

Firewall<br />

MX<br />

MTA<br />

C<br />

IP: 10.2.3.6<br />

IP: 10.2.3.4<br />

IP: 10.2.3.5<br />

<strong>IronPort</strong> Email Security appliance<br />

D<br />

If configuring the MX/MTAs to include a custom header containing the sending IP address is not an<br />

option, you can configure the incoming relays feature to attempt to determine the sending IP address by<br />

examining the “Received:” headers in the message. Using the “Received:” header will only work if the<br />

number of network “hops” will always be constant for an IP address. In other words, the machine at the<br />

first hop (10.2.3.5 in Figure 9-13) should always be the same number of hops away from the edge of your<br />

network. If incoming mail can take different paths (resulting in a different number of hops, as described<br />

in Figure 9-14) to the machine connecting to your Cisco <strong>IronPort</strong> appliance, you must use a custom<br />

header (see Custom Header, page 9-22).<br />

Specify a parsing character or string and the number of network hops (or Received: headers) back to<br />

look. A hop is basically the message travelling from one machine to another (being received by the Cisco<br />

<strong>IronPort</strong> appliance does not count as a hop. See Determining Which Headers are Used, page 9-25 for<br />

more information). <strong>AsyncOS</strong> looks for the first IP address following the first occurrence of the parsing<br />

character or string in the Received: header corresponding to the number of specified hops. For example,<br />

if you specify two hops, the second Received: header, working backward from the Cisco <strong>IronPort</strong><br />

appliance is parsed. If the parsing character is not found, or if there is not a valid IP address found, the<br />

Cisco <strong>IronPort</strong> appliance uses the real IP address of the connecting machine.<br />

If you specify an opening square bracket ([) and two hops for the following example mail headers, the<br />

IP address of the external machine is 7.8.9.1. However, if you specify an closing parenthesis ()) as the<br />

parsing character, a valid IP address will not be found. In this case, the Incoming Relays feature is treated<br />

as disabled, and the IP of the connecting machine is used (10.2.3.5).<br />

In the example in Figure 9-13 the incoming relays are:<br />

Path A — 10.2.3.5 (with 2 hops when using received headers) and<br />

Path B — 10.2.6.1 (with 2 hops when using received headers)<br />

IP: 7.8.9.1<br />

Sending<br />

Machine<br />

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

9-23

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

Saved successfully!

Ooh no, something went wrong!