cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1819
Views
0
Helpful
5
Replies

Need to setup a "Change Recipient To" action

Jason Meyer
Level 1
Level 1

I have a list of about 15 IP addresses that I need to "change the recipient to" for any e-mails that come through.   If I setup a content filter with 15 conditions, one for each Remote IP/Hostname, and then one action, change recipient to the address I want the e-mails to go to.   The appliance accepts the filter and I have added it to a couple policies.

However, if I send e-mail from any of those IP addresses the filter isn't hitting.

I used the TRACE functionality and it skipped the content filter and said it was invalid.

The IP addresses are not in a range and I'm not finding a way to list multiple IP addresses..  I was thinking something like (10.1.1.1|10.2.2.2) would work, it doesn't accept it.

I'm at the point where I'm going to create 15 content filters, anyone have any better ideas?

Appreciate any thoughts...

5 Replies 5

Nasir Abbas
Cisco Employee
Cisco Employee

Hi,

You can create a dictionary and define all the IP address in that dictionary.

Gui -> Mail Policies -> Dictionary

This will also help to add/remove IP address later on without modifying the filter.

The next step will to used dictionary in filter and apply to proper incoming or outgoing policy.

Hope that helps

Thanks

Nasir

OK, have the dictionary setup...   called redirect   and am building the filter.. and have..

MyRedirect: if (remote-ip-dictionary-match("redirect",1) {
alt-rcpt-to (new.recipient@mydomain.com);
}
.
An error occurred during processing: filter:1:43:unknown fdl operator "remote-ip-dictionary-match"

Appreciate your help..

Hi,

Sorry for my the mistake. I have misunderstood the issue. can you please provide me samples headers? so i can workout some workable solution for you.

Thanks

I Private Messaged you some of the headers...   I was hoping to be able to use the Received: header...

Hi Jason,

I have sent you privat message with filter. I am able to test and it is working.

Thanks

Nasir