[CentOS] Sending Email Via Telnet
chris.gelden at iafrica.com
Wed Oct 17 12:11:29 EDT 2012
On 10/16/2012 04:42 PM, Joseph Spenner wrote:
> From: John Reddy<linuxpencil at hotmail.com>
> To: centos at centos.org
> Sent: Tuesday, October 16, 2012 7:30 AM
> Subject: Re: [CentOS] Sending Email Via Telnet
>> So I go to this page and get an example of how to do this:
>> and follow the example:
>> [root at 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 at gmail.com
>> RCPT TO: testing at gmail.com
>> To: testing at gmail.com
>> From: testing at gmail.com
>> Subject: testing
>> Date: Tu, Oct 2012 10:21:11 -0500
> Something isn't quite right with your setup. When you do the "HELO" command, the server should reply with something. For example:
> $ telnet smtp.comcast.net 25
> Trying 22.214.171.124...
> Connected to smtp.comcast.net.
> Escape character is '^]'.
> 220 omta12.emeryville.ca.mail.comcast.net comcast ESMTP server ready
> HELO comcast.net
> 250 omta12.emeryville.ca.mail.comcast.net hello [126.96.36.199], pleased to meet you
> Does the mail server ever return anything back to you?
> CentOS mailing list
> CentOS at centos.org
The correct way to get out of a Telnet session is to use the escape
sequence given. <Esc>] shown as "Escape character is '^]'" in your
session above. That should get you back to your prompt.
More information about the CentOS