Re: [Exim] Route IP Range to a different mailserver

Top Page
Delete this message
Reply to this message
Author: Wakko Warner
Date:  
To: James Collins
CC: exim-users
Subject: Re: [Exim] Route IP Range to a different mailserver
> Not having a whole lot of luck so far. I assume I can simply add this
> into an existing router? ie:
>
> dnslookup:
> driver = dnslookup
> domains = ! +local_domains
> translate_ip_address = \
>
> ${lookup{${mask:$host_address/26}}lsearch{/etc/exim/ip_range}{$value}fail}}

                               ^^^

> transport = remote_smtp
> no_more
>
> And /etc/exim/ip_range contains -:
>
> 192.168.20.0/24 192.168.22.10
> 192.168.21.0/24 192.168.22.10

              ^^^

> I assume that it should change 192.168.20.10 to 192.168.22.10 for me? And
> thereby "reroute" the message... Well it don't.. :(
>
>     Any suggestions as to what dumb thing I should look for me having done?


Think you wrote your lookup wrong. did you mean /24 instead of /26?

--
Lab tests show that use of micro$oft causes cancer in lab animals