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 [Link]
- tar xjf [Link].bz2
- cd iRedMail-0.9.7/
- bash [Link]
INSTALLING IREDMAIL
Click next and next again, select MySQL, afterwards provide them with your domain name ([Link]),
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 [Link] login
with the postmaster@[Link] 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:
[Link]
And you can see that it works!