At 20:40 +0200 2003/09/26, Karsten Behrens wrote:
>>Otherwise, this is what I use:
>># ROUTERS
>>#########
>>hubbed:
>> driver = manualroute
>> domains = ! +local_domains
>> route_data = ${lookup{$domain}lsearch*{/var/lib/exim/hubbed.hosts}}
>> # This file lists all the domains we forward
>> host_find_failed = freeze
>> transport = special_smtp
>>
>>File contains the data as follows:
>>
>>domain_we_act_as_smarthost_for: host_to_send_to
>>etc...
>>Hope this helps.
>
>Sorry, it doesn't :-)
>
>This will forward to other hosts based on the E-Mail domain name of the
>recipient. What I need is forwarding based on the IP address of the MX
>of the recipient's E-Mail domain.
>
this is just a stab at it: you could modify the dnslookup router
adding your IPs in the ignore_target_hosts and deleting the no_more
for instance
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 ... 1.2.3.4/24
headers_remove = X-Sender : X-X-Sender
# no_more <<<<< commented out
and follow that with a manualroute for the 1.2.3.4/24 hosts (I guess
that would have to terminate with a no_more).
I might be completely on the wrong track though..
Giuliano