使用TELNET命令测试邮箱


telnet 命令测试邮箱

--邮箱服务器
SELECTfnd_profile.value('CUX_OIE_DEFAULT_SMTP')FROMdual;
--10.10.225.189 端口25

--登录名
SELECTfnd_profile.value('CUX_OIE_DEFAULT_USER')FROMdual;
--oracle

--登陆密码
SELECTfnd_profile.value('CUX_OIE_DEFAULT_PWD')FROMdual;
--hbj123$%^

--登录名加密
SELECTutl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('oracle')))FROMdual;
--b3JhY2xl

--登录密码加密
SELECTutl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('hbj123$%^')))FROMdual;
--aGJqMTIzJCVe

步骤:
1、[appsit2@ebstest ~]$   telnet 10.10.225.189 25
Trying 10.10.225.189...
Connected to 10.10.225.189.
Escape character is '^]'.
220 ex2k7-test.testmail.com Microsoft ESMTP MAIL Service ready at Mon, 1 Jul 2013 10:46:13 +0800

2、 EHLO 163.com
220 163.com Anti-spam GT for Coremail System (163com[20090903])
250-mail
250-PIPELINING
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-coremail 1Uxr2xKj7kG0xkI17xGrUDI0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrHMAyqUCa0xDrUUUUj
250 8BITMIME

3、 AUTH LOGIN                        #登录认证
334 dXNlcm5hbWU6

4、 b3JhY2xl                          #base64加密的用户名 这里是oracle
334 UGFzc3dvcmQ6

5、 aGJqMTIzJCVe                      #base64的密码 这里是hbj123$%^
235 Authentication successful

6、 mail from:
250 Mail OK

7、 rcpt to:
250 Mail OK

8、 data
354 End data with .

9、 hello kindle!!!

.
250 2.6.0 Queued mail for delivery
quit
250 Mail OK queued as smtp3,DdGowKArD1jIqFpLQNscBA--.23003S2 1264232723
Connection closed by foreign host

中断telnet连接命令 ctrl+],然后输入 quit命令退出

你可能感兴趣的:(TELNET)