SMTP
POP3
IMAP
PORT: 25
telnet localhost 25 (連入localhost)
EHLO localhost (跟localhost打招呼)
MAIL FROM: someone@some.where.com (聲明寄件人是誰)
RCPT TO: tsengkt@nkust.edu.tw (聲明收件者是誰)
DATA (信件內容開始)
From: "Some One"
To: "Kuo Tsung, Tseng"
Subject: telnet test SMTP
信件本文、可以隨便寫…
. (一行的最前面若只有一個小數點,
表示信件內容結束,Enter後開始寄件流程)
QUIT (結束對話)
POP3
PORT: 110
telnet localhost 110 (連入localhost)
USER $username (前面是指令、後面是帳號)
PASS $password (密碼直接打明碼)
LIST (列出所有信件)
RETR $MailNumber (擷取編號為$MailNumber的信件)
QUIT (結束對話)
IMAP
PORT: 993
openssl s_client -connect localhost:993 (連入localhost)
? LOGIN $username $password (前面的「?」要自己打,
login大小寫沒差,帳號密碼皆是明碼)
? LIST "" "*" (列出所有信箱)
? SELECT INBOX (選擇INBOX信箱)
? fetch $MailNumber full (擷取編號為$MailNumber的信件全文)
? LOGOUT (結束對話)
發表回應
( 共計397閱讀人次 )
| permalink
| ( 3 / 454 )