本文共 763 字,大约阅读时间需要 2 分钟。
telnet mail
[root@station2 ~]# telnet station2.example.com 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 station2.example.com ESMTP Postfix
HELO station2.example.com #开始进行通讯
mail from: guest2001@station2.example.com #通知邮件来源
250 2.1.0 Ok
rcpt to: guest2002@station2.example.com #邮件目的地址
250 2.1.5 Ok
data #邮件内容
354 End data with <CR><LF>.<CR><LF>
from:guest2001 #from:是发信人的标志
to:guest2002 #to:是收信人的标志
date:3/29/2011 #date:发信日期
subject:Hello,guest2002 #subject:信的主题;
Hello,guest2002
I am guest2001!
Yours Friend!^H
Guest2001!
. #输入”.”,再按回车,结束邮件内容编辑
250 2.0.0 Ok: queued as 9E8BB5555E6
quit #退出并发送邮件
221 2.0.0 Bye
Connection closed by foreign host.
本文转自netsword 51CTO博客,原文链接:http://blog.51cto.com/netsword/529305
转载地址:http://lqula.baihongyu.com/