Searching \ for '[EE]:Email using terminal software' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=email+using+terminal
Search entire site for: 'Email using terminal software'.

Exact match. Not showing close matches.
PICList Thread
'[EE]:Email using terminal software'
2001\01\18@123824 by Robert Francisco

flavicon
face
Hello,

Does anyone know how to connect to a mail server and get e-mail from it-
using a terminal( text only)
I figured old Unix users used this method back then.

Are modem AT commands a standard?

Regards,

Robert Francisco

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\01\18@133249 by M. Adam Davis

flavicon
face
Do you mean using a telnet (TCP) connection to a mail server?  Or are you
trying to connect a modem to an ISP, and then contact the mail server
using raw TCP?

For just TCP (telnet) it's fairly easy and straightforward:

telnet mail.myserver.com:110
(this connects to the server mail.myserver.com on port 110, the generic
pop3 port.  Most mail servers (internet) are pop3 compatible)

After the server sends a preamble, you send
user username
(server responds)
pass password
(server responds with ok or no ok)

At this point to can send one of many commands, such as list, retr
(retrieve) and quit.
I'll demonstrate with my account:
(windows)
Start --> Run
Telnet <enter>
Connect --> Remote System
Host Name = mail.ubasics.com
Port = pop3
TermType = vt100
Press Connect

Here's the log of my connection:

+OK ubasics.com POP3 Server (Version 1.020h) ready.
user adavis2
+OK please send PASS command
pass LikeImGoingToGiveYouMyPassword
+OK 4 messages ready for adavis2 in /home/adam_dav/ubasics-mail/adavis2
help
-ERR Invalid command; valid commands:  DELE, LAST, LIST, NOOP, RETR, RSET,
STAT,
TOP, UIDL or QUIT
list
+OK 4 messages; msg# and size (in octets) for undeleted messages:
1 10579
2 3209
3 3219
4 13149
.
top 1 10
+OK message 1 (10579 octets):
X-POP3-Rcpt: spam_OUTadavis2TakeThisOuTspamubasics.com
<snip> message header</snip>
<snip> first ten lines of message body </snip>
.
retr 2
+OK message 2 (3209 octets):
X-POP3-Rcpt: .....adavis2KILLspamspam@spam@ubasics.com
<snip> message header</snip>
25 % Discount on Pre and Post BrainShare training being offered in Provo,
Utah.
<snip>rest of message body</snip>
.
help
-ERR Invalid command; valid commands:  DELE, LAST, LIST, NOOP, RETR, RSET,
STAT,
TOP, UIDL or QUIT
uidl
+OK 4 messages; msg# and message ID for undeleted messages:
1 <-1813136539.979832089792.JavaMail.javamailuser@localhost>
2 <LYRIS-6009265-94083-2001.01.18-08.51.02--adavis#baladyne.comspamKILLspamlist.nov
3 <008301c08176$7a8da0c0$35f197d4@tonto2>
4 <.....E14JJbA-0000ow-00KILLspamspam.....metroplex.netnation.com>> .
quit
+OK ubasics.com POP3 Server (Version 1.020h) shutdown.

Notice that the machine always replies with a + or - depnding on whether
the command was succesful, and that it ends every message with a single
period if it takes up more than one line.

You can try it yourself.  It's a tiny bit tedious, but you can always type
help and get some help as far as what commands a particular server can
accept (some servers accept help as a command, others simply reject it and
give commands available.)

Look up the associated RFC.

-Adam

Robert Francisco wrote:
{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\01\18@133921 by Dale Botkin

flavicon
face
On Thu, 18 Jan 2001, Robert Francisco wrote:

> Does anyone know how to connect to a mail server and get e-mail from it-
> using a terminal( text only)
> I figured old Unix users used this method back then.

If you have a shell account on the mail server, you can log in and use
pine, elm, mh or whatever other text mode mail reader you like to read
email. If you don't have a login account, you can use the POP3 protocol to
connect and retrieve mssages -- you just don't get nice terminal features
like screen pauses, plus you can't compose a reply.  I don't know about
"back then", but POP3 is in current use by millions of users.

> Are modem AT commands a standard?

Sure, AT commands are lots of standards, pick one!  Seems nearly every
manufacturer has their own extensions and quirks.  Some limited subset are
standard commands that may or may not be implemented exactly the same from
one modem manufacturer (or even one model) to the next.

Dale
---
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
               -- Isaac Asimov

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\01\19@172114 by Peter L. Peres

picon face
Using a terminal implies having a shell account on Unix (it can be a
mail-only account). This you need to clear with your sysadmin.

Otherwise you need telnet, which is a terminal that works over TCP/IP.
This works with any POP server at least. There is a set of tutorials about
this on the web.

And I am not that old.

Peter

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...