Docsity

SMTP Protocol Assignment for COP 3330 - Spring 2004, Assignments of Computer Science

Toggle sidebar
bg1
COP 3330 Assignment #1 Spring 2004
The purpose of this assignment is to introduce you to the mail protocol, specifically the Simple
Mail Transfer Protocol we discussed in class. Since you will be writing programs to implement
this protocol, this exercise is designed to give you some experience with the protocol as a kind of
“training” exercise so that you will know exactly what to expect when you have write code to do
the same thing – in short, you will be “understanding the problem” we will ask you to solve later.
Procedure:
Step 1. Logon to your pegasus account.
Step 2. Execute the following telnet command
>telnet longwood.cs.ucf.edu 25
This command connects you to port 25 of the computer called longwood on the
University network. Longwood will be executing the SMTP program in response to
SMTP commands you enter. So, if you enter a correct command, everything should
work fine. If you make a mistake, Longwood will respond with an error code reply.
Make note of the response to each command you send! You will need this information
for answering one or two questions on the next quiz.
Step 3. Enter the following sequence of SMTP commands. Be sure to press ENTER or
RETURN from the keyboard after each command – this will generate a <CRLF> that
signifies the end of a command to Longwood.
>HELO<CRLF>
>HELO <pegasus.cc.ucf.edu><CRLF>
>MAIL <your-email-address><CRLF>
>MAIL FROM: <your-email-address><CRLF>
>RCPT <your-email-address><CRLF>
>RCPT TO: <your-email-address><CRLF>
>RCPT TO: <[email protected]><CRLF>
>DATA<CRLF>
>SUBJECT: Assignment 1, COP 3330<CRLF>
>My name is: your-name <CRLF>
>End of Exercise!<CRLF>
>.<CRLF>
>QUIT<CRLF>
Step 4. After entering the QUIT command, the session with Longwood should end and
you will be back to Pegasus. Logoff at this point to end the exercise.
Step 5. Check the mail box you sent mail to and make sure it arrived.
12/1/2020 Page 1 January 15, 2004

Partial preview of the text

Download SMTP Protocol Assignment for COP 3330 - Spring 2004 and more Assignments Computer Science in PDF only on Docsity!

COP 3330 Assignment #1 Spring 2004 The purpose of this assignment is to introduce you to the mail protocol, specifically the Simple Mail Transfer Protocol we discussed in class. Since you will be writing programs to implement this protocol, this exercise is designed to give you some experience with the protocol as a kind of “training” exercise so that you will know exactly what to expect when you have write code to do the same thing – in short, you will be “understanding the problem” we will ask you to solve later. Procedure: Step 1. Logon to your pegasus account. Step 2. Execute the following telnet command >telnet longwood.cs.ucf.edu 25 This command connects you to port 25 of the computer called longwood on the University network. Longwood will be executing the SMTP program in response to SMTP commands you enter. So, if you enter a correct command, everything should work fine. If you make a mistake, Longwood will respond with an error code reply. Make note of the response to each command you send! You will need this information for answering one or two questions on the next quiz. Step 3. Enter the following sequence of SMTP commands. Be sure to press ENTER or RETURN from the keyboard after each command – this will generate a that signifies the end of a command to Longwood.

HELO HELO <pegasus.cc.ucf.edu> MAIL < your-email-address > MAIL FROM: < your-email-address > RCPT < your-email-address > RCPT TO: < your-email-address > RCPT TO: < [email protected]> DATA SUBJECT: Assignment 1, COP 3330 My name is: your-name End of Exercise!

>.

> QUIT

Step 4. After entering the QUIT command, the session with Longwood should end and you will be back to Pegasus. Logoff at this point to end the exercise. Step 5. Check the mail box you sent mail to and make sure it arrived. 12/1/2020 Page 1 January 15, 2004