Changes

Jump to: navigation, search

OPS335 Lab 4

1,070 bytes removed, 13:04, 13 February 2016
no edit summary
#Re-issue the mail command. What happened? If the mail message that you read no longer shows is displayed, what would be the reason for this?<br>Record your answer in your OPS335 lab log-book.<br><br>
#Try sending another e-mail from your VM2 account to yourself, but using your first name instead by issuing the following command:<br>'''mail -s "Lab4a - Local - Test2" <yourFirstName>'''
#Issue the '''mailq''' command on your VM2 machine (you will need to be root) to view the mail queue. Why would this command be useful for an administrator?#Now, issue the '''mail''' command to see if you received that e-mail message. Did it work? If so, why?<br>Record your observations in your OPS335 lab logbook.<br><br>#Issue Finally, issue the following mail commands for each of the following (using various e-mail addresses):<br>'''mail -s "Lab4a - Local - Test3" <yourSenecaID>.<vm2-IPADDR>'''<br><br>'''mail -s "Lab4a - Local - Test4" <yourFirstName>.<vm2-IPADDR>'''<br>'''mail -s "Lab4a - Local - Test5" <yourSenecaID>.vm2.<yourSenecaID>.org'''<br>'''mail -s "Lab4a - Local - Test6" <yourFirstName>.vm2.<yourSenecaID>.org'''<br><br>
#Which of the following commands worked? Record your observations in your OPS335 lab logbook.
 
===Test email using host names===
 
Let's complete this lab by sending email messages using our recently-created domain name:
 
'''Perform the following Steps:'''
 
#Use the '''host''' and '''hostname''' commands to confirm that each of your machines has the same ''hostname'' and that the DNS service verifies this to be true.
#Restart your MTA (postfix) server if you changed the hostname on either mail server.
#Try sending mail to yourself on both machines. For example, as the username <senecaID> on VM 3, use the command:<br>'''mail <senecaID>@vm2.<yourdomain>.org'''<br><br>'''NOTE:''' the machine will prompt for a subject: enter "testing" without the quotes.<br><br>
#Enter the body of your e-mail message. When you have completed entering your email message, enter a period (.) in column 1 on the last line of your letter. This will send the signal: '''end-of-file''' and your letter will be mailed. You should end up back at the shell prompt. If you make a mistake, use '''CTRL-C''' to cancel the email (DO <u>NOT</u> USE CTRL-Z).
#Use the '''mailq''' command on both machines (you will need to be root) to view the mail queue. Why would this command be useful for an administrator?
#Use the mail command to check to see if you have received any mail.
'''Record steps, commands, and your observations in INVESTIGATION 2 in your OPS335 lab log-book'''
13,420
edits

Navigation menu