1、可以通过抓包命令实现:
tcpflow -cp port 25
通过tcpflow监听25端口就可以看到邮件发送的每一步过程;
telnet 邮件mx服务器地址 25
Trying IP...
Connected to xm 服务器(IP).
Escape character is '^]'.
220 mx地址 ESMTP Postfix
EHLO xm213
250-mx地址
250-PIPELINING
250-SIZE 51200000
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
AUTH LOGIN
334 VXNlcm5hbWU6
d3NyZXBvcnRAY2hpbmFuZXRjZW50ZXIuY29t
334 UGFzc3dvcmQ6
d3NyZXBvcnQzMjE=
235 Authentication successful
MAIL FROM: <发送>
250 Ok
RCPT TO: <>
250 Ok
DATA
354 End data with .
Date: Wed, 31 Aug 2011 05:43:04 +0000
To:
Subject: =?gbk?B?ofpfofogIEAgMjAxMS0wOC0zMSAxMzo0MzowNA==?=
From: =?gbk?B?zfjL3tHQ0rs=?= <邮件地址>
X-Priority: 3
X-Mailer: ...
MIME-Version: 1.0
Content-type: text/html; charset=gbk
Content-Transfer-Encoding: base64
Message-ID: <...>
sdfsdf
.
250 Ok: queued as 8F8C2757E7
备注:telnet的推出方式:crtl + ] ;然后执行q命令
阅读(1287) | 评论(0) | 转发(0) |