跳到内容
兰忆网络
  • 首页
  • AI 与 Agent
    • AI 场景诊断与 FDE 交付
    • Dify 私有部署与工作流
    • 企业知识库与 RAG
    • Agent 集成、安全与运营
    • OPC 一人公司自动化
  • 专业服务
    • IT 项目咨询服务
    • IT 外包服务
    • 新办公室与新机构 IT 建设
    • IT 基础设施建设服务
  • 产品方案
    • Microsoft 云与办公平台
    • Quest KACE 终端管理
    • Veeam 备份与恢复
    • Lenovo 商用终端与服务器
    • HP 商用办公设备
    • Dell 商用终端、工作站与服务器
    • KTC电子白板
    • 锐捷企业网络
    • Fortinet 网络安全
  • 客户支持
    • 支持内容
    • 知识库
    • 工单系统
  • 关于我们
    • 公司新闻
    • 联系我们
    • 工作机会
  • 简体中文
    • English
    • 日本語
  • 首页
  • AI 与 Agent
    • AI 场景诊断与 FDE 交付
    • Dify 私有部署与工作流
    • 企业知识库与 RAG
    • Agent 集成、安全与运营
    • OPC 一人公司自动化
  • 专业服务
    • IT 项目咨询服务
    • IT 外包服务
    • 新办公室与新机构 IT 建设
    • IT 基础设施建设服务
  • 产品方案
    • Microsoft 云与办公平台
    • Quest KACE 终端管理
    • Veeam 备份与恢复
    • Lenovo 商用终端与服务器
    • HP 商用办公设备
    • Dell 商用终端、工作站与服务器
    • KTC电子白板
    • 锐捷企业网络
    • Fortinet 网络安全
  • 客户支持
    • 支持内容
    • 知识库
    • 工单系统
  • 关于我们
    • 公司新闻
    • 联系我们
    • 工作机会
  • 简体中文
    • English
    • 日本語

Linux

1
  • Ubuntu查看网卡信息

邮件系统

1
  • How to Use Telnet to Test SMTP Communication
View Categories
  • Home
  • 知识库
  • 邮件系统
  • How to Use Telnet to Test SMTP Communication

How to Use Telnet to Test SMTP Communication

3 min read

0:00 / 2:51
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

Telnet is an extremely useful tool for troubleshooting issues related to SMTP and mail flow. For example, you can use telnet to:

  • Verify that SMTP is installed properly, and that it has all the necessary commands.
  • Ensure that your server is accessible over the Internet.
  • Attempt mail delivery directly over the TCP port.
  • Determine that all servers are accepting connections.
  • Determine if a firewall is blocking a connection.
  • Ensure that a single user can receive mail.
  • Ensure that a specific domain can receive mail.
  • Ensure that a specific user or domain can send mail to your domain.
Note:
The following procedure shows you how to test the process of an internal user sending mail to a remote user when basic authentication is required for relaying mail outside your organization.

Before You Begin #


Before you perform the procedure in this topic, read Troubleshooting Mail Flow and SMTP.

The following permissions are required to perform this procedure:

  • Member of the local administrators group

Procedure #


To use telnet to test SMTP communication #


  1. Open a telnet session: From a command prompt, type telnet, and then press ENTER.
  2. Type set local_echo on a computer running Microsoft Windows® 2000 Server or SET LOCALECHO on a computer running Windows Server™ 2003 or Windows XP, and then press ENTER. This command allows you to view the responses to the commands. Note:For a list of available telnet commands, type set ?.
  3. Type o <your mail server domain> 25,and then press ENTER.
  4. Type EHLO <your mail server domain>, and then press ENTER.
  5. Type AUTH LOGIN. The server responds with an encrypted prompt for your user name.
  6. Enter your user name encrypted in base 64. You can use one of several tools that are available to encode your user name.
  7. The server responds with an encrypted base 64 prompt for your password. Enter your password encrypted in base 64.
  8. Type MAIL FROM:<sender@domain.com>, and then press ENTER. If the sender is not permitted to send mail, the SMTP server returns an error.
  9. Type RCPT TO:<recipient@remotedomain.com>,and then press ENTER.If the recipient is not a valid recipient or the server does not accept mail for this domain, the SMTP server returns an error.
  10. Type DATA.
  11. If desired, type message text, press ENTER, type a period (.), and then press ENTER again.
  12. If mail is working properly, you should see a response similar to the following indicating that mail is queued for delivery:250 2.6.0 <INET-IMC-01UWr81nn9000fbad8@mail1.contoso.com.

For More Information #


The following example shows a telnet test sending mail from contoso.com to a remote domain with a successful result:

250-mail1.fourthcoffee.com Hello [172.16.0.0]

250-TURN

250-ATRN

250-SIZE 5242880

250-ETRN

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODE.S

250-8bitmime

250-BINARYMIME

250-CHUNKING

250-VRFY

250-X-EXPS GSSAPI NTLM

250-AUTH GSSAPI NTLM

250-X-LINK2STATE

250-XEXCH50

250 OK

334 VXNlcm5hbWU6

334 UGFzc3dvcmQ6

235 2.7.0 Authentication successful.

250 2.1.0 kim@fourthcoffee.com….Sender OK

250 2.1.5 ted@contoso.com

354 Start mail input; end with <CRLF>.<CRLF>

.

250 2.6.0 <INET-IMC-01UWr81nn9000fbad8@mail1.fourthcoffee.com> Queued mail for delivery

For more information, see Securing Your Exchange Server.

您的感觉是什么

  • Happy
  • 常规
  • Sad

分享这篇文章 :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
How to Use Telnet to Test SMTP CommunicationHow to Use Telnet to Test SMTP Communication

Powered by BetterDocs

本文目录
  • Before You Begin
  • Procedure
    • To use telnet to test SMTP communication
  • For More Information
兰忆网络

企业 AI Agent、FDE 交付、Dify 私有部署与生产级 IT 服务

  • 工作机会
  • 联系我们

© 2026 LANEver All Rights Reserved. 沪ICP备07031891号-3