SMTP stands for Simple Mail Transfer Protocol and is the procedure behind the email productivity on the Internet. There are many people who constantly send out emails but haven’t a clue how they reach their destination. SMTP literally puts into action a process that is similar to the delivery of mail through the post office. The server or computer that is running SMTP is the mail carrier on the Internet. Messages are directly sent to the SMTP service and then are sent on to their receivers.
Telnetting is an application layer protocol used on the Internet to provide bi-directional interactive test-oriented communication using a virtual terminal connection.
What can be tested by simply telnetting into an SMTP server:
To find out if a server is working.
Whether a firewall blocking communication.
Will a mail server allow for relaying of a certain domain or an email address.
The time it takes for a server to respond.
Whether a server is responding with the correct host name.
Manually testing SMTP in a telnet session:
As a telnet client, you must be verified for installation on the server. Once done, you should find a mail server to sign into. You will need the DNS MX record for a specific domain in order to proceed. You can use commands such as:
nslookup -type=mx mailtrap.io
nslookup -type=mx mailtrap.io
In order to use the IP, you need the DNS PTR so start with the IP address that the Internet recognizes you have. You can use: http://whatismyipaddress.com/ to get this information.
Once you get your IP address run a command with T.T.T.T standing for the IP address.
nslookup -type=ptr T.T.T.T
nslookup -type=ptr A.B.C.D
18.104.22.168.in-addr.arpa name = SOL-FTTB.22.214.171.124.sovam.net.ua.
There are now two requirements; the MX record for railsware.com and the PTR for the IP you will be using. Now you can log in to the SMTP server and this is the command:
telnet mail.railsware.com 25
You will see something like the following code:
Connected to mail.railsware.com (126.96.36.199).
Escape character is ‘^]’.
220 mail.railsware.com (PowerMTA(TM) v4.0) ESMTP service ready
The first command to the mail server is going to be EHLO or HELO, which is a basic greeting that initiates the communication between the SMTP server and the telnet client.
The next step is going to be the MAIL FROM. This command will define the address which bounces are delivered. The “From” header is not the same thing:
MAIL FROM: <firstname.lastname@example.org>
250 2.1.0 MAIL ok
Now that you have the MAIL FROM command, you can send the RCPT TO. This command will determine who the message should be sent to. This is similar to MAIL FROM except will be MAIL TO in the header.
RCPT TO: <email@example.com>
250 2.1.5 <firstname.lastname@example.org> ok
Before starting the body of your message you should run the DATA command. This command will explain all the other content.
Some mail servers support Pipelining. That means the SMTP will wait until the DATA command is sent before responding to other commands So, enter the MAIL FROM, RECPT TO, DATA commands before waiting for a response.
At the beginning, define the address of a SMTP server. Use a ns lookup command or another online service.
END…. THIS IS JUST NOT WORKING