[exim] exim connection to remotehost fails .

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: 91change
Data:  
Para: exim-users
Asunto: [exim] exim connection to remotehost fails .




I have two machines say A (10.232.18.212) and B (10.232.18.217)

My aim is to make A as relay server . A should send all mail to B to
handle.

A is having Exim . B is having Sendmail

On A

I have router setting as

smarthost:
driver = manualroute
domains = *
transport = remote_smtp
route_data = 10.232.18.217
same_domain_copy_routing
no_more


transport setting as

remote_smtp:
driver = smtp
port = 25



I run command as  on terminal one 
     ./exim -bfq -d 


I telneted from another terminal .

telnet 10.232.18.212 25

and tried to send messages to 10.232.18.217 (sendmail is running ) . These
two machine has same user say mbtc37.
So i tried mail to mbtc37@10.232.18.217 from mbtc37@10.232.18.212

*******************************
telnet 10.232.18.212 25
Trying 10.232.18.212...
Connected to 10.232.18.212.
Escape character is '^]'.
220 mbtc37 ESMTP Exim 4.68 Fri, 08 Aug 2008 21:52:10 -0400
HELO mbtc37
250 mbtc37 Hello mbtc37 [10.232.18.212]
MAIL FROM: mbtc37@10.232.18.212
250 OK
RCPT TO: mbtc37@10.232.18.217
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
hey
are you there
.
250 OK id=1KRddU-0001Og-N6
**********************************************************************

On terminal one i got

*********************
/exim -bd  -d
Exim version 4.68 uid=0 gid=0 pid=5372 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv()
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators:
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 8
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=5372
  auxiliary group list: <none>
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /usr/exim/configure
log selectors = 00000ffc 00212001
Reset TZ to :/scratchbox/etc/localtime: time is 2008-08-08 21:52:01
cwd=/usr/exim/bin 3 args: ./exim -bd -d
trusted user
admin user
originator: uid=0 gid=0 login=root name=root
 5372 listening on all interfaces (IPv4) port 25
 5372 listening on all interfaces (IPv4) port 465
 5372 listening on all interfaces (IPv4) port 587
 5372 pid written to /var/spool/exim/exim-daemon.pid
 5372 changed uid/gid: running as a daemon
 5372   uid=500 gid=500 pid=5372
 5372   auxiliary group list: 500 501
 5372 LOG: MAIN
 5372   exim 4.68 daemon started: pid=5372, no queue runs, listening for
SMTP on port 25 (IPv4) port 465 (IPv4) port 587 (IPv4)
 5372 set_process_info:  5372 daemon: no queue runs, listening for SMTP on
port 25 (IPv4) port 465 (IPv4) port 587 (IPv4)
 5372 daemon running with uid=500 gid=500 euid=500 egid=500
 5372 Listening...
 5372 Connection request from 10.232.18.212 port 52626
 5372 search_tidyup called
 5374 host in rfc1413_hosts? yes (matched "*")
 5374 doing ident callback
 5374 ident connection to 10.232.18.212 failed: Connection refused
 5374 sender_fullhost = [10.232.18.212]
 5374 sender_rcvhost = [10.232.18.212]
 5374 Process 5374 is handling incoming connection from [10.232.18.212]
 5374 checking for IP options
 5374 no IP options found
 5374 host in host_lookup? yes (matched "*")
 5374 looking up host name for 10.232.18.212
 5372 1 SMTP accept process running
 5372 Listening...
 5374 DNS lookup of 212.18.232.10.in-addr.arpa (PTR) gave HOST_NOT_FOUND
 5374 returning DNS_NOMATCH
 5374 IP address lookup using gethostbyaddr()
 5374 IP address lookup failed: h_errno=1
 5374 LOG: host_lookup_failed MAIN
 5374   no host name found for IP address 10.232.18.212
 5374 sender_fullhost = [10.232.18.212]
 5374 sender_rcvhost = [10.232.18.212]
 5374 set_process_info:  5374 handling incoming connection from
[10.232.18.212]
 5374 host in host_reject_connection? no (option unset)
 5374 host in sender_unqualified_hosts? yes (matched "*")
 5374 host in recipient_unqualified_hosts? yes (matched "*")
 5374 host in helo_verify_hosts? no (option unset)
 5374 host in helo_try_verify_hosts? no (option unset)
 5374 host in helo_accept_junk_hosts? no (option unset)
 5374 SMTP>> 220 mbtc37 ESMTP Exim 4.68 Fri, 08 Aug 2008 21:52:10 -0400
 5374 Process 5374 is ready for new message
 5374 smtp_setup_msg entered
 5374 SMTP<< HELO mbtc37
 5374 mbtc37 in helo_lookup_domains? yes (matched "@")
 5374 looking up host name for 10.232.18.212
 5374 DNS lookup of 212.18.232.10.in-addr.arpa-PTR: using cached value
DNS_NOMATCH
 5374 IP address lookup using gethostbyaddr()
 5374 IP address lookup failed: h_errno=1
 5374 LOG: host_lookup_failed MAIN
 5374   no host name found for IP address 10.232.18.212
 5374 sender_fullhost = (mbtc37) [10.232.18.212]
 5374 sender_rcvhost = [10.232.18.212] (helo=mbtc37)
 5374 set_process_info:  5374 handling incoming connection from (mbtc37)
[10.232.18.212]
 5374 SMTP>> 250 mbtc37 Hello mbtc37 [10.232.18.212]
 5374 SMTP<< MAIL FROM: mbtc37@10.232.18.212
 5374 SMTP>> 250 OK
 5374 SMTP<< RCPT TO: mbtc37@10.232.18.217
 5374 using ACL "acl_check_rcpt"
 5374 processing "accept"
 5374 check hosts = :
 5374 host in ":"? no (end of list)
 5374 accept: condition test failed
 5374 processing "deny"
 5374 check domains = +local_domains
 5374 10.232.18.217 in "@"? no (end of list)
 5374 10.232.18.217 in "+local_domains"? no (end of list)
 5374 deny: condition test failed
 5374 processing "deny"
 5374 check domains = !+local_domains
 5374 cached no match for +local_domains
 5374 cached lookup data = NULL
 5374 10.232.18.217 in "!+local_domains"? yes (end of list)
 5374 check local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
 5374 mbtc37 in "^[./|] : ^.*[@%!] : ^.*/\.\./"? no (end of list)
 5374 deny: condition test failed
 5374 processing "accept"
 5374 check local_parts = postmaster
 5374 mbtc37 in "postmaster"? no (end of list)
 5374 accept: condition test failed
 5374 processing "accept"
 5374 check hosts = +relay_from_hosts
 5374 host in "127.0.0.1 : 192.168.0.0/16 : 10.232.0.0/16"? yes (matched
"10.232.0.0/16")
 5374 host in "+relay_from_hosts"? yes (matched "+relay_from_hosts")
 5374 check control = submission
 5374 accept: condition test succeeded
 5374 SMTP>> 250 Accepted
 5374 SMTP<< DATA
 5374 SMTP>> 354 Enter message, ending with "." on a line by itself
 5374 search_tidyup called
 5374 host in ignore_fromline_hosts? no (option unset)
 5374 >>Headers received:
 5374 
 5374 rewrite_one_header: type=F:
 5374   From: mbtc37@10.232.18.212
 5374 search_tidyup called
 5374 >>Headers after rewriting and local additions:
 5374 I Message-Id: <E1KRddU-0001Og-N6@mbtc37>
 5374 F From: mbtc37@10.232.18.212
 5374   Date: Fri, 08 Aug 2008 21:52:59 -0400
 5374 
 5374 Data file written for message 1KRddU-0001Og-N6
 5374 >>Generated Received: header line
 5374 P Received: from [10.232.18.212] (helo=mbtc37)
 5374   by mbtc37 with smtp (Exim 4.68)
 5374   (envelope-from <mbtc37@10.232.18.212>)
 5374   id 1KRddU-0001Og-N6
 5374   for mbtc37@10.232.18.217; Fri, 08 Aug 2008 21:53:00 -0400
 5374 using ACL "acl_check_data"
 5374 processing "accept"
 5374 accept: condition test succeeded
 5374 calling local_scan(); timeout=300
 5374 local_scan() returned 0 NULL
 5374 Writing spool header file
 5374 Size of headers = 302
 5374 LOG: MAIN
 5374   <= mbtc37@10.232.18.212 H=(mbtc37) [10.232.18.212] P=smtp S=323
 5374 SMTP>> 250 OK id=1KRddU-0001Og-N6
 5374 search_tidyup called
 5374 Sender: mbtc37@10.232.18.212
 5374 Recipients:
 5374   mbtc37@10.232.18.217
 5377 exec /usr/exim/bin/exim -d=0xfbbd5cfd -Mc 1KRddU-0001Og-N6
 5374 forked delivery process 5377
 5374 Process 5374 is ready for new message
 5374 smtp_setup_msg entered
 5377 Exim version 4.68 uid=500 gid=500 pid=5377 D=fbbd5cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv()
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators:
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 8
 5377 Exim has no root privilege: uid=500 gid=500 euid=500 egid=500
 5377 changed uid/gid: forcing real = effective
 5377   uid=500 gid=500 pid=5377
 5377   auxiliary group list: 500 501
 5377 seeking password data for user "root": cache not available
 5377 getpwnam() succeeded uid=0 gid=0
 5377 configuration file is /usr/exim/configure
 5377 log selectors = 00000ffc 00212001
 5377 cwd=/var/spool/exim 4 args: /usr/exim/bin/exim -d=0xfbbd5cfd -Mc
1KRddU-0001Og-N6
 5377 trusted user
 5377 admin user
 5377 skipping ACL configuration - not needed
 5377 set_process_info:  5377 delivering specified messages
 5377 set_process_info:  5377 delivering 1KRddU-0001Og-N6
 5377 reading spool file 1KRddU-0001Og-N6-H
 5377 user=mbtc37 uid=500 gid=500 sender=mbtc37@10.232.18.212
 5377 sender_fullhost = (mbtc37) [10.232.18.212]
 5377 sender_rcvhost = [10.232.18.212] (helo=mbtc37)
 5377 sender_local=0 ident=unset
 5377 Non-recipients:
 5377 Empty Tree
 5377 ---- End of tree ----
 5377 recipients_count=1
 5377 body_linecount=2 message_linecount=8
 5377 Delivery address list:
 5377   mbtc37@10.232.18.217 
 5377 locking /var/spool/exim/db/retry.lockfile
 5377 locked /var/spool/exim/db/retry.lockfile
 5377 EXIM_DBOPEN(/var/spool/exim/db/retry)
 5377 returned from EXIM_DBOPEN
 5377 opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
 5377 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 5377 Considering: mbtc37@10.232.18.217
 5377 unique = mbtc37@10.232.18.217
 5377 dbfn_read: key=R:10.232.18.217
 5377 dbfn_read: key=R:mbtc37@10.232.18.217
 5377 dbfn_read: key=R:mbtc37@10.232.18.217:<mbtc37@10.232.18.212>
 5377 no domain retry record
 5377 no address retry record
 5377 mbtc37@10.232.18.217: queued for routing
 5377 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 5377 routing mbtc37@10.232.18.217
 5377 --------> smarthost router <--------
 5377 local_part=mbtc37 domain=10.232.18.217
 5377 checking domains
 5377 10.232.18.217 in "*"? yes (matched "*")
 5377 calling smarthost router
 5377 smarthost router called for mbtc37@10.232.18.217
 5377   domain = 10.232.18.217
 5377 original list of hosts = "10.232.18.217" options = 
 5377 expanded list of hosts = "10.232.18.217" options = 
 5377 set transport remote_smtp
 5377 finding IP address for 10.232.18.217
 5377 calling host_find_byname
 5377 fully qualified name = 10.232.18.217
 5377 gethostbyname looked up these IP addresses:
 5377   name=10.232.18.217 address=10.232.18.217
 5377 queued for remote_smtp transport: local_part = mbtc37
 5377 domain = 10.232.18.217
 5377   errors_to=NULL
 5377   domain_data=NULL localpart_data=NULL
 5377 routed by smarthost router
 5377   envelope to: mbtc37@10.232.18.217
 5377   transport: remote_smtp
 5377   host 10.232.18.217 [10.232.18.217]
 5377 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 5377 After routing:
 5377   Local deliveries:
 5377   Remote deliveries:
 5377     mbtc37@10.232.18.217
 5377   Failed addresses:
 5377   Deferred addresses:
 5377 search_tidyup called
 5377 >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
 5377 --------> mbtc37@10.232.18.217 <--------
 5377 search_tidyup called
 5378 changed uid/gid: remote delivery to mbtc37@10.232.18.217 with
transport=remote_smtp
 5378   uid=500 gid=500 pid=5378
 5378   auxiliary group list: 500 501
 5378 set_process_info:  5378 delivering 1KRddU-0001Og-N6 using remote_smtp
 5378 remote_smtp transport entered
 5378   mbtc37@10.232.18.217
 5378 10.232.18.217 in queue_smtp_domains? no (option unset)
 5378 checking status of 10.232.18.217
 5378 locking /var/spool/exim/db/retry.lockfile
 5378 locked /var/spool/exim/db/retry.lockfile
 5378 EXIM_DBOPEN(/var/spool/exim/db/retry)
 5378 returned from EXIM_DBOPEN
 5378 opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
 5378 dbfn_read: key=T:10.232.18.217:10.232.18.217
 5378 dbfn_read: key=T:10.232.18.217:10.232.18.217:1KRddU-0001Og-N6
 5377 set_process_info:  5377 delivering 1KRddU-0001Og-N6: waiting for a
remote delivery subprocess to finish
 5377 selecting on subprocess pipes
 5378 no message retry record
 5378 10.232.18.217 [10.232.18.217] status = usable
 5378 10.232.18.217 in serialize_hosts? no (option unset)
 5378 delivering 1KRddU-0001Og-N6 to 10.232.18.217 [10.232.18.217]
(mbtc37@10.232.18.217)
 5378 set_process_info:  5378 delivering 1KRddU-0001Og-N6 to 10.232.18.217
[10.232.18.217] (mbtc37@10.232.18.217)
 5378 Connecting to 10.232.18.217 [10.232.18.217]:25 ... failed: No route to
host
 5378 LOG: MAIN
 5378   10.232.18.217 [10.232.18.217] No route to host
 5378 set_process_info:  5378 delivering 1KRddU-0001Og-N6: just tried
10.232.18.217 [10.232.18.217] for mbtc37@10.232.18.217: result DEFER
 5378 added retry item for T:10.232.18.217:10.232.18.217: errno=113
more_errno=0,A flags=2
 5378 all IP addresses skipped or deferred at least one address
 5378 updating wait-remote_smtp database
 5378 locking /var/spool/exim/db/wait-remote_smtp.lockfile
 5378 locked /var/spool/exim/db/wait-remote_smtp.lockfile
 5378 EXIM_DBOPEN(/var/spool/exim/db/wait-remote_smtp)
 5378 returned from EXIM_DBOPEN
 5378 opened hints database /var/spool/exim/db/wait-remote_smtp:
flags=O_RDWR
 5378 dbfn_read: key=10.232.18.217
 5378 dbfn_write: key=10.232.18.217
 5378 added to list for 10.232.18.217
 5378 Leaving remote_smtp transport
 5378 set_process_info:  5378 delivering 1KRddU-0001Og-N6 (just run
remote_smtp for mbtc37@10.232.18.217 in subprocess)
 5378 search_tidyup called
 5377 reading pipe for subprocess 5378 (not ended)
 5377 read() yielded 17
 5377 selecting on subprocess pipes
 5377 reading pipe for subprocess 5378 (not ended)
 5377 read() yielded 5
 5377 selecting on subprocess pipes
 5377 reading pipe for subprocess 5378 (not ended)
 5377 read() yielded 41
 5377 reading retry information for T:10.232.18.217:10.232.18.217 from
subprocess
 5377   added retry item
 5377 selecting on subprocess pipes
 5377 reading pipe for subprocess 5378 (not ended)
 5377 read() yielded 16
 5377 selecting on subprocess pipes
 5377 reading pipe for subprocess 5378 (not ended)
 5377 read() yielded 2
 5377 Z0 item read
 5377 remote delivery process 5378 ended
 5377 set_process_info:  5377 delivering 1KRddU-0001Og-N6
 5377 post-process mbtc37@10.232.18.217 (1)
 5377 LOG: MAIN
 5377   == mbtc37@10.232.18.217 R=smarthost T=remote_smtp defer (113): No
route to host
 5377 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
 5377 changed uid/gid: post-delivery tidying
 5377   uid=500 gid=500 pid=5377
 5377   auxiliary group list: 500 501
 5377 set_process_info:  5377 tidying up after delivering 1KRddU-0001Og-N6
 5377 Processing retry items
 5377 Succeeded addresses:
 5377 Failed addresses:
 5377 Deferred addresses:
 5377 mbtc37@10.232.18.217
 5377 locking /var/spool/exim/db/retry.lockfile
 5377 locked /var/spool/exim/db/retry.lockfile
 5377 EXIM_DBOPEN(/var/spool/exim/db/retry)
 5377 returned from EXIM_DBOPEN
 5377 opened hints database /var/spool/exim/db/retry: flags=O_RDWR
 5377 address match: subject=*@10.232.18.217 pattern=*
 5377 10.232.18.217 in "*"? yes (matched "*")
 5377 *@10.232.18.217 in "*"? yes (matched "*")
 5377 retry for T:10.232.18.217:10.232.18.217 (10.232.18.217) = * 0 0
 5377 dbfn_read: key=T:10.232.18.217:10.232.18.217
 5377 failing_interval=2304 message_age=8
 5377 Writing retry data for T:10.232.18.217:10.232.18.217
 5377   first failed=1218244476 last try=1218246780 next try=1218247680
expired=0
 5377   errno=113 more_errno=0,A No route to host
 5377 dbfn_write: key=T:10.232.18.217:10.232.18.217
 5377 end of retry processing
 5377 time on queue = 8s
 5377 warning counts: required 0 done 0
 5377 delivery deferred: update_spool=1 header_rewritten=0
 5377 Writing spool header file
 5377 Size of headers = 302
 5377 end delivery of 1KRddU-0001Og-N6
 5377 search_tidyup called
 5377 search_tidyup called
 5377 >>>>>>>>>>>>>>>> Exim pid=5377 terminating with rc=0 >>>>>>>>>>>>>>>>
**************************************************************************************************************************************



Why the connection to 10.232.18.217[:25] fails ?

Can you help me set up a thin client that do simple quing and relaying ?






























--
View this message in context: http://www.nabble.com/exim--connection-to-remotehost-fails-.-tp18895071p18895071.html
Sent from the Exim Users mailing list archive at Nabble.com.