Re: Sending Email Via Telnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I got the first example from the postfix documentation here:
http://www.postfix.org/SASL_README.html
so I tried what I originally posted:
[root@mydomain ccc]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
EHLO
MAIL FROM: me@xxxxxxxxx
RCPT TO: me@xxxxxxxxx
DATA
testing from server
.
^]

So I go to this page and get an example of how to do this:
http://www.freebsdwiki.net/index.php/SMTP,_testing_via_Telnet
and follow the example:

[root@mydomain john]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
HELO justtesting
MAIL FROM: testing@xxxxxxxxx
RCPT TO: testing@xxxxxxxxx
DATA
To: testing@xxxxxxxxx
From: testing@xxxxxxxxx
Subject: testing
Date: Tu, Oct 2012 10:21:11 -0500
Testing
.
QUIT


So I go to this page and get an example of how to do this:
http://www.samlogic.net/articles/smtp-commands-reference.htm
and follow the example:

[root@mydomain john]# ps wax|grep smtp
18378 ?        S      0:00 smtpd -n smtp -t inet -u -s 2
26426 ?        S      0:00 smtpd -n 587 -t inet -u -s 2
30700 pts/0    S+     0:00 grep smtp
[root@mydomain john]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
EHLO mydomain.com
MAIL FROM: <testing@xxxxxxxxx>
RCPT TO: <testing@xxxxxxxxx>
DATA
testing
.
QUIT

As you can see, my smtp is up. However, all of these just leave the shell hanging. None of them echo back anything from telnet, as I've seen in examples, such as this echo:
ph34r# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220  ESMTP

(That last line.) I've never gotten telnet to work. I've always just worked around it, but this time I want to check everything as I go along. Please advise.
TIA,
John
 		 	   		  
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux