Re: [Exim] [sleclerc@actionweb.fr: Bug#119747: Problem with …

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Mark Baker
CC: exim-users
Betreff: Re: [Exim] [sleclerc@actionweb.fr: Bug#119747: Problem with host_reject_recipients and mysql]
On Thu, 15 Nov 2001, Mark Baker wrote:

> I've a problem with the host_reject_recipients and mysql. It's realy
> difficult to know if its bug or not.
>
> When using unqualified ip addresses with host_reject_recipients, the mysql
> request is not done at all.


Not quite sure what an "unqualified IP address is". Do you mean "an IP
address for which there is no reverse DNS entry"?

Anyway, the behaviour below is quite consistent with that.

> QUALIFIED
> ----------------------------------------------------------
> I have this line in the exim.conf:
>
> #host_reject_recipients = "+allow_unknown : mysql;MYSQL_REJECT_HOSTS"
>
> I made a test using -bh 160.92.120.97
>
> ----------------------------------------------------------
> sender_fullhost = [160.92.120.97]
> sender_rcvhost = [160.92.120.97]
>
> **** SMTP testing session as if from host 160.92.120.97
> **** Not for real!
>
> host in host_lookup? no (option unset)
> host in host_reject? no (option unset)
> looking up host name for 160.92.120.97
> IP address lookup yielded net73.axime.com


So 160.92.120.97 has a reverse DNS entry. Fine. Exim can find a host
name, so it can proceed with the host_reject_recipients test.

> UNQUALIFIED
> ----------------------------------------------------------
> I have this line in the exim.conf:
>
> host_reject_recipients = "+allow_unknown : mysql;MYSQL_REJECT_HOSTS"
>
> I made a test using -bh 62.4.76.141
> ----------------------------------------------------------
> sender_fullhost = [62.4.76.141]
> sender_rcvhost = [62.4.76.141]
>
> **** SMTP testing session as if from host 62.4.76.141
> **** Not for real!
>
> host in host_lookup? no (option unset)
> host in host_reject? no (option unset)
> looking up host name for 62.4.76.141
> IP address lookup failed


So 62.4.76.141 could not be looked up in the DNS.

> host in host_reject_recipients? no (failed to find host name or lookup
> deferred)
> host in rbl_hosts? yes (*)
> ----------------------------------------------------------
> I have an address lookup (why!) AND I AM NOT GOING to the mysql request.


You have an address lookup for the same reason as before - you have
something in host_reject_recipients that is not an IP address. Therefore
Exim has to find the host name before it can proceed.

Hmm. But +allow_unknown should have let it proceed... but ...


> UNQUALIFIED WITHOUT +allow_unknown
> ----------------------------------------------------------
> I have this line in the exim.conf:
>
> host_reject_recipients = "mysql;MYSQL_REJECT_HOSTS"
>
> I made a test using -bh 62.4.76.141
> ----------------------------------------------------------
>
> host in host_lookup? no (option unset)
> host in host_reject? no (option unset)
> looking up host name for 62.4.76.141
> IP address lookup failed
> host in host_reject_recipients? yes (failed to find host name or lookup
> deferred)


That's the wrong way round. I would have expected that to be the case
with +allow_unknown, not without it. Are you sure these last two
examples are the correct way round?


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