Re: [Exim] accept hosts = ... : /path/to/file : ...

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Dalbec
CC: Exim Users Mailing List
Subject: Re: [Exim] accept hosts = ... : /path/to/file : ...
On Thu, 12 Jun 2003, John Dalbec wrote:

> I use
> accept hosts = +relay_hosts
> where
> relay_hosts = ... : /path/to/relay/hosts/file : ...
>
> The problem is that sometimes a hostname gets into the file that doesn't
> have an A record and then everything after the "bad" hostname gets
> ignored.


This is the "standard" problem with using host names for this kind of
control.

> Would using an lsearch lookup cause Exim to do a reverse
> lookup on the incoming IP address rather than a forward lookup on the
> hostnames in the file?


Yes. And it would likewise get blocked if it couldn't find a host name.

> Does Exim automatically look for both the
> hostname and the IP address?


No. lsearch looks up the host name; net-lsearch looks up the IP address.

> As a workaround I'm not adding hostnames to the file if they don't have
> A records. I'm thinking this is not a bad idea in any case.


Quite!

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book