我用smtp.163.com发邮件时。(用windows下的telnet.exe连接smtp.163.com:25)发送电子邮件时需要验证,请问验证的对话结构是什么。我已经会用不需验证的服务器了。
以下为对话过程及错误:220 Welcome to coremail System(With Anti-Spam) 2.1 for www.163.com
helo smtp.163.com
250 192.168.1.204
mail from: [email protected]
553 You are not authorized to send mail as <mail from: [email protected]>, authen
tication is required
quit
221 Bye
以下为对话过程及错误:220 Welcome to coremail System(With Anti-Spam) 2.1 for www.163.com
helo smtp.163.com
250 192.168.1.204
mail from: [email protected]
553 You are not authorized to send mail as <mail from: [email protected]>, authen
tication is required
quit
221 Bye
我记得基于验证的SMTP涉及到MD5的身份验证交互,过程步骤也不算多。
<<< 250-Pure-Heart.ORG<<< 250-DSN<<< 250-EXPN<<< 250 SIZE>>> MAIL FROM:<[email protected]> RET=HDRS ENVID=QQ314159
<<< 250 <[email protected]> sender ok>>> RCPT TO:<[email protected]> NOTIFY=SUCCESS \
ORCPT=rfc822;[email protected]
<<< 250 <[email protected]> recipient ok>>> RCPT TO:<[email protected]> NOTIFY=FAILURE \
ORCPT=rfc822;[email protected]
<<< 250 <[email protected]> recipient ok>>> RCPT TO:<[email protected]> NOTIFY=SUCCESS,FAILURE \
ORCPT=rfc822;[email protected]
<<< 250 <[email protected]> recipient ok
看一下RFC1891
网址:http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1891.html
我现在也正在做相关程序,可互相交流!