SMTPDIAG Tools

xiaoxiao2021-03-06  113

Introduction

SMTPDIAG is a diagnostic tool to determine if the Simple Mail Transfer Protocol (SMTP) and Domain Name System (DNS) are properly configured to reliably deliver messages to the external email address. This tool automates certain steps introduced in the following Microsoft Knowledge Base article.

· 319426 "How to: Configure SMTP connector in Exchange to link to the Internet" (http://go.microsoft.com/fwlink/?LinkID=3052&kbid=319426)

· 153119 "Xfor: telnet to port 25 Test SMTP communication" (http://go.microsoft.com/fwlink/?LinkID=3052&kbid=153119)

· 203204 "Xfor: how to obtain internet exchanger records with the nslookup.exe utility" (http://go.microsoft.com/fwlink/?Linkid=3052&kbid=203204) (English)

SMTPDIAG parameters

SMTPDIAG has two required parameters and two optional parameters, as well as built-in assistance. Can be displayed by providing parameters or using /? Parameters. The following table summarizes the parameters described in the help and the corresponding function.

usage

SMTPDIAG "Sender Address" "Recipient Address" [-d Target DNS] [/ V]

parameter

Features

Sender Address is required. The address of the local mailbox. Used to verify SMTP submission and check the inbound DNS. Recipient Address is required. The email address of the remote mailbox to be sent. Used to verify the availability of DNS and remote mailboxes. -d Target DNS is optional. Used to find the IP address of the target DNS server recorded for remote MX (Mail Switch) in the test. The server is typically configured to Exchange an external DNS server. External DNS Setup is unavailable for Internet Information Services (IIS) SMTP. / V is optional. Shows more information about each test. /? Display help.

diagnosis

The result is shown in four colors, as described below:

· White text represents the operation being executed.

· Gray represents the information outcome.

· Green means successful test results.

· Red represents the test result of failure.

test

SMTPDIAG simultaneously uses the User Data Bad Protocol (UDP) and Transmission Control Protocol (TCP) to make sure the query is successful. The WINDP query is not supported by Microsoft® Windows® ServerTM 2003 and Microsoft Windows® XP. If the TCP query fails, the message will not be successfully passed.

SMTPDIAG The first job after verifying syntax is to check the starting authority (SOA) record of the remote address domain. The next step is to verify that the MX / A record of the local domain can be parsed. This test ensures that the sender is valid, and any messages returned can be returned to the starting server. This test will fail if you cannot parse the domain from the firewall. The MX / A record of the remote domain will then be checked. If this step fails, the message will not route due to DNS issues. At this point, the DNS infrastructure of the network must be checked.

After successfully querying all DNS records, the tool will attempt to connect to all MX (mail exchange) records related to the remote domain through port 25, and try to perform EHLO, MAIL from, RCPT to and Quit commands.

If the verbose (/ V) option is used when the tool is run, the details on the operations performed each test, and the details of each test step. This tool download address:

Http://www.microsoft.com/downloads/details.aspx?familyid=bc1881c7-925d-4a29-bd42-71e8563c80a9&displaylang=zh-cn

转载请注明原文地址:https://www.9cbs.com/read-103169.html

New Post(0)