Re: [Exim] Exim does unwanted DNS lookups for LAN

Pàgina inicial
Delete this message
Reply to this message
Autor: Moritz Schulte
Data:  
A: exim-users
Assumpte: Re: [Exim] Exim does unwanted DNS lookups for LAN
"Tabor J. Wells" <twells@???> writes:

> Given the description of byname in the spec, it just calls gethostbyname()
> unless an IP is listed. It sounds like your gethostbyname() is ignoring the
> settings of /etc/nsswitch.conf.


Well, I wrote a small C program, which calls gethostbyname() with my
gateway's hostname "orion.sc" as parameter. This code doesn't
establishs a internet connections. So, i think, Exim does something
else than just calling gethostbyname().

> I'm not that familiar with Linux. Is there anything else in Linux
> which has to be configured to use your nsswitch.conf settings?


No, I don't think so. If i remove the "dns" from the hosts: field in
nsswitch.conf, Exim doesn't trigger the connection.

> What does exim -d12 -bt user@??? return? It shouldn't request a DNS
> lookup. I just setup a route_list which contains 'test.example.com
> host.example.com byname' where test.example.com was defined in /etc/hosts
> and nsswitch.conf was set to hosts: files dns and it did the right thing
> (this is on Solaris):


If i do 'exim -d12 -bt moritz@???', I get:

Exim version 3.12 debug level 12 uid=1000 gid=1000
probably Berkeley DB version 1.8x (native mode)
gryffindor.sc in local_domains? yes (matched gryffindor.sc)
Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.0.2
Actual local interface address is 192.168.1.3
user name "Moritz Schulte" extracted from gecos field "Moritz Schulte,,,"
sender address = moritz@???
Address testing: uid=0 gid=1000 euid=8 egid=8
>>>>>>>>>>>>>>>>>>>>>>>>

Testing moritz@???
orion.sc in local_domains? no (end of list)
address moritz@???
local_part=moritz domain=orion.sc
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing moritz@???, domain orion.sc
smarthost router called for moritz@???
route_domain = orion.sc
routelist_item = * orion.sc byname
after handling route_lists items, matched = 1
original hostlist=orion.sc options=byname
expanded hostlist="orion.sc" options=byname

----------- here, Exim triggers the connection ------------

Actual local interface address is 127.0.0.1
Actual local interface address is 192.168.0.2
Actual local interface address is 192.168.1.3
fully qualified name = orion.sc
orion.sc 192.168.0.1 -1
routed by smarthost router:
deliver to moritz@???
transport: remote_smtp
host orion.sc [192.168.0.1]
search_tidyup called

        thanks,
    moritz
-- 
Moritz Schulte <moritz@???> http://hp9001.fh-bielefeld.de/~moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199