telnet测试smtp是否正常
使用telnet测试smtp服务器是否正常,具体命令如下:
test@test:~/桌面$ telnet smtp.XXX.com 25
Trying X.X.X.X...
Connected to smtp.XXX.com.
Escape character is '^]'.
220 welcome to TAP gateway for 263
HELO localhost
250 Ok
auth login
334 VXNlcm5hbWU6
mail_base64(邮箱账号base64编码)
334 UGFzc3dvcmQ6
pass_base64(邮箱密码base64编码)
235 2.7.0 authentication successful
mail from: <test@XXX.com>
250 2.1.0 ok
rcpt to: <test@XXX.com>
250 2.1.5 ok
data
354 start mail input; end with <CRLF>.<CRLF>
subject: test by telnet
mail test
.
250 queue ok
quit
221 bye
Connection closed by foreign host.