[exim] local delivery confusion

Top Page
Delete this message
Reply to this message
Author: Dermot Paikkos
Date:  
To: exim-users
Subject: [exim] local delivery confusion
hi,

exim 4.43

I have a test system that I am trying to transfer some users to. The
test system seems to work but I am having trouble with the routing to
local pop3 mail boxes and seem to have created a mail loop.

To migrate the users, I edited the aliases file in the primary MX so 
that the it looks like this:
user:        user@???


The mail is then routed to the server2 but instead of delivering it
locally it does a dns lookup and sends in back in the form
user@???; hence the mail loops.

These are the routers, pretty default and I don't understand my it is
doing a lookup when ! +local_domains is specified

dnslookup:
driver = dnslookup
domains = !+local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = $local_part
file_transport = address_file
# pipe_transport = address_pipe


And some ouput from exim -d bt:
$ exim -d -bt dermot@???
mydomain.co.uk in "@:local.domains"? no (end of list)
mydomain.co.uk in "!+local_domains"? yes (end of list)
calling dnslookup router
dnslookup router called for dermot@???
domain = sciencephoto.co.uk
DNS lookup of mydomain.co.uk (MX) succeeded
194.200.237.131 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
194.200.237.181 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
194.200.237.129 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
195.129.12.217 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
195.129.111.71 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
62.189.34.25 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
194.7.70.134 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)
195.129.12.216 in "0.0.0.0 : 127.0.0.0/8"? no (end of list)

....snip