Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
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
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
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
- 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
https://mail.dominion.org/mail