Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mail.sendmail > #305

`telnet localhost 25` closes immediately?

From "NoHtmlMailsPlease" <UsePlainText@dog.edu>
Newsgroups comp.mail.sendmail
Subject `telnet localhost 25` closes immediately?
Date 2011-06-09 22:12 +0200
Organization A noiseless patient Spider
Message-ID <isu6ea$79f$1@dont-email.me> (permalink)

Show all headers | View raw


I'm trying to setup a special front-end, which lacks send-authorisation
capabilities, to use sendmail. So I was trying to follow an old:
  http://www.jonfullmer.com/smtpauth/

Here's the log of what I did [shown by "->"] and my results:---
-> telnet localhost 25  ==
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
chroot /mnt/p6 telnet localhost 25  ==
localhost: Host name lookup failure

telnet: Unable to connect to remote host: Connection refused

==> perhaps because no app. is 'reading port 25' ??

-> pgrep sendmail == na  <-- no `sendmail` is running

-> whereis sendmail === <plenty>

==> per:  http://www.jonfullmer.com/smtpauth/
-> sendmail -O LogLevel=14 -bd -X /tmp/output.log  

-> pgrep sendmail  == 4729 <-- now sendmail is running

-> telnet localhost 25  ==
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host. <-- why close immediately ?!

-> ls -l /tmp/output.log ==
-rw-r--r-- 1 root root 197 2011-06-08 19:27 /tmp/output.log <-- now
less /tmp/output.log == 
04733 >>> 220 darkstar.example.net ESMTP Sendmail 8.14.3/8.14.3; 
      Wed, 8 Jun 2011 19:27:15 GMT
04733 <<< [EOF]
04733 >>> 421 4.4.1 darkstar.example.net 
     Lost input channel from localhost [127.0.0.1]
     
==>Why "Lost input channel from localhost" ?
-> pgrep sendmail  == 4729  <-- OK
-> ping 127.0.0.1 == ...
64 bytes from 127.0.0.1: icmp_seq=47 ttl=64 time=0.085 ms  <-- OK
--------------- END OF LOG TESTS ------------

I expect the `telnet` to remain 'connected' to `sendmail` via port 25,
until either telnet closes the connection or perhaps sendmail times out.

What am I doing wrong?

== TIA.
 

Back to comp.mail.sendmail | Previous | NextNext in thread | Find similar | Unroll thread


Thread

`telnet localhost 25` closes immediately? "NoHtmlMailsPlease" <UsePlainText@dog.edu> - 2011-06-09 22:12 +0200
  Re: `telnet localhost 25` closes immediately? "alexander.yegorov" <alex.yegorov@gmail.com> - 2011-06-21 11:21 -0700
  Re: `telnet localhost 25` closes immediately? "alexander.yegorov" <alex.yegorov@gmail.com> - 2011-06-21 11:18 -0700

csiph-web