Jump to: navigation, search

OPS335 Lab 4

337 bytes added, 11:19, 16 February 2016
no edit summary
#Issue the following command to read the mail message you send to yourself:<br>'''mail'''<br><br>'''NOTE:''' You can refer to the link below to view a reference chart on how to read and delete received e-mail messages at the mail command prompt:<br>[ Commands to View and Manage Received e-mail Mesages]<br><br>
#If you received an e-mail message, the message and subject line should appear as a listing in your mail command.<br>If you did not receive a mail message, check your mail server settings, check to see if you mail server is running and also check '''/var/log/messages'''.
# Issue the following command: '''cat /var/log/spool/mail/<yourSenecaID>'''<br>What do you see? What does this show you in terms of where mail is stored on your e-mail server?
#Type the mail message number that is displayed in your e-mail message list in the prompt and press ENTER. You should be able to confirm the message body that you sent.
#Exit the mail program by typing the letter '''q''' and press ENTER.
#Re-issue the mail command. What happened? If #Exit the mail message that you read no longer shows is displayed, what would be the reason for this?<br>Record your answer command. Create a directory in your OPS335 lab loghome directory called: '''mail'''.#Re-book.issue the mail command, and enter the following command at the mail prompt: '''save 1 mail/msg1'''<br>Use the cat command to check the contents of '''/var/spool/mail<bryourSenecaID>''' and '''~/mail/msg1'''. Exit the mail command.
#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?

Navigation menu