Re: [Exim] Unresolvable IP breaks host_accept_relay lookup

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Sheldon Hearn
CC: exim-users
Subject: Re: [Exim] Unresolvable IP breaks host_accept_relay lookup
On Wed, 13 Jun 2001, Sheldon Hearn wrote:

> I have the following relay control in place:
>
> MYSQL_RELAY = select ip from popb4smtp where ip="${sender_host_address}"
> host_accept_relay = 127.0.0.1/32 : 10.0.0.1/24 : net-mysql;MYSQL_RELAY
> host_lookup =


<snip>

> SMTP<< rcpt to:sheldonh@???
> uunet.co.za in local_domains? no (end of list)
> uunet.co.za in relay_domains? no (end of list)
> looking up host name for X.X.X.X
> IP address lookup failed
> host in host_accept_relay? no (failed to find host name or lookup deferred)


Hmm. That looks as though it shouldn't happen.

(We are talking IPv4 here, I hope? There's no possibility of there being
a colon in $sender_host_address?)

Unfortunately, there don't seem to be enough debugging statements in the
code to give a clue as to why it thinks it needs the host name. All I
can suggest is that you insert some more. Before line 1282 of verify.c,
insert

DEBUG(9) debug_printf("host check item = %s\n", ss);

Before line 1380 insert

DEBUG(9) debug_printf("about to check for net-\n");

Before line 1384 insert

DEBUG(9) debug_printf("check syntax of net-\n");

Before line 1444 insert

DEBUG(9) debug_printf("syntax check failed\n");

Before line 1446 insert

DEBUG(9) debug_printf("not net-\n");

and then run your test again.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.