To handoff emails that has a certain IP address on its "Received" header:
- Open the IMSS web console.
- Go to Policy > Policy List.
- Click Add > Other.
Click image to enlarge.
- On the This rule will apply to drop-down, select for what type of message/s you want to apply the policy to. You have the following options:
- incoming messages
- outgoing messages
- both incoming and outgoing messages
- POP3
- all messages
Click image to enlarge.
- Select the configuration you want to apply for your policy. Click Recipients (To), Senders (From), or Sender to Recipient (Exeptions) according to what you need. And then click Next.
Click image to enlarge.
- Under the Content section, tick the Header keyword expressions option and click it to configure this setting.
Click image to enlarge.
- Under Specified headers match, tick the option Other and type "Received". Then click Add.
Click image to enlarge.
- On the List name field, assign a name for the received header IP address that you want to filter. Then click Add.
Click image to enlarge.
- On the text box on the Add Keyword Expression page, type a regular expression that will match any IP address format that contains the IP address you want to filter. Then click Save.
Note: Just like in wildcards, the "." is delimited by "\".
For example, you want to detect emails that contain the IP address 10.10.231.23 in its received header (email headers), the regular expression would be:
10\.10\.231\.23.Click image to enlarge.
- Select the policy that you created and click the >> button. Then click Save.
Click image to enlarge.
- You will be redirected to the Select Scanning Conditions page. Click Next.
Click image to enlarge.
- Under the Intercept section of the Select Actions page, choose the option that you want, select Handoff and then specify the Host and Port.
For example, you can handoff to 127.0.0.1, port 10026 (The bypass port of IMSS, emails that trigger this rule will be sent to the specified host for for delivery and will no longer pass other rules of IMSS).
Click image to enlarge.
You can also specify other hosts (mail server) if you want. And then click Next.
Click image to enlarge.
- Provide a Rule Name and Order Number for your policy. The Order Number indicates the priority of the rule, with 1 being the highest priority. Tick Enable if you want to apply the rule that you created.
Click image to enlarge.
- Click Finish. The new handoff policy has been created.
