Changes

Jump to: navigation, search

OPS335 Email Lab

26 bytes added, 16:38, 5 September 2011
Set up a DNS server
===Set up a DNS server===
 
Refer to Lab #3 and set up a DNS server on your host.
*Set your host name to f13.*Set your guest name to vm01.*Set your domain name to example.org.*Test your DNS on both host and guest to ensure it works properly.PART F - ===Test email using host names===
Now try sending mail to yourself on both machines. For example, as joker on f13, use the command:
$ mail joker@f13
the machine will prompt for a subject: enter "testing" without the quotes.
$ mail joker@f13the machine will prompt for a subject: enter "testing" without the quotes.*Now enter the body of your letter. When you're done, enter a period (.) in column 1 on the last line of your letter. This will signal end-of-file and your letter will be mailed. You should end up back at the $ prompt. If you mess up use CTRL-C to cancel the email, DO NOT USE CTRL-Z.
*Use the mailq command (you will need to be root) to view the mail queue.
Use the mail command to check if you have mail.
PART G - === Test your configuration and view your logs===*Restart your postfix servers on both machines.*Check your /var/log/messages file to see that your postfix servers started without error.*Send some emails from both guest and host to each other and to the outside world.*Check your /var/log/maillog file to see that your email messages were sent correctly.PART H - === Learning the mail command===*Read the mail manual page and learn how it works.PART I - ==Completing the Lab==Answer the following questions and and email them to your teacher in ASCII text format.#What is your full name and 9-digit Seneca student ID?#Include a copy of your main.cf file on vm01 (your guest) with this lab - but delete all commented and blank lines first - like this. [ cat /etc/postfix/main.cf | grep -v ^# | awk 'NF > 0 {print $0}'#What is the output of the iptables-save command on both your host and guest machines?#What firewall rule or rules, if any, did you have to enter on the guest and/or host so that email to/from each other would work?#What is the meaning of the square brackets surrounding the IP address in PART E?#What were your results to PART G? Show log segments to verify your answers.
1
edit

Navigation menu