Due: Tuesday, March 16, 2021, 11:59 pm
dig and whois commands to find out
the following infomation of Colby. Show how do you use those
commands to get the information.
nc to finish the following tasks:
You are expected to look up the meaning of the lines that were not discussed in the class.
We studied SMTP in class. If you want to review or learn more about it, you can use the lecture notes posted on the course website under the "Notes" section. You can also read the textbook, which has a good description, or can look at RFC 5321 or Wikpedia article, which has a good example of a typical SMTP exchange. The goal of this part of the project is try to directly communicate with an MTA pretending to be another MTA sending a message.
SSH to gloin.cs.colby.edu, connect to the mail server
running at it on port 25 using nc (or a telnet client) and
pretend to be an MTA delivering two messages addressed from cs331 AT
gloin.cs.colby.edu to your Colby email address and your local
address at gloin (xxx AT gloin.cs.colby.edu) separately. Use subject
"SMTP test" and make sure that you are identified in the body of the
message.
Did you send email to your Colby address successfully? Did you send email to your local address at gloin successfully (use the utility mail to check)? Capture the session and turn it in as a part of the assignment write-up. Explain why did you send email successfully or unsuccessfully in your write-up?
Using gloin.cs.colby.edu as the mail server, send an
email with a fake "From" address to yourself at gloin. Did you
succeed this time? Capture the session and turn it in as a part of
the assignment write-up. This experiment can help you to figure out
the reason behind the success/failure in the above paragraph.
Technically, you can use any mail server for the assignment, however, I would like to ask you to use the one specified above. While there is nothing technically wrong with connecting to any mail server, typos-filled hand-typed sessions tend to trigger various security alarms.
javax.mail or
python smtplib). Take a look at the quick intro to Python
network programming in the textbook - that might be the quickest way to
get this part done.Reimplement part b of the programming assignment. Try not to use any command or utility for direct sending of the email (e.g., the mail command in Unix/Linux). Basic shell, nc, and expect are probably good starting points in your search for the right tools.
FYI, expect is a
scripting language for interactive programs. Here is a well-written poster for
you to get started. Gloin has expect installed. Have fun!
© 2021 Ying Li. Page last modified: .