域名不存在时的smtp 主动连接email服务器时,在当前连接中的交互情况:

 

--------
getQueue: now letter id @ 30 | queue id @ 69 
??send for ?qidizi@qidizi0.com --注释:此域名不存在
open localhost:25 reponse: 220 域名 - Welcome to Qmail ESMTP
hello[s1.mktedm.com]: 250-域名 - Welcome to Qmail250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 20971520250 AUTH LOGIN PLAIN CRAM-MD5AUTH LOGIN reponse:334 VXNlcm5hbbud6
input user reponse:334 UGFzceidjcmQ6
input pwd reponse:235 ok, go ahead (#2.0.0)
from[service@mktedm.com]: 250 okto[?qidizi@qidizi0.com]: 511 sorry, recipient address has invalid format (#5.1.1 - chkuser)data[]: 503  注释:直接回馈不存在;RCPT first (#5.5.1)发送data命令返回:502 unimplemented (#5.5.1)
smtp出错: 502 unimplemented (#5.5.1)
发送失败使用 PHP SMTP. 系统不支持或未配置.
Date: Thu, 22 Sep 2011 15:54:01 +0800From: Return-Path: To: ?qidizi@qidizi0.comSubject: =?utf-8?Q?=e6=b5=8b=e8=af=95?=Reply-To: "service@mktedm.com" X-Sender: service@mktedm.comX-Priority: 3 (Normal)Message-ID: <4e7ae999ad1c9@mktedm.com>Mime-Version: 1.0Content-Type: multipart/alternative; boundary="B_ALT_4e7ae999ad5af"This is a multi-part message in MIME format.Your email application may not support this format.--B_ALT_4e7ae999ad5afContent-Type: text/plain; charset=utf-8Content-Transfer-Encoding: 8bit对不起你的邮箱不支持html邮件,无法浏览本邮件!--B_ALT_4e7ae999ad5afContent-Type: text/html; charset=utf-8Content-Transfer-Encoding: quoted-printable<p> 测试</p><p><p><a href=3D"http://s1.mktedm.com/index.php/home/statistik/u=nsubscribe/1/30/77u.2FcWlkaXppQHFpZGl6aTAuY29t/1">点此退订订阅</a></p=></p><img src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/77u=.2FcWlkaXppQHFpZGl6aTAuY29t/1" style=3D"display:none; width:0px; height:0px=;" width=3D0 height=3D0 /><link rel=3D"stylesheet" type=3D"text/css" href==3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/77u.2FcWlkaXppQH=FpZGl6aTAuY29t/1" /><script src=3D"http://s1.mktedm.com/index.php/home/stat=istik/img/1/30/77u.2FcWlkaXppQHFpZGl6aTAuY29t/1" ></script><qidizi src=3D"h=ttp://s1.mktedm.com/index.php/home/statistik/img/1/30/77u.2FcWlkaXppQHFpZGl=6aTAuY29t/1" ></qidizi>--B_ALT_4e7ae999ad5af--send fail:letter @ 30 to ?qidizi@qidizi0.com 
email no exist deleted \n
open localhost:25 reponse: 220 qidizi - Welcome to Qmail ESMTP
hello[s1.mktedm.com]: 250-qidizi - Welcome to Qmail250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 20971520250 AUTH LOGIN PLAIN CRAM-MD5AUTH LOGIN reponse:334 VXNlcm5ekfiefl6
input user reponse:334 UGekfcoeQ6
input pwd reponse:235 ok, go ahead (#2.0.0)
from[service@mktedm.com]: 250 okto[?qidizi@qidizi0.com]: 511 sorry, recipient address has invalid format (#5.1.1 - chkuser)data[]: 503 RCPT first (#5.5.1)发送data命令返回:502 unimplemented (#5.5.1)
smtp出错: 502 unimplemented (#5.5.1)
发送失败使用 PHP SMTP. 系统不支持或未配置.
Date: Thu, 22 Sep 2011 15:54:01 +0800From: Return-Path: To: ?qidizi@qidizi0.comSubject: =?utf-8?Q?=e6=b5=8b=e8=af=95?=Reply-To: "service@mktedm.com" X-Sender: service@mktedm.comX-Priority: 3 (Normal)Message-ID: <4e7ae999ad1c9@mktedm.com>Mime-Version: 1.0Content-Type: multipart/alternative; boundary="B_ALT_4e7ae999ad5af"This is a multi-part message in MIME format.Your email application may not support this format.--B_ALT_4e7ae999ad5afContent-Type: text/plain; charset=utf-8Content-Transfer-Encoding: 8bit对不起你的邮箱不支持html邮件,无法浏览本邮件!--B_ALT_4e7ae999ad5afContent-Type: text/html; charset=utf-8Content-Transfer-Encoding: quoted-printable<p> 测试</p><p><p><a href=3D"http://s1.mktedm.com/index.php/home/statistik/u=nsubscribe/1/30/77u.2FcWlkaXppQHFpZGl6aTAuY29t/1">点此退订订阅</a></p=></p><img src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/77u=.2FcWlkaXppQHFpZGl6aTAuY29t/1" style=3D"display:none; width:0px; height:0px=;" width=3D0 height=3D0 /><link rel=3D"stylesheet" type=3D"text/css" href==3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/77u.2FcWlkaXppQH=FpZGl6aTAuY29t/1" /><script src=3D"http://s1.mktedm.com/index.php/home/stat=istik/img/1/30/77u.2FcWlkaXppQHFpZGl6aTAuY29t/1" ></script><qidizi src=3D"h=ttp://s1.mktedm.com/index.php/home/statistik/img/1/30/77u.2FcWlkaXppQHFpZGl=6aTAuY29t/1" ></qidizi>--B_ALT_4e7ae999ad5af--?exit!

 

-----------

可到达交互

 

getQueue: now letter id @ 30 | queue id @ 69 
??send for qidizi@qq.com
open localhost:25 reponse: 220 qidizi - Welcome to Qmail ESMTP
hello[s1.mktedm.com]: 250-qidizi - Welcome to Qmail250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 20971520250 AUTH LOGIN PLAIN CRAM-MD5AUTH LOGIN reponse:334 VXNlckfjkeoU6
input user reponse:334 UGFjfekifld6
input pwd reponse:235 ok, go ahead (#2.0.0)
from[service@mktedm.com]: 250 okto[qidizi@qq.com]: 250 okdata[]: 354 go ahead发送data命令返回:250 ok 1316678578 qp 15474
quit[]: 221 qidizi - Welcome to Qmail发送成功使用方法: smtp
Date: Thu, 22 Sep 2011 16:02:58 +0800From: Return-Path: To: qidizi@qq.comSubject: =?utf-8?Q?=e6=b5=8b=e8=af=95?=Reply-To: "service@mktedm.com" X-Sender: service@mktedm.comX-Priority: 3 (Normal)Message-ID: <4e7aebb225a8c@mktedm.com>Mime-Version: 1.0Content-Type: multipart/alternative; boundary="B_ALT_4e7aebb225e6d"This is a multi-part message in MIME format.Your email application may not support this format.--B_ALT_4e7aebb225e6dContent-Type: text/plain; charset=utf-8Content-Transfer-Encoding: 8bit对不起你的邮箱不支持html邮件,无法浏览本邮件!--B_ALT_4e7aebb225e6dContent-Type: text/html; charset=utf-8Content-Transfer-Encoding: quoted-printable<p> 测试</p><p><p><a href=3D"http://s1.mktedm.com/index.php/home/statistik/u=nsubscribe/1/30/cWlkaXppQHFxLmNvbQ.3D.3D/1">点此退订订阅</a></p></p><=img src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/cWlkaXppQ=HFxLmNvbQ.3D.3D/1" style=3D"display:none; width:0px; height:0px;" width=3D0= height=3D0 /><link rel=3D"stylesheet" type=3D"text/css" href=3D"http://s1.=mktedm.com/index.php/home/statistik/img/1/30/cWlkaXppQHFxLmNvbQ.3D.3D/1" />=<script src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/cWlka=XppQHFxLmNvbQ.3D.3D/1" ></script><qidizi src=3D"http://s1.mktedm.com/index.=php/home/statistik/img/1/30/cWlkaXppQHFxLmNvbQ.3D.3D/1" ></qidizi>--B_ALT_4e7aebb225e6d--send OK:letter @ 30 to qidizi@qq.com 
exit!

 

域名可达,用户名不存在

 

getQueue: now letter id @ 30 | queue id @ 69 
??send for qidizi0@qq.com
open localhost:25 reponse: 220 qidizi - Welcome to Qmail ESMTP
hello[s1.mktedm.com]: 250-qidizi - Welcome to Qmail250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 20971520250 AUTH LOGIN PLAIN CRAM-MD5AUTH LOGIN reponse:334 Vkdjfkielf6
input user reponse:334 kdjfkdlQ6
input pwd reponse:235 ok, go ahead (#2.0.0)
from[service@mktedm.com]: 250 okto[qidizi0@qq.com]: 250 okdata[]: 354 go ahead发送data命令返回:250 ok 1316678662 qp 15495
quit[]: 221 qidizi - Welcome to Qmail发送成功使用方法: smtp
Date: Thu, 22 Sep 2011 16:04:22 +0800From: Return-Path: To: qidizi0@qq.comSubject: =?utf-8?Q?=e6=b5=8b=e8=af=95?=Reply-To: "service@mktedm.com" X-Sender: service@mktedm.comX-Priority: 3 (Normal)Message-ID: <4e7aec06752a4@mktedm.com>Mime-Version: 1.0Content-Type: multipart/alternative; boundary="B_ALT_4e7aec0675a6f"This is a multi-part message in MIME format.Your email application may not support this format.--B_ALT_4e7aec0675a6fContent-Type: text/plain; charset=utf-8Content-Transfer-Encoding: 8bit对不起你的邮箱不支持html邮件,无法浏览本邮件!--B_ALT_4e7aec0675a6fContent-Type: text/html; charset=utf-8Content-Transfer-Encoding: quoted-printable<p> 测试</p><p><p><a href=3D"http://s1.mktedm.com/index.php/home/statistik/u=nsubscribe/1/30/cWlkaXppMEBxcS5jb20.3D/1">点此退订订阅</a></p></p><im=g src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/cWlkaXppMEB=xcS5jb20.3D/1" style=3D"display:none; width:0px; height:0px;" width=3D0 hei=ght=3D0 /><link rel=3D"stylesheet" type=3D"text/css" href=3D"http://s1.mkte=dm.com/index.php/home/statistik/img/1/30/cWlkaXppMEBxcS5jb20.3D/1" /><scrip=t src=3D"http://s1.mktedm.com/index.php/home/statistik/img/1/30/cWlkaXppMEB=xcS5jb20.3D/1" ></script><qidizi src=3D"http://s1.mktedm.com/index.php/home=/statistik/img/1/30/cWlkaXppMEBxcS5jb20.3D/1" ></qidizi>--B_ALT_4e7aec0675a6f--send OK:letter @ 30 to qidizi0@qq.com 
exit!

感觉qq服务器并不是立该查找用户名是否存在然后在to这步时反馈回来.有可能是缓存,放入队列.再退信;

如果需要在edm中对不存在用户的地址处理时,就有点麻烦了.