首页 - 操作系统 - Linux

使用telnet测试邮件服务器是否正常

2013-08-14 21:23:30--点击数:
第七城市th7cn

使用telnet测试邮件服务器是否正常

 

Java代码

[snp@date Flux]$ telnet anonymousrelay.chinacache.com 25  

Trying 61.135.207.214...  

Connected to anonymousrelay.chinacache.com (61.135.207.214).  

Escape character is '^]'.  

220 corp.chinacache.com Microsoft ESMTP MAIL Service ready at Wed, 14 Aug 2013 14:32:39 +0800  

helo chinacache.com  

250 corp.chinacache.com Hello [58.68.140.11]  

mail from:<[email protected]>  

250 2.1.0 Sender OK  

rcpt to:<[email protected]>  

250 2.1.5 Recipient OK  

subject:anonymous relay  

500 5.3.3 Unrecognized command  

rcpt to:[email protected]  

250 2.1.5 Recipient OK  

data  

354 Start mail input; end with <CRLF>.<CRLF>  

subject:test mail  

from:[email protected]  

to:[email protected]  

hello,  

this is a test mail  

.  

250 2.6.0 <[email protected]al> Queued mail for delivery

 

第七城市th7cn

本站导航