現在的位置: 首頁 > 綜合 > 正文

用telnet測試pop3接受郵件

2014年03月05日 ⁄ 綜合 ⁄ 共 1614字 ⁄ 字號 評論關閉

======================開始POP3收信操作==========================

[crazywill@localhost crazywill]$ telnet pop.163.com 110                #telnet登錄110端口
Trying 202.108.5.104...
Connected to pop.163.com.
Escape character is '^]'.
+OK Welcome to coremail Mail Pop3 Server (163com[20050206])
USER qq992014714@163.com                                                    # 用戶名不需要base64編碼
+OK core mail
PASS mypassword                                             # 登錄密碼
+OK 254 message(s) [27676669 byte(s)]
STAT                                                                      # 查看郵箱狀態
+OK 254 27676669
LIST                                                                         # 郵件列表
+OK 254 27676669
1 2468
2 21945
3 33136
4 2071
5 3364
6 18906
7 3136
8 24764
.................

TOP 254 0      # 查看指定郵件的郵件頭,0表示查看整個郵件頭,其它正整數表示限制返回多少行。
+OK core mail
Received: from smtp.63.com (unknown [58.252.70.158])
        by smtp5 (Coremail) with SMTP id wKjREDrA9gIfFqlEjCnRAg==.29062S4;
        Mon, 03 Jul 2006 21:07:18 +0800 (CST)
TO: crazywill@163.com
FROM : cccc@163.com         # 這裡即前面發信時偽造的一個假髮送人信息,平時正常操作只顯示這個。
SUBJECT: test by telnet/smtp                                        # 郵件主題
Message-Id: <44A91687.0E6F6C.07562>
Date: Mon, 3 Jul 2006 21:07:19 +0800 (CST)
Sender: crazywill@163.com        # 這裡是真正的發送人,不可偽造。

.
RETR 254                                                     # 獲取指定郵件
+OK 354 octets
Received: from smtp.63.com (unknown [58.252.70.158])
        by smtp5 (Coremail) with SMTP id wKjREDrA9gIfFqlEjCnRAg==.29062S4;
        Mon, 03 Jul 2006 21:07:18 +0800 (CST)
TO: crazywill@163.com
FROM : cccc@163.com
SUBJECT: test by telnet/smtp
Message-Id: <44A91687.0E6F6C.07562>
Date: Mon, 3 Jul 2006 21:07:19 +0800 (CST)
Sender: crazywill@163.com

test, just a test.
.

DELE 254                                                       # 刪除第254封郵件
+OK core mail
STAT                                                             # 查看郵箱狀態
+OK 253 27676315
QUIT                                                              # 退出
+OK core mail
Connection closed by foreign host.
[crazywill@localhost crazywill]$ 

抱歉!評論已關閉.