一·測試SMTP發信
- 開啟終端機
- 輸入指令:
telnet example.com 25
- 輸入 ehlo指令,後面接郵件伺服器名稱 example.com
ehlo example.com
- 輸入寄件者 mail from: username@example.com
mail from: username@example.com
- 輸入收件者 rcpt to: friend@hotmail.com, friend2@yahoo.com
rcpt to: friend@hotmail.com, friend2@yahoo.com
- 輸入指令 data,然後輸入subject:郵件標題、下面郵件內容,最後用.
data Subject: My Telnet Test Email Hello, This is an email sent by using the telnet command. Your friend, Me .
- 按下quit 關閉對話
二·測試POP收信
- 開啟終端機
- 輸入指令:
telnet example.com 110
- 輸入指令 user 和收件者信箱 (username@example.com)
user username@example.com
- 輸入指令 pass 和信箱密碼
pass *IK<.lo9
- 輸入指令 list 列出所有郵件序列:
list
- 會看到郵件序列秀出編號跟信件的容量大小
list +OK POP3 clients that break here, they violate STD53. 1 897 2 5136 3 1884 4 2973 5 2595 6 3063 7 3509 8 2283 9 1926 10 2763 11 1795 12 2780 13 2342 14 2342 15 2342 16 3833 17 2211 18 793 19 797 20 2599 .
- 如果要檢視郵件內容,例如第二封信件 (2 5136),輸入 retr 2
retr 2
- 如果要刪除第一封信件,例如1 897,輸入 dele 1:
dele 1
- 按下quit 關閉對話
沒有留言:
張貼留言