RE: [exim] problem with 'connection refused'

Top Page
Delete this message
Reply to this message
Author: Robert Cates
Date:  
To: Exim, Users
CC: Jakob Hirsch
Subject: RE: [exim] problem with 'connection refused'
OK, I did: exim -d postmaster@??? and got alot of output. I
hope this part of it helps:

>>>>>>>>>>>>>>>> Exim pid=1146 terminating with rc=0 >>>>>>>>>>>>>>>>

root@mail:/var/spool/exim/input# exec /usr/sbin/exim -d=0xfbb95cfd -Mc
1ENBOF-0000IU-52
Exim version 4.43 uid=8 gid=8 pid=1147 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (April 7, 2002)
Support for: iconv() OpenSSL
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch
ldap ldapdn ldapm mysql
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Fixed never_users: 0
changed uid/gid: forcing real = effective
uid=0 gid=8 pid=1147
auxiliary group list: <none>
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00010400
trusted user
admin user
skipping ACL configuration - not needed
set_process_info: 1147 delivering specified messages
set_process_info: 1147 delivering 1ENBOF-0000IU-52
reading spool file 1ENBOF-0000IU-52-H
user=root uid=0 gid=0 sender=root@???
sender_local=1 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=0 message_linecount=6
Delivery address list:
postmaster@???
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
opened hints database /var/spool/exim/db/retry: flags=0
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering: postmaster@???
unique = postmaster@???
dbfn_read: key=R:mail.kormar.net
dbfn_read: key=R:postmaster@???
no domain retry record
no address retry record
postmaster@???: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing postmaster@???
--------> dnslookup router <--------
local_part=postmaster domain=mail.kormar.net
checking domains
mail.kormar.net in "@ : localhost : kormar.net : kormar.org : kormar.de :
kordula.de"? yes (matched "@")
mail.kormar.net in "! +local_domains"? no (matched "! +local_domains")
dnslookup router skipped: domains mismatch
--------> local_network router <--------
local_part=postmaster domain=mail.kormar.net
checking domains
mail.kormar.net in "*.kormar.net : *.kormar.org"? yes (matched
"*.kormar.net")
calling local_network router
local_network router called for postmaster@???
domain = mail.kormar.net
DNS lookup of mail.kormar.net (MX) succeeded
fully qualified name = mail.kormar.net
host_find_bydns yield = HOST_FOUND (2); returned hosts:
kormar.net 217.91.111.75 MX=10
set transport remote_smtp
queued for remote_smtp transport: local_part = postmaster
domain = mail.kormar.net
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by local_network router
envelope to: postmaster@???
transport: remote_smtp
host kormar.net [217.91.111.75] MX=10
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After routing:
  Local deliveries:
  Remote deliveries:
    postmaster@???
  Failed addresses:
  Deferred addresses:
search_tidyup called

>>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>

--------> postmaster@??? <--------
search_tidyup called
set_process_info: 1147 delivering 1ENBOF-0000IU-52: waiting for a remote
delivery subprocess to finish
changed uid/gid: remote delivery to postmaster@??? with
transport=remote_smtp
uid=8 gid=8 pid=1148
auxiliary group list: <none>
set_process_info: 1148 delivering 1ENBOF-0000IU-52 using remote_smtp
remote_smtp transport entered
postmaster@???
mail.kormar.net in queue_smtp_domains? no (option unset)
checking status of kormar.net
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
opened hints database /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:kormar.net:217.91.111.75
dbfn_read: key=T:kormar.net:217.91.111.75:1ENBOF-0000IU-52
selecting on subprocess pipes
no message retry record
host retry time not reached: checking ultimate address timeout
address match: subject=*@kormar.net pattern=*
kormar.net in "*"? yes (matched "*")
*@kormar.net in "*"? yes (matched "*")
kormar.net [217.91.111.75] status = unusable
all IP addresses skipped or deferred at least one address
locking /var/spool/exim/db/wait-remote_smtp.lockfile
locked /var/spool/exim/db/wait-remote_smtp.lockfile
opened hints database /var/spool/exim/db/wait-remote_smtp: flags=2
dbfn_read: key=kormar.net
dbfn_write: key=kormar.net
Leaving remote_smtp transport
set_process_info: 1148 delivering 1ENBOF-0000IU-52 (just run remote_smtp
for postmaster@??? in subprocess)
search_tidyup called
reading pipe for subprocess 1148 (not ended)
read() yielded 75
Z0 item read
remote delivery process 1148 ended
set_process_info: 1147 delivering 1ENBOF-0000IU-52
post-process postmaster@??? (1)
LOG: retry_defer MAIN
== postmaster@??? R=local_network T=remote_smtp defer (-53):
retry time not reached for any host
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>

changed uid/gid: post-delivery tidying
uid=8 gid=8 pid=1147
auxiliary group list: <none>
set_process_info: 1147 tidying up after delivering 1ENBOF-0000IU-52
Processing retry items
Succeeded addresses:
Failed addresses:
Deferred addresses:
postmaster@???: no retry items
end of retry processing
delivery deferred: update_spool=1 header_rewritten=0
Writing spool header file
Size of headers = 263
end delivery of 1ENBOF-0000IU-52
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=1147 terminating with rc=0 >>>>>>>>>>>>>>>>



Now my (relevant) router section of exim.conf:

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

local_network:
driver = dnslookup
transport = remote_smtp
domains = *.kormar.net : *.kormar.org

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

localuser:
driver = accept
check_local_user
# transport = local_delivery
transport = maildir_delivery
cannot_route_message = Unknown user


Thanks for your help!
Robert



-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org]On
Behalf Of Jakob Hirsch
Sent: Mittwoch, 5. Oktober 2005 16:46
To: robert@???
Cc: Exim, Users
Subject: Re: [exim] problem with 'connection refused'


Robert Cates wrote:

> 2005-10-05 13:44:41 1EN73n-00008Z-Vo kormar.net [217.91.111.75]:

Connection
> refused
> 2005-10-05 13:44:41 1EN73n-00008Z-Vo == postmaster@???
> R=local_network T=remote_smtp defer (111): Connection refused


Exim wants to deliver to mail.kormar.net. Seems there is something wrong
with your routers.

> I tried: '# exim -bt postmaster@???' and it comes back with

the
> router and host info.


Then please run it with -d and post it, along with your (relevant) parts
of your routers section.

> primary_hostname = mail.kormar.net
> domainlist local_domains = @ : localhost : kormar.net : kormar.org :
> kormar.de : kordula.de


That looks ok, as long as you use local_domains in your routers.

> I do not really understand why I'm getting a 'connection refused'? Oh, I


That's only an aftereffect from using the wrong router for this delivery.
Many NAT gateways cannot handle connections from the inside network to
the outside IP. But that's ok, you don't need that.

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/