Changes

Jump to: navigation, search

OPS335 Lab 4

202 bytes removed, 12:22, 13 February 2016
no edit summary
#Make certain you are still in your '''vm2''' machine.
#Test email from your machine by sending an email to your '''Seneca email account''' using the following command:<br>'''mail -s "Lab4a - test 1test1" <Your Seneca email address>'''<br><br>'''NOTE:''' after you type in your letter, enter a period in the first column on body of the last mail message, move to an empty line , type period "." and hit press the ENTER keyto send the message.<br><br>
#Check your Seneca email account to see if you got the email (note that it may take a <u>few minutes to arrive</u>, so you may also wish to try an alternate email account if you have one like gmail, etc). When you do receive that email, make a note of the return address.
#If you did not receive the mail, check the mail logs on your vm2 machine to determine any errors messages that would indicate a mail server setup problem.
#Test email from your '''Host Machine''' by sending an email to your Seneca account using the following command:<br>'''mail -s "Lab4a - test 2test2" -r hacker@evil.com <Your Seneca email address>
#Check your Seneca email to see if you got the email. If you did make a note of the return address. Why would you think including the '''-r''' option could be used by penetration hackers to gain access to a computer system?
===Testing email using IP Addresseson Local VM Machine (vm2)===
If you were able to send e-mail to We will now test both your Seneca MUA (mailx) and MTA (postfix) by sending and receiving e-mail account from your messages on the local VM2 and VM3, then we should test to see if we can send email messages within our virtual private networkmachine only.<br>First, let's send a message using a static IP ADDRESS for each VM:
'''Perform the following Steps:'''
#Adjust your firewall Send an email message locally (iptables) to allow traffic to '''port 25''' on both VMsi.# Check your '''/var/log/maillog''' file to see the log entries get created when mail is sent and received, or notes when something goes wronge.#Try sending an email from '''vm2''' to only within) your '''vm3''' VM2 machine by issuing the command:<br>'''mail -s "PART E2Lab4a - Local - Test1" yyyyyy@[192.168.X.4]<yourSenecaID>'''<br><br>#Try sending After you type in the body of the mail message, move to an email from your '''vm3''' empty line, type period "." and press the ENTER key to '''vm2''' by issuing send the message.#Issue the following commandto read the mail message you send to yourself:<br>'''mail -s "PART E3" root@[192.168.X.3]''' <br><br> 
===Test email using host names===
13,420
edits

Navigation menu