2013年12月13日

smtp test

[good@mail ~]$ telnet 140.116.16.16 25
# 使用 telnet 連線到目的 mail server 的 25 port ↑↑↑ 
Trying 140.116.16.16... 
Connected to 140.116.16.16 (140.116.16.16). 
Escape character is '^]'. 
220 mx1.localdomain ESMTP Postfix 
# 連線到目的主機的回應 ↑↑↑ 
helo mail.nsysu.edu.tw 
# 跟目的主機宣稱自己是誰 ↑↑↑ 
250 mx1.localdomain 
# 目的主機的回應 ↑↑↑ 
mail from: greenth@nsysu.edu.tw 
# 設定寄信者的 email ↑↑↑ 
250 2.1.0 Ok 
rcpt to:greenmow@hotmail.com.tw 
# 設定收件者的 email ↑↑↑ 
250 2.1.5 Ok
data 

# 使用 data 指令說明底下為信件內容 ↑↑↑ 
354 End data with .
subject: test mail from nsysu
test mail 20120919 15:46
greenth
.
# 使用 . 表示信件內容的結尾 ↑↑↑
250 2.0.0 Ok: queued as EAFE87FA04
quit
# 使用 quit 指令離開 ↑↑↑
221 2.0.0 Bye 
Connection closed by foreign host.

沒有留言: