Re: [Exim] condition to check for MX in local class C block

Top Page
Delete this message
Reply to this message
Author: Johann Spies
Date:  
To: exim-users
Subject: Re: [Exim] condition to check for MX in local class C block
On Tue, Oct 21, 2003 at 03:02:33PM +0200, Andy Rabagliati wrote:
>
> smart_route:
> driver = manualroute
> domains = ! +local_domains
> transport = remote_smtp
> route_list = "* smtp.uunet.co.za"
> host_find_failed = defer
> same_domain_copy_routing = yes
> no_more
>
> dnslookup_relay_to_domains:
> driver = dnslookup
> domains = ! +local_domains : +relay_to_domains
> transport = remote_smtp
> same_domain_copy_routing = yes
> no_more
>
> dnslookup:
>   driver = dnslookup
>   domains = ! +local_domains
>   transport = remote_smtp
>   same_domain_copy_routing = yes
>   # ignore private rfc1918 and APIPA addresses
>   ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
>                         172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16
>   no_more

>
>
> I would like to add this condition to smart_route :-
>
> "If the MX record resolves to an address 196.7.14.* , do not smart_route".


Not tested. I am not very experienced and I am not quite sure about
the correct syntax but I would try something like


And then:

smart_route:
driver = manualroute
domains = ! +local_domains : !196.7.14.0/24




--
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch


     "If ye then be risen with Christ, seek those things
      which are above, where Christ sitteth on the right
      hand of God. Set your affection on things above, not
      on things on the earth."              Colossians 3:1,2