Under Linux, we can test the ability to send mail through the Telnet mail server's port 25 (which is the typical SMTP mail server). The premise is that DNS should be set up first, or/etc/hosts file to make good mail server domain name corresponding IP address.
The following red ones are to be entered.
[Email protected] ~]# telnet mail.xxx.com 25Trying 10.10.1.127...Connected to Mail.dji.com (10.10.1.127). Escape character is ' ^] '. djicas02-in.dji.com Microsoft ESMTP MAIL Service in Thu, 2014 15:38:56 +0800500 5.3.3 Unrecognized commandEHLO #发起会话250-xxx.dji.com hello250-size 37748736250- Pipelining250-dsn250-enhancedstatuscodes250-starttls250-x-anonymoustls250-auth NTLM LOGIN250-X-EXPS GSSAPI ntlm250-8bitmime250-binarymime250-chunking250 XRDSTAuth Login #登陆334 Vxnlcm5hbwu6v29ya2zsb3dnywlszxi= #用户名, contains no domain name, base64 encryption334 Ugfzc3dvcmq7yxnkzmdonzd+ #密码base64加密235 2.7.0 authentication successful500 5.3.3 Unrecognized commandMail From:[email protected] #我的邮件地址2.1.0 Sender OKrcpt To:[email protected] #目标邮件地址2.1.5 Recipient OKdata #data代表要输入邮件数据了. 354 Start mail input; End With <CRLF>.<CRLF>subject:title1539 #主题abcd1539 #正文. A point number, enter can be. 2.6.0 <[email protected]> [internalid=6713033883802] Queued mail for delivery
Test outgoing messages from Linux telnet to an Exchange mail server