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

Top Page
Delete this message
Reply to this message
Author: James Collins
Date:  
To: exim-users
Subject: Re: [Exim] Route IP Range to a different mailserver
> > Say for instance, I might want to reroute all messages bound for
> > 192.168.10.0 and 10.0.0.0 to mailserverone.mydomain.com


> Exim, originally implemented for packet radio people, that perhaps can
> help. Check out the translate_ip_address generic router option.


    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
<etc>

----------

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?


---James :) Collins