大网数据广告活动
服务器运维问答

How to check postfix server using telnet

· 52CE 我爱测

I have postfix email server on Ubuntu 11.04 version. I upgraded installed packages using the following command sudo aptitude update && sudo aptitude safe-upgrade Once I update those packages, I couldn't connect my email from my c…

问题原文

原帖链接 · Smith Dwayne · CC BY-SA 3.0

I have postfix email server on Ubuntu 11.04 version. I upgraded installed packages using the following command

sudo aptitude update && sudo aptitude safe-upgrade

Once I update those packages, I couldn't connect my email from my client machine. So I tested my postfix server using telnet.

telnet mail.mydomain.com 25

I got the following result for the above command.

Trying 127.0.0.1...
Connected to mail.mydomain.com.
Escape character is '^]'.

I am very new to this postfix server. I couldn't understand whether my postfix server corrupted or not? Why I couldn't connect my email after updating the packages?

社区高分解答

原帖链接 · Anthony Fornito · CC BY-SA 3.0

Google "check email server using telnet" no quotes

Some of your output may vary but if you do not get any errors and you receive the email from the email server you can know that emial is flowing properly.

Also im not 100% sure if this answers your qestion however this is the way the check your email server form command line.

Also when using telnet be careful as 1 typo means you have start all over again.

From the port25 website

Here are all the commands I have bolded the command you will need to type out vs the output you will see.

telnet mail.port25.com 25

Trying 69.63.149.30...

Connected to mail.port25.com (69.63.149.30).

Escape character is '^]'.

220 mail.port25.com (PowerMTA(TM) v4.0) ESMTP service ready

EHLO server.example.com

250-mail.port25.com says hello

250-STARTTLS

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-CHUNKING

250-8BITMIME

250-XACK

250-XMRG

250-SIZE 54525952

250-VERP

250 DSN

MAIL FROM: <[email omitted]>

250 2.1.0 MAIL ok

RCPT TO: <[email omitted]>

250 2.1.5 <[email omitted]> ok

DATA

354 send message

From: "John Smith" <[email omitted]>

To: "Jane Doe" <[email omitted]>

Subject: test message sent from manual telnet session

Hello World,

.

250 2.6.0 message received

QUIT

221 2.0.0 mail.port25.com says goodbye

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。