usetelnettotestsmtpcommunication
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
usetelnettotestsmtpcommunication [2013/03/10 15:48] – deftesprit | usetelnettotestsmtpcommunication [2013/03/10 16:00] (current) – deftesprit | ||
---|---|---|---|
Line 9: | Line 9: | ||
* **Message body** | * **Message body** | ||
- | ^ Note: ^ | | + | ^ Note: ^ |
- | | You should always use a valid sender e-mail address so that any non-delivery report (NDR) messages that are generated by the destination SMTP server are delivered to the sender of the message. | + | | You should always use a valid sender e-mail address so that any non-delivery report (NDR) messages that are generated by the destination SMTP server are delivered to the sender of the message. | |
The commands in Telnet Client are not case-sensitive. The SMTP command verbs are capitalized for clarity. | The commands in Telnet Client are not case-sensitive. The SMTP command verbs are capitalized for clarity. | ||
- | - At a command prompt, type**telnet**, | + | - At a command prompt, type **telnet**, and then press ENTER. This command opens the Telnet session. |
- | - Type**set localecho** and then press ENTER. This optional command lets you view the characters as you type them. This setting may be required for some SMTP servers. | + | - Type **set localecho** and then press ENTER. This optional command lets you view the characters as you type them. This setting may be required for some SMTP servers. |
- | - Type**set logfile** _& | + | - Type **set logfile** _& |
- | - Type**open mail1.fabrikam.com 25** and then press ENTER.<br /> <p> <table border''" | + | - Type **open mail1.fabrikam.com 25** and then press ENTER. |
- | - Type**EHLO contoso.com** and then press ENTER. | + | | You can't use the backspace key after you have connected to the destination SMTP server within the Telnet session. If you make a mistake as you type an SMTP command, you must press ENTER and then type the command again. Unrecognized SMTP commands or syntax errors result in an error message that resembles the following: |
- | - Type**MAIL FROM: | + | - Type **EHLO contoso.com** and then press ENTER. |
- | - Type**RCPT TO: | + | - Type **MAIL FROM: |
- | - Type**DATA** and then press ENTER. You will receive a response that resembles the following:< | + | - Type **RCPT TO: |
- | - Type**Subject: | + | - Type **DATA** and then press ENTER. You will receive a response that resembles the following: |
- | - Press ENTER. RFC 2822 requires a blank line between the '' | + | <code>354 Start mail input; end with & |
- | - Type**This is a test message** and then press ENTER. | + | - Type **Subject: Test from Contoso** and then press ENTER. |
- | - Press ENTER, type a period (**.** ) and then press ENTER. You will receive a response that resembles the following:< | + | - Press ENTER. RFC 2822 requires a blank line between the "Subject:" |
- | - To disconnect from the destination SMTP server, type**QUIT** and then press ENTER. You will receive a response that resembles the following:< | + | - Type **This is a test message** and then press ENTER. |
- | - To close the Telnet session, type**quit** and then press ENTER. | + | - Press ENTER, type a period (**.** ) and then press ENTER. You will receive a response that resembles the following: |
- | </ | + | - To disconnect from the destination SMTP server, type**QUIT** and then press ENTER. You will receive a response that resembles the following: |
- | + | - To close the Telnet session, type **quit** and then press ENTER. | |
- | <!-- ApplyClick with current id --> <img alt''"" | + | |
+ | Evaluate the Results of a Telnet Session | ||
This section provides information about responses that may be provided to the following commands, which were used in the previous example: | This section provides information about responses that may be provided to the following commands, which were used in the previous example: | ||
Line 37: | Line 36: | ||
* EHLO contoso.com | * EHLO contoso.com | ||
* MAIL FROM: | * MAIL FROM: | ||
- | * RCPT TO: | + | * RCPT TO: |
- | <p> <table border''" | + | ^ Note: ^ |
+ | | The 3-digit SMTP response codes that are defined in RFC 2821 are the same for all SMTP messaging servers. The text descriptions may differ slightly for some SMTP messaging servers. In the previous example, the destination computer is running Exchange Server 2010. | | ||
- | <!-- ApplyClick with current id --> <img alt''"" | + | Open mail1.fabrikam.com 25 |
- | < | + | **Successful Response** < |
- | < | + | **Failure Response** < |
**Possible Reasons for Failure** | **Possible Reasons for Failure** | ||
Line 53: | Line 53: | ||
* An incorrect port number was specified. | * An incorrect port number was specified. | ||
- | <!-- ApplyClick with current id --> <img alt''"" | + | EHLO contoso.com |
- | < | + | **Successful Response** < |
- | < | + | **Failure Response** < |
- | < | + | **Possible Reasons for Failure** There are invalid characters in the domain name. Alternatively, |
- | |**< | + | ^ Note: ^ |
| EHLO is the Extended Simple Message Transfer Protocol (ESMTP) verb that is defined in RFC 2821. ESMTP servers can advertise their capabilities during the initial connection. These capabilities include their maximum accepted message size and their supported authentication methods. HELO is the older SMTP verb that is defined in RFC 821. Most SMTP messaging servers support ESMTP and EHLO. | | | EHLO is the Extended Simple Message Transfer Protocol (ESMTP) verb that is defined in RFC 2821. ESMTP servers can advertise their capabilities during the initial connection. These capabilities include their maximum accepted message size and their supported authentication methods. HELO is the older SMTP verb that is defined in RFC 821. Most SMTP messaging servers support ESMTP and EHLO. | | ||
- | <!-- ApplyClick with current id --> <img alt''"" | + | MAIL FROM: |
- | < | + | **Successful Response** < |
- | < | + | **Failure Response** < |
- | < | + | **Possible Reasons for Failure** There is a syntax error in the sender' |
- | < | + | **Failure Response** < |
- | < | + | **Possible Reasons for Failure** The destination server does not accept anonymous message submissions. You receive this error if you try to use Telnet to submit a message directly to a Hub Transport server. |
- | <!-- ApplyClick with current id --> <img alt''"" | + | RCPT TO: |
- | < | + | **Successful Response** < |
- | < | + | **Failure Response** < |
- | < | + | **Possible Reasons for Failure** The specified recipient does not exist in the organization. |
- | </ | ||
- | -- Main.FredPettis - 2010-06-25 |
usetelnettotestsmtpcommunication.1362930492.txt.gz · Last modified: 2013/03/10 15:48 by deftesprit