SMTP命令:
HELO fqdn 识别发送SMTP主机
M
aiL FROM:<sender> 识别邮件发件人
RCPT TO:<recipient> 识别邮件收信人信息
DATA 指示发送主机邮件数据发送已经准备好
RSET 中断当前邮件传输
VRFY string 允许发送主机在发送邮件前验证收件人的有效性
HELP 列出接收主机能支持的SMTP命令
QUIT 中断并关闭SMTP会话
TURN 触发收信
服务器发送队列中的消息到发信服务器
ESMTP命令:
ATRN 只有会话是被验证的才运行
ETRN 指定邮件传递的远程主机
PIPELINING 允许SMTP命令批量发送而不需要得到回应
CHUNKING 允许更有效的发送大的MIME邮件
X-EXPS GSS
api NTLM LOGIN 使用一种有效的认证机制,Kerberos和NTLM
X-EXPS=LOGIN 使用一种认证机制支持兼容Exchange Server5.5的NTLM
X-LINK2STATE 指定支持Exchange 2000连接状态命令
XEXCH50 用于在邮件中传输Exchang特定的内容
STARTTLS 在SMTP客户和服务器之间提供SSL连接
POP3命令:
USER name 提供用户名
PASS string 提供用户密码
STAT 提供邮箱状态
LIST 列举出邮件的
项目RETR msg 读取邮件
DELE msg 将邮件标记为删除
NOOP 不做任何事情,仅返回一个回应
RSET 中断当前操作,将标记为删除的邮件恢复
QUIT 退出POP3会话
发信:
telnet mail.trinet.eb.cn 25
220 mail.trinet.eb.cn ----maintenance:Weihu.Yan-----
helo mail.yahoo.com
250 mail.trinet.eb.cn
mail from:<[email]test@sina.com[/email]>
250 2.1.0 Ok
rcpt to:<da">[email]leeki.yan@trinet.eb.cn[/email]>da
501 5.1.3 Bad recipient address syntax
rcpt to:<[email]leeki.yan@trinet.eb.cn[/email]>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
from:<[email]abc@abc.com[/email]>
to:<[email]oad@oad.com[/email]>
subject:thsi is a big
test
.
250 2.0.0 Ok: queued as 2CCC028417
quit
221 2.0.0 Bye
收信:
telnet mail.trinet.eb.cn 110
+OK Hello there.
user [email]leeki.yan[/email]+OK PassWord required.
pass ************
+OK logged in.
stat
+OK 12 15644008
list
+OK POP3 clients that break here, they violate STD53.
1 2068267
2 3391958
3 1256
4 9681
5 66473
6 9082112
7 550071
8 445903
9 7345
10 19995
11 464
12 483
.
retr 10
+OK 464 octets follow.
Return-Path: <[email]test@sina.com[/email]>
X-Original-To: [email]leeki.yan@trinet.eb.cn[/email]
Delivered-To: [email]leeki.yan@trinet.eb.cn[/email]
Received: from mail.yahoo.com (unknown [58.209.69.133])
by mail.trinet.eb.cn (Postfix) with SMTP id 2CCC028417
for <[email]leeki.yan@trinet.eb.cn[/email]>; Tue, 15 Apr 2008 22:31:0
from:<[email]abc@abc.com[/email]>
to:<[email]oad@oad.com[/email]>
subject:thsi is a big
Message-Id: <[email]20080415143213.2CCC028417@mail.trinet.eb.cn[/email]>
Date: Tue, 15 Apr 2008 22:31:05 +0800 (CST)
test
quit
+OK Bye-bye.
0