Lab4b

From CDOT Wiki
Revision as of 17:06, 16 February 2016 by Msaul (talk | contribs) (Created page with '==INVESTIGATION 1: INSTALL & SETUP THE MAIL TRANSFER AGENT ('''MTA''')== {{Admon/important|Prerequistites|<ol><li>Ensure <u>all</u> machines have been updated and that the '…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

INVESTIGATION 1: INSTALL & SETUP THE MAIL TRANSFER AGENT (MTA)

Important.png
Prerequistites
  1. Ensure all machines have been updated and that the clocks are set to the correct date and time.
  2. Due to the changes made in this lab3, you will now need your vm1 running (as the DNS server) in order for any of your virtual machines to be able to use the internet.

Confirm Network Connections

Before proceeding with this lab, we need to confirm our machines have connectivity to the Internet before we can install and start sending e-mail messages.

Perform the following steps:

  1. Make certain that you can connect to the Internet on your Host Machine via web-browser.
    Since your host should be using VM1 as its DNS server, you will need to make certain that the VM1 machine is running as well.
  2. Start a web-browser on your Host Machine, and access your Seneca e-mail account (https://myseneca.ca).
  3. Confirm that you can access the web from your VM2 machine. You can install the wget or lynx applications in order to test this for your text-based server.

Install and Configure Postfix Package (MTA) on a VM

We will now be installing the postfix application which will act as the Mail Transfer Agent (MTA) that will send e-mail messages to other e-mail servers.
In our case, between our servers vm2 and an outside server which is your Seneca College email account (https://myseneca.ca).

Perform the following steps:

  1. Switch to your VM2 machine.
  2. Check the status of the sendmail service by using the systemctl command. If the sendmail service is running, use the systemctl command to stop and disable that service.
  3. Issue the following command to install the postfix application (MTA):
    yum install postfix

  4. What is the purpose of installing the postfix application in terms of using e-mail? Record your answer in your lab logbook.
  5. We need to configure our MTA (postfix application) to recognize our recently-created domain name that was created in lab3.
    Edit the Postfix configuration file called /etc/postfix/main.cf replacing the existing contents with only the contents displayed below:

    mydomain = senecaID.org
    myorigin = $mydomain
    mynetworks = 127.0.0.0/8, 192.168.X.0/24
    relay_domains =
    inet_interfaces=all

    Your MTA has the ability to resolve "fake" public address to an actual user account name. For example, if you have a user account called "msaul", you can have the MTA resolve the fake name "murray.saul" to the account name "msaul". In order to do this, you will need to create an alias which is contained in the MTA's alias file.

  6. Edit the /etc/postfix/aliases file and add your first name as an alias to be resolved to your VM2's account name:

    your-first-name       your-vm2-regular-username

  7. In order to update the MTA's database for the newly-create alias, issue the following command:
    postalias hash:/etc/aliases

  8. Finally, to start and enable your MTA, issue the following commands:
    systemctl start postfix.service
    systemctl enable postfix.service

  9. Check the /var/log/messages file to see that your MTA server started without error. If there are any errors, correct them before continuing.


Record steps, commands, and your observations in INVESTIGATION 1 in your OPS335 lab log-book