menu

开发进行时...

crazy coder

Avatar

SMTP Check Port 25 with the Telnet Command

You can check your SMTP Server on SMTP 25 port 25 with the following Telnet command:
Open a command line and type
telnet mailserver.domain.com 25
If your server is online a connection will be established on port 25 (SMTP).
An Exchange Server answers with the following output:
220 mailserver.domain.com Microsoft.....
When you type the 'help' command the available commands are listed:
...HELO EHLO STATTLS RCPT DATA RSET MAIL QUIT HELP AUTH TURN ATRN ETRN BDAT VRFY

Try the following to send an eMail from the command line:
helo myserver.domain.com
mail from: <myname@mydomain.com>
rcpt to: <recipientname@mydomain.com>
data
subject: This is a test mail
this is the text of my test mail.
.
quit

好像现在的mail服务器一般都要先helo或者ehlo登录一下,否则输入rcpt之后都会直接被reject。

是的,需要helo下

评论已关闭