Question about message filters

Unanswered Question
Jul 9th, 2007

Hi,

I've a question about the message filter. Is it possible to use
alt-mailhost() in combination with $RemoteIP? I have to send some outgoing mails to the ironport appliance for virus checks, and then send them back to the sending mailserver. I know that it sounds stupid, but I must do it really in such a way...

Any ideas?

Thanks,
Axel

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
verylongbloke_i... Tue, 07/10/2007 - 13:27

One way would be to:

1. create a msg filter that adds the source ip address as an x-header via CLI command 'filters->new'

ADD-SOURCE-IP:
if (true)
{
insert-header('X-ip', '$RemoteIP');
}
.

Then commit filter.

2. Use a content filter to look for X-header value to then to use altmailhost to send back to the correct MTA.

Hope this helps...

asteiner_ironport Tue, 07/10/2007 - 15:10

I already thought somtething like this. But how can I use the header value in the contentfilter gui!? I can't use variables in the "Send to alternate destination host" action.

xame_ironport Thu, 07/12/2007 - 08:05

Have you got a lot of MTA?

Because you can create one rule by MTA...

Example:

In message filter:
verylongbloke sayed how do that...

and in content filter:
rule1: if (header("X-IP") == "^1.1.1.1$") { alt-mailhost ("[1.1.1.1]"); }
rule1: if (header("X-IP") == "^1.1.1.2$") { alt-mailhost ("[1.1.1.2]"); }

It's not very sexy but it works fine...

unfortunately, we can't use variable for alt-mailhost action... or I don't know how :)

regards..

asteiner_ironport Thu, 07/12/2007 - 10:12

Thats not a solution for me :-(
I've about 600 MTAs to manage, and the IPs can change. It's no problem for me, to store the IPs in a LDAP directory.
I need a solution that either alt-mailhost allows variables or that I'm able to route the mails via LDAP with the 'From' address as search key.

Actions

This Discussion