cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1512
Views
0
Helpful
2
Replies

Multiple conditions for Incoming Mail Policies

Greg Howley
Level 1
Level 1

Currently we have a content filter that checks message content against a regex dictionary.  The filter is triggered by a Policy with a defined list of Sender domains.  The user community is now asking for the same filter to be applied to specific sending IP addresses.  The Incoming Policy does not appear to allow me to enter IP's.  Is there an easy/efficient way to do this?

2 Replies 2

Juraj Ban
Level 1
Level 1

Have you tried with message filter.

From Advanced Guide just for demo that there is option remote-ip then you can check wanted IPs.

notMineFilter:

   if (remote-ip != '10.1.1.50-55')

   {

        bounce();

   }

I need to check (I cannot to this at this time beacuse my test IP is at customer) can you do remote-ip matched against dictionary so you can populate dictionary with IP addresses.

Andreas Mueller
Level 4
Level 4

Hello Greg,

mail policies match on email addresses only, not on IP addresses, this is per design, so like Juraj stated you would need a filter condition to do the tasks.  Another solution is also to create a sendergroud in the HAT that includes all the IPs you want to match on, and then use the 'sendergroup' condition in message filters to match on this group. Here is an example from the Advanced User Guide:

if (sendergroup == "Internal")

{

alt-mailhost("[172.17.0.1]");

}

The advantage of this solution is that you can edit the list of IPs on the GUI, without changing the filter itself, so that would be more maintenance friendly.

Hope that helps,

Andreas