[exim] How does exim3 recognizes that some hosts belongs to …

Top Page
Delete this message
Reply to this message
Author: Matej Cepl
Date:  
To: exim-users
Subject: [exim] How does exim3 recognizes that some hosts belongs to its domain?
Hi,

after lookup the question-answer pair Q0325 ("How can I arrange
for mail on my local network to be delivered directly to the
relevant hosts, but all other mail to be sent to my ISP's mail
server? The local hosts are all DNS-registered and behave like
normal Internet hosts."), I have made this router:

localmail:
driver = lookuphost
transport = remote_smtp
domains = vysocina

'vysocina' is an internal domain on our tiny home network (one
server and three, soon to be just two, workstations) and this is
a relevant part of /etc/hosts:

        # This computer
        127.0.0.1       localhost.localdomain localhost


        # Names of the home network
        192.168.0.1     mitmanek.vysocina mitmanek
        192.168.0.2     chelcicky.vysocina chelcicky
        192.168.0.3     blahoslav.vysocina blahoslav
        192.168.0.4     komensky.vysocina komensky
        192.168.0.5     kosatec.vysocina kosatec
        192.168.0.6     daniela.vysocina daniela


This is what 'dig kosatec' on the server gives:

mitmanek:/home/matej# dig kosatec

; <<>> DiG 9.2.1 <<>> kosatec
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1870
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
ADDITIONAL: 0

;; QUESTION SECTION:
;kosatec.                       IN      A


;; ANSWER SECTION:
kosatec.                0       IN      A       192.168.0.5


;; Query time: 42 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 30 00:17:14 2005
;; MSG SIZE rcvd: 41

mitmanek:/home/matej#

However, when I try /usr/sbin/exim -v -d16 -bt matej@kosatec, I
get this:

mitmanek:matej$ /usr/sbin/exim -v -d16 -bt matej@kosatec
Exim version 3.35 debug level 16 uid=1000 gid=1000
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (April 7,
2002)
mitmanek.vysocina in local_domains? yes (matched @)
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 192.168.0.1 (eth0)
Actual local interface address is 65.227.254.249 (ppp0)
Caller is an admin user
Caller is a trusted user
user name "Matej Cepl" extracted from gecos field "Matej Cepl,,,"
originator: uid=1000 gid=1000 login=matej name=Matej Cepl
sender address = matej@vysocina
Address testing: uid=0 gid=1000 euid=8 egid=8
>>>>>>>>>>>>>>>>>>>>>>>>

Testing matej@kosatec
kosatec in local_domains? no (end of list)
address matej@kosatec
local_part=matej domain=kosatec
domain is not local
>>>>>>>>>>>>>>>>>>>>>>>>

routing matej@kosatec, domain kosatec
kosatec in "vysocina"? no (end of list)
localmail router skipped: domain mismatch
smarthost router called for matej@kosatec
route_domain = kosatec
routelist_item = * smtp.surfbest.net byname
after handling route_lists items, matched = 1
original hostlist=smtp.surfbest.net options=byname
expanded hostlist="smtp.surfbest.net" options=byname
Unable to create IPv6 socket to find interface addresses:
error 97 Address family not supported by protocol
Trying for an IPv4 socket
Actual local interface address is 127.0.0.1 (lo)
Actual local interface address is 192.168.0.1 (eth0)
Actual local interface address is 65.227.254.249 (ppp0)
fully qualified name = SMTP.SAFEPAGES.COM
SMTP.SAFEPAGES.COM 216.127.146.11 mx=-1
routed by smarthost router:
deliver to matej@kosatec
transport: remote_smtp
host SMTP.SAFEPAGES.COM [216.127.146.11]
matej@kosatec
deliver to matej@kosatec
router = smarthost, transport = remote_smtp
host SMTP.SAFEPAGES.COM [216.127.146.11]
search_tidyup called
mitmanek:matej$

Why exim cannot understand that kosatec is in a domain vysocina
(see attached /etc/exim/exim.conf)?

Thanks a lot for any help,

    Matej Cepl


--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488

All parts should go together without forcing. You must remember
that the parts you are reassembling were disassembled by you.
Therefore, if you can't get them together again, there must be a
reason. By all means, do not use a hammer.
    -- IBM maintenance manual, 1925