Autor: Jö Fahlke Data: Dla: exim-users, debian-testing CC: Jö Fahlke Temat: Re: [Exim] Preventing exim from querying dns for localhost
Am Fre, 9. Nov 2001, 18:32:07 +0100 schrieb Steffen Evers: > On Fri, Nov 09, 2001 at 02:12, Gareth Clay wrote:
> > Ok - here's the problem. When I boot up, exim tries to do a DNS lookup for
> > willow.tachbrook.net. This name is in my /etc/hosts file - so you would
> > think that exim would be able to get the IP address for
> > willow.tachbrook.net from there. However, this doesn't happen and exim
> > keeps trying to reach my ISP's DNS server, which requires an internet
> > connection. So, diald brings up my ppp0 interface as it should and exim
> > tries to query my ISP's DNS servers. Obviously it gets no reply - because
> > willow.tachbrook.net is only meant to be a private hostname for use on my
> > private network, so it gives up and the ppp connection drops.
>
> I have encountered exactly the same thing.
> Everytime exim is called it is doing this. You can run
>
> 'exim -bp' (give current queue).
>
> Even with an empty queue it is the same thing. I was able to stop this
> by setting option 'primaryhostname=MyMachine' in the exim.conf file,
> but now all remote messages are no longer delivered. See my mails
> earlier on this list.
Mail is usually delivered acording to MX records in the DNS. But there
are simply no MX records in /etc/hosts, so exim has look up the name
via DNS. This behaviour can be tuned by the "gethostbyname" option to
the "smtp" transport, AFAIK.
Of course, this is no explanation for the 'exim -bp' problem.
Jö.
--
Interpunktion und Orthographie der Email ist frei erfunden. Eine
Übereinstimmung mit aktuellen oder ehemaligen Regeln wäre rein
zufällig und ist nicht beabsichtigt.