POP测试
telnet popServerHost 110
user username
pass password
list
retr num
quit
IMAP测试
telnet imapServerHost 143
A LOGIN username password
A SELECT INBOX
A UID SEARCH ALL
A UID FETCH 0:100 FLAGS
A LIST "" "*"
A COPY 2 INBOX.Trash
A STORE 2 FLAGS (/Seen)
A UID STORE 16:17 +FLAGS.SILENT (/Flagged)
A FETCH 1 body[header]
A FETCH 1 body[text][/code]
SMTP
telnet mail.alex.cn 25
Trying 10.135.67.3...
Connected to mail.alex.cn (10.135.67.3).
Escape character is '^]'.
220 oel.alex.cn ESMTP Sendmail 8.13.1/8.13.1; Sun, 12 Aug 2007 09:19:05 +0800
helo dell.alex.cn
250 oel.alex.cn Hello oel.alex.cn [10.135.67.3], pleased to meet you
MAIL FROM: a@mail.alex.cn
250 2.1.0 a@mail.alex.cn... Sender ok
RCPT TO: visd@mail.alex.cn
250 2.1.5 visd@mail.alex.cn... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
it's a testing mail.
.
250 2.0.0 l7C1J591024149 Message accepted for delivery
quit
221 2.0.0 oel.alex.cn closing connection
Connection closed by foreign host.