利用telnet命令测试邮件服务器是否可用

栏目: 服务器 · 发布时间: 7年前

内容简介:本文由nock 创作,采用本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名

Linux

root@fsb:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 fsb.fashengba.com ESMTP Postfix (Ubuntu)
helo fashengba.com               # 宣告客户端地址
250 fsb.fashengba.com
mail from:nock@fashengba.com     # 告知服务器发件人地址
250 2.1.0 Ok
rcpt to:nockgod@foxmail.com      # 告知服务器收件人地址
250 2.1.5 Ok
data                             # 告知服务器要传送数据了
354 End data with <CR><LF>.<CR><LF>
subject: Hello Boby!                         # 声明邮件主题
You will win a big prize, do you believe?
This is just a probability event。           # 邮件内容
.                                            # 邮件内容以点(.)结束
250 2.0.0 Ok: queued as 0432298D7A3
Quit                                         # 退出邮件服务器
221 2.0.0 Bye
Connection closed by foreign host.
root@fsb:~#

测试发送结果如下:

利用telnet命令测试邮件服务器是否可用
利用telnet命令测试邮件服务器是否可用

本文由nock 创作,采用 知识共享署名4.0 国际许可协议进行许可

本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名

最后编辑时间为: Apr 22, 2019 at 02:30 pm


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Looking For a Challenge

Looking For a Challenge

the University of Warsaw / the University of Warsaw / 2012-11 / 0

LOOKING FOR PROGRAMMING CHALLENGES? Then this book is for you! Whether it's the feeling of great satisfaction from solving a complex problem set, or the frustration of being unable to solve a task,......一起来看看 《Looking For a Challenge》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具