Appendix, Verify smtp server communication – Liquid Controls FlightConnect Office User Manual
Page 33

33
Appendix
VeRIfy smTp seRVeR CommunICaTIon
To specify a specific SMTP server, the user must provide the SMTP server URL and an allowed sender’s email
address. The Dispatch application will then connect directly to the SMTP server using TCP and relay the message
using the SMTP protocol.
To verify communication between the host computer and the remote SMTP server:
1) Start a Telnet session by using the Telnet command in the following
format:
telnet
For example:
telnet mail.google.com 25
If the command is correct, the SMTP server sends the following
response:
220 mail.google.com Microsoft Exchange Internet Mail Connector
2) Start communication by typing the following command:
EHLO google.com
If the command was successful, the following response appears:
250
3) Enter the following command to tell the receiving SMTP server who the message is from:
MAIL FROM:[email protected]
4) Type the following command to tell the receiving SMTP server whom the message is to.
Type the following command with the SMTP address of the recipient:
RCPT TO: [email protected]
The server returns the following response:
250 – Recipient [email protected]
5) Type the following command to tell the SMTP server that data is
ready to send:
DATA
The server responds:
354 Send data. End with
CLRF.CLRF
6) Start typing the 822/2822 section of the message. The user will see this part of the message in their inbox. Type the following
command to add a subject line:
Subject: test message
Press ENTER two times. The server will not acknowledge this command.
7) Type the following command to add message body text:
This is a test message you will not see a response from this command.
If the following error message appears after entering
any one of the following commands, the SMTP server
does not recognize the command:
500 Command not recognized
Confirm the command is correct and verify that
communication exists with an SMTP server.
Replace the server name with the IP address or the
FQDN of the SMTP server.
Although the HELO command is permitted, the EHLO
verb is supported in all current Microsoft implementations
of SMTP. Unless there is a problem using Extended SMTP
verbs, the EHLO command is recommended.
Responses may vary slightly depending on the
SMTP server version. All versions of the Microsoft
SMTP include the term “Microsoft” in the 220 response.
Always use a valid recipient SMTP address in the
destination. For example, to send a message to john@
domain.com, confirm that [email protected] exists in
the domain. Otherwise, the server returns an NDR.
The two ENTER commands comply with
Request for Comments (RFC) 822 and 2822. 822
commands must be followed by a blank line.
Microsoft Telnet does not permit the Backspace
key. To correct a mistake, press “Enter”, and then
start a new command. In the following steps,
Telnet runs from the command line. To open a
command line, click “Start”, click “Run”, type
“cmd” in the Open box, then click OK.
This address can be any SMTP address that you want, but it is a good idea to consider the following issues:
a. Some SMTP mail systems filter messages based on the MAIL FROM: address and may block specific IP addresses unless they
recognize the domain where the SMTP mail system resides. In the example, that domain is test.com.
b. If an invalid e-mail address is used, there is no way to determine if the message had a delivery problem, because the non-
delivery report (NDR) cannot reach an invalid IP address. If a valid e-mail address is used, the SMTP server returns the following
response: 250– MAIL FROM [email protected]
Press “Enter” after typing each line.