Thanks for the the reply Phil.
I did think the /ect/hosts file would have been sufficient for Exim to
resolve 127.0.0.1 or localhost but I do not think Exim is trying the hosts
file first.
This is what I have
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 host01 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
I can ping localhost but not nslookup which I would expect as nslookup uses
a DNS server to resolve the address.
Do I need to tell Exim to use the hosts file?
Is there an option to turn off all lookups and accept mail submitted by
localhost?
Best regards
J
-----Original Message-----
From: Phil Pennock
Sent: Saturday, October 13, 2012 10:47 PM
To: Jonathan White
Cc: exim-users@???
Subject: Re: [exim] Centos Application Applience Routing mail to relay
On 2012-10-13 at 12:41 +0100, Jonathan White wrote:
> When I run a debug it looks like Exim is trying to perform a DNS
> lookup of 127.0.0.1
> Eventually the lookup times out and the mail is sent. What's correct
> way to resolve the issue? Is there further lookups to disable or can
> exim resolve 127.0.0.1 via another method other than a DNS server?
Put it in /etc/hosts.
That _should_ work.
Note that part of the issue here is that Exim assumes it can resolve the
local hostname. "@" is Exim for "the hostname of the host that I'm
running on".
If you keep hitting DNS issues on the appliance, you might consider
something like dnsmasq -- it's a server designed to be very small, for
use on home routers where memory is tight. You can configure it with
appropriate dummy data.
(Note that /etc/hosts is not normally a good solution for DNS issues,
just a way to store up issues for later, but I tend to believe that
localhost and the hostname of the machine itself should be in
/etc/hosts, so that basic self-resolution can work without a network
connection).
-Phil