[SATLUG] using telnet to send emails
Jon Mark Allen
jm at allensonthe.net
Sat Dec 29 08:00:45 CST 2007
On 12/28/07, Chris Lemire <good_bye300 at yahoo.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> How can I send an email using telnet and my mail server including my
> name. For example.
>
> chris at ubuntu:~$ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 ubuntu ESMTP Postfix (Ubuntu)
> HELO server.com
> 250 ubuntu
> MAIL FROM: Chris L.
> 555 5.5.4 Unsupported option: >.
> MAIL FROM: Chris
> 555 5.5.4 Unsupported option:
> MAIL FROM: Chris username at gmail.com
> 555 5.5.4 Unsupported option: username at gmail.com
> MAIL FROM: "Chris user at gmail.com"
> 250 2.1.0 Ok
> MAIL FROM: "Chris L. user at gmail.com"
> 503 5.5.1 Error: nested MAIL command
>
Like this:
MAIL FROM: Jon Mark Allen <username at not-a-real-domain.com>
Likewise you could do:
RCPT TO: SATLUG <satlug at satlug.org>
to include the recipient's address.
Are you using telnet to verify SMTP functions or you simply want to
send email the old fashioned way? If it's the former, swaks [1] is an
excellent perl script that eases the process significantly. It shows
the SMTP conversation in the terminal so there is no question about
what is going on. I used to use telnet, but I really love swaks.
Probably more info than was asked for, but....
JM
[1] http://www.jetmore.org/john/code/#swkas
--
"And can the liberties of a nation be thought secure when we have
removed their only firm basis, a conviction in the minds of the people
that these liberties are the gift of God?"
-- Thomas Jefferson
More information about the SATLUG
mailing list