Changes

Jump to: navigation, search

OPS335 Lab 4

12 bytes removed, 19:35, 10 February 2016
no edit summary
#Adjust your firewall (iptables) to allow traffic to '''port 25''' on both VMs.
# Check your '''/var/log/maillog''' file to see the log entries get created when mail is sent and received, or notes when something goes wrong.
#Try sending an email from '''vm2''' to your '''vm3''' by issuing the command:<br><br>'''mail -s "PART E2" yyyyyy@[192.168.X.4]'''<br><br>#Try sending an email from your '''vm3''' to '''vm2''' by issuing the command:<br><br>'''mail -s "PART E3" root@[192.168.X.3]''' <br><br>
===Test email using host names===
#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><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?
13,420
edits

Navigation menu