Re: [exim] MX record lookup quest.

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: Derrick MacPherson
CC: exim
Subject: Re: [exim] MX record lookup quest.
On 2006-03-19 at 19:24 -0800, Derrick MacPherson wrote:
> Hmm, gmail will send to them, so I guess they are doing only a IPv4 or
> it's working with the v4 address and ignoring the ::1. Is there anything
> I can do to get around it?


Use ignore_target_hosts on your dnslookup Router. Put :: in that (and
beware that : is the default list separator character, so use :::: or
change the list separator).

Exim doesn't match :: as meaning INADDR_ANY when doing an address
comparison; you need to turn it into a net/masklen with ::/0 for that to
happen.

Example comparing joywong@??? and postmaster@??? (since
kame.net has a valid IPv6 address in an MX record), where I locally
have:
hostlist bad_host_addresses = <; 0.0.0.0 ; 127.0.0.0/8 ; ::
and the direct-to-MX router has:
ignore_target_hosts = +bad_host_addresses


dnslookup router called for joywong@???
domain = intertrend.com
DNS lookup of intertrend.com (MX) succeeded
67.111.18.5 in "<; 0.0.0.0 ; 127.0.0.0/8 ; ::"? no (end of list)
67.111.18.5 in "+bad_host_addresses"? no (end of list)
:: in "<; 0.0.0.0 ; 127.0.0.0/8 ; ::"? yes (matched "::")
:: in "+bad_host_addresses"? yes (matched "+bad_host_addresses")
ignored host clsmail.com [::]
fully qualified name = intertrend.com
host_find_bydns yield = HOST_FOUND (2); returned hosts:
clsmail.com 67.111.18.5 MX=10
set transport remote_smtp
queued for remote_smtp transport: local_part = joywong
domain = intertrend.com


dnslookup router called for postmaster@???
domain = kame.net
DNS lookup of kame.net (MX) succeeded
203.178.141.196 in "<; 0.0.0.0 ; 127.0.0.0/8 ; ::"? no (end of list)
203.178.141.196 in "+bad_host_addresses"? no (end of list)
2001:200:0:8002:210:f3ff:fe03:4d0 in "<; 0.0.0.0 ; 127.0.0.0/8 ; ::"? no (end of list)
2001:200:0:8002:210:f3ff:fe03:4d0 in "+bad_host_addresses"? no (end of list)
fully qualified name = kame.net
host_find_bydns yield = HOST_FOUND (2); returned hosts:
sardine.kame.net 2001:200:0:8002:210:f3ff:fe03:4d0 MX=10
sardine.kame.net 203.178.141.196 MX=10
set transport remote_smtp
queued for remote_smtp transport: local_part = postmaster
domain = kame.net


Regards,
-Phil