本文介绍了如何检查smtp是否从命令行(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SMTP服务器,为了这个问题的目的,可以调用它:smtp.mydomain.com。

I have a SMTP-server, for the purpose of this question lets call it: smtp.mydomain.com.

如何检查SMTP服务器是在工作?

How do i check if the SMTP-server is in working? Can I send emails from Linux commandline?

推荐答案

Telnet到您的smtp服务器,如

Telnet to your smtp server like

telnet smtp.mydomain.com 25

语法:

telnet {smtp_domain_name} {port_number}

复制并粘贴以下内容

hello velanapps.com
mail from:<test@velanapps.com>
rcpt to:<to_email@velanapps.com>
data
From: test@velanapps.com
Subject: test mail from command line

this is test number 1
sent from linux box
.

注意:不要忘记。

我在web中发现了这一点,并在Stackoverflow中添加了这些。

I found this in web, and added this in Stackoverflow as many end up here.

这篇关于如何检查smtp是否从命令行(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 11:45
查看更多