Sei sulla pagina 1di 4

Mai

THE MAILSERVER
How to install and configure a mailserver

Vincent Medendorp
N43B
INHOUD

Installation .....................................................................................................................................................................2
Installing the virtual Machine ....................................................................................................................................2
Updating ....................................................................................................................................................................2
Software ....................................................................................................................................................................2
Configuration .............................................................................................................................................................2
Sudo .......................................................................................................................................................................2
Hostname ..............................................................................................................................................................2
Hosts ......................................................................................................................................................................2
Making the server a mailserver .....................................................................................................................................3
Fetching iRedmail ......................................................................................................................................................3
Installing IRedmail .....................................................................................................................................................3
Last things ..................................................................................................................................................................3
Create a new mail user. .........................................................................................................................................3

1
MAILSERVER CONFIGURATION
INSTALLATION

INSTALLING THE VIRTUAL MACHINE

Install a new virtual machine running Debian 8.x

UPDATING

Issue the “sudo apt-get update” command to update the system to the newest version

SOFTWARE

Install no software other than SSH for convenience, Sudo and standard system utilities.

CONFIGURATION

SUDO
After you have installed “Sudo” issue the command “sudo nano /etc/sudoers” and add the
following line underneath root

administrator ALL=(ALL:ALL) ALL

Save and exit

HOSTNAME
If you haven’t changed the hostname at the installation or you have cloned the virtual machine
from somewhere you can issue the command “sudo nano /etc/hostname” Delete everything
and add

mailserver

Save and exit

HOSTS
Since you changed the hostname you have to change the hosts file to respresent the new name.
Issue the command “sudo nano /etc/hosts” . Delete the previous hostname and replace it with
“Mailserver”

2
MAKING THE SERVER A MAILSERVER

FETCHING IREDMAIL

Issue the following commands in order:

- cd /root/
- wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.7.tar.bz2
- tar xjf iRedMail-0.9.7.tar.bz2
- cd iRedMail-0.9.7/
- bash iRedMail.sh

INSTALLING IREDMAIL

Click next and next again, select MySQL, afterwards provide them with your domain name (dominion.org),
specify the password you want to use for the webmail and iRedAdmin account.

Select all the web applications, it will install and configure required packages automatically through the
CLI so type y and press enter and wait for the installation to succeed.

LAST THINGS

CREATE A NEW MAIL USER.


Login to the Windows Workstation and navigate to https://mail.dominion.org/iredadmin login
with the postmaster@dominion.org including the password you previously specified in the
installation, at the interface press Add User and fill in the query.

After your done, all you have to do is login:

https://mail.dominion.org/mail

And you can see that it works!

Potrebbero piacerti anche