Under Linux, we can test whether a message can be sent by 25port (which is typically the SMTP mail server) in Telnet mail server. The premise is that DNS should be properly provisioned, or the/etc/hosts file should have the appropriate IP address for the mail server domain name.
The red ones below are all 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= #username, not including domain name, base64 encryption334 Ugfzc3dvcmq7yxnkzmdonzd+ #passwordbase64加密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 dot, a carriage return is possible. 2.6.0 <[email protected]> [internalid=6713033883802] Queued mail for delivery
To test sending messages from Linux telnet to Exchange mail server