0% found this document useful (0 votes)
33 views64 pages

Nicholas SNA Individual (Almost Done)

This document outlines the steps taken to install and configure several server applications including a DNS server (BIND), DHCP server, mail server (Postfix & Dovecot), web server (Apache), LDAP server and enabling SSL/TLS encryption. Key steps include installing and configuring the applications, editing configuration files, adding users and restarting services. The overall goal is to set up a full-featured but secure mail, authentication and web infrastructure using open source server software and protocols like LDAP, IMAP, SMTP and HTTPS.

Uploaded by

hema rooban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views64 pages

Nicholas SNA Individual (Almost Done)

This document outlines the steps taken to install and configure several server applications including a DNS server (BIND), DHCP server, mail server (Postfix & Dovecot), web server (Apache), LDAP server and enabling SSL/TLS encryption. Key steps include installing and configuring the applications, editing configuration files, adding users and restarting services. The overall goal is to set up a full-featured but secure mail, authentication and web infrastructure using open source server software and protocols like LDAP, IMAP, SMTP and HTTPS.

Uploaded by

hema rooban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 64

Cover Page

Table of Contents
Section 1.....................................................................................................................................................3
Section 2.....................................................................................................................................................6
Section 3...................................................................................................................................................11
Section 4...................................................................................................................................................15
Install Dovecot.........................................................................................................................................23
Section 5...................................................................................................................................................32
Section 6...................................................................................................................................................36
Section 7...................................................................................................................................................60
1.0 Section 1
1.1 Sudo apt update
1.2 Sudo apt upgrade (First Screenshot)
1.3 Sudo apt upgrade (Second screenshot)
Section 2
Sudo apt install bind9 (First screenshot)
Sudo apt install bind9 (second screenshot)
Configuring BIND (Berkeley Internet Domain)

Configure Forwarders, Listening Interfaces and Allow Recursion – In the


(/etc/bind/named.cinf.options)

Configure Local Zones Command


Added Local Zone – (Inside /etc/bind/named.conf.local) file

Create Zone File Command


Configure Zone File – Have specified the DNS records for my specific local
domain
Section 3
DHCP Server Installation Command

Configure the DHCP Server Command


Configure Network Settings – In the (/etc/dhcp/dhcpd.conf) file

1. Setting the Global Parameters such as the default-lease-time, max-lease-time


etc.
2. Followed by defining the subnetwork with and IP Adress Range for the
DHCP Server
Specifying DHCP Server

1. Added the dhcp4:true line

Apply Network Configuration Command

Start DHCP Server:

Enable DHCP Server:


Verify DHCP Server:

1. As shown the Status of the DHCP Server is Active and running with
specified subnet configuration
Section 4
Postfix Installation

First Screenshot
Postfix Installation

Second Screenshot

Configure Postfix Command


1. The (Internet Site ) general mail configuration type was chosen
1. The system mail name was typed as my TP Number followed by the
extension (localdomain)
1. I chose to allow to use all Internet Protocols inlucding Ipv6 and Ipv4
Postfix Configuration File

1. Added the lines with #Enable SMTPS (SMPTP over SSL/TLS)


2. Added the lines with #Enable Dovevot SASL authentication
Install Dovecot (Email Server)
Dovecot Installation Command
First Screenshot
Dovecot Installation Command

Second Screenshot
Dovecot Configuration File Command

Dovecot Configuration File


Dovecote Configuration File Command

First Screenshot

1. This Dovecot Configuration File contains the settings which are related to
authentication purposes
Second Screenshot

2. This Dovecot Configuration File contains the settings which are related to
authentication purposes.
Dovecot Mail Server Configuration Command

This File contains configurations related to Mail Server


Command
1. The unix_listener - Postfix (or other mail systems) can communicate with
Dovecot's authentication service via the Unix domain socket defined by this
directive.
2. With this configuration, Postfix can process incoming emails and handle
outbound messages that demand authentication by using Dovecot's
authentication service to confirm user credentials. It enables Postfix to
assign Dovecot the authentication procedure.
The following tests the Dovecot Service’s Status
Section 5 (Web Server)
Question 5 – Install and Configure a Web Server Using Apache

Apache2 Installation Command

First Screenshot
Apache2 Installation Command

Second Screenshot

Start Apache2 Command

Enable Apache2 Command


This command changes the Directory to the path (/var/www/html)

Editing the HTML File Opened through Linux

1. You can alter the "index.html" file's content by opening it using sudo nano
index.html. Typically, the HTML file "index.html" allows you to edit the
HTML markup, add or delete text, insert images, update links, and make any
other adjustments to the structure and style of the web page.
2. In my case, I went ahead and edited the heading one to “This is Nicholas’s
Website” and the paragraphs to “This website is for you to purchase goods”
The following represents the website I have edited.
Section 6 (LDAP Server)
Question 6

LDAP Installation
Configure LDAP Authentication for Email and Web Services:

LDAP Users Configuration File:

Postfix, Dovecot and Apache2 Services Restart:


Thunderbird Email Account Settings
Thunderbird Email Account Inbox

Determine Identity of the Currently Authenticated User


PHP LDAP Admin Installation

First Screenshot
PHP LDAP Admin Installation

Second Screenshot

1. A web-based LDAP client called PHP LDAP Admin offers a graphical user
interface for controlling LDAP (Lightweight Directory Access Protocol)
servers. A protocol called LDAP is used to access and maintain distributed
directory information services over a network.
Configuring Web Services In - PHPLdapadmin Configuration File

First Screenshot
Second Screenshot

I uncommented line ($config->custom-


>appearance[‘hide_template_warning’] = true;
Reconfigure (OpenLDAP) Using this Command
User LDIF File Command

1. The LDIF File contains information with regards to user accounts which
contains different attributes unique to the user, such as their username,
password, mail and etc.
Command to Encrypt User Password

LDIF User Configuration File – With Encrypted Password


The command-line tool called (ldapadd) is used to add records to the LDAP
server.

First Screenshot
Second Screenshot

1. This shows that the record entry to the LDAP Server was successful.
This command installs several packages in order to setup and email server
alongside postfix which is responsible for mail transfer whilst Dovecot takes care
of IMAP functionality.

1. Postfix is a well-liked mail transfer agent (MTA) for sending and receiving
emails. The primary element in charge of managing both incoming and
outgoing email delivery is this one. IMAP and POP3 email servers, such as
Dovecot, are available for free. Dovecot's fundamental components, which
are necessary for the software to work, are included in the dovecot-core
package. IMAP (Internet Message Access Protocol) server functionality for
Dovecot is especially provided by the package known as dovecot-imapd.
IMAP is a protocol that gives users access to their email on a distant mail
server, the ability to manage folders, and the ability to sync their email
across several devices. Dovecot-LDAP: This package enhances support for
LDAP integration with Dovecot. Centralized authentication and user
administration are made simple by LDAP, a protocol that is used to store and
retrieve user and group information.
This File Configuration is to the Postfix mail server's primary controls and
settings
Command

1. In this Configuration File I edited the #LDAP Server settings, the changes
made were to the dc, uid, userPassword, homeDirectory, hosts, uidNumber
and gidNumber according to my personal settings.

Restarting the Postfix and Dovecot Services for it to be effective


The "authnz_ldap" module will be enabled when you issue the command
"sudo a2enmod authnz_ldap," enabling you to set up LDAP-based
authentication and authorization for your Apache web server.

1. The (sudo a2endmod authnz_ldap) command was run to enable the module
and then the (sudo systemctl restart apache2) restarted and made the module
take into effect.
Command to Open the Apache Server Configuration File

Configuration File to configure the Apache settings for the website.

The following tests the Apache2 Web Server Status


Section 7 (SSL/TLS Encryption)

Checking Postfix Configuration


For email (Postfix and Dovecot) and web (Apache) services, we must install
the required packages:

This particular Certbot plugin is for integrating with the Apache web server.
It enables Certbot to easily set up HTTPS for websites hosted on an Apache
server by automatically configuring Apache to use the acquired SSL/TLS
certificates.

First Screenshot
Second Screenshot

Command to Enable the SSL module in the APACHE HTTP Server


Command to Configure an Apache Virtual Host For the Website:

Apache Virtual Host Configuration File

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy