iRedMail 0.7.0: Full-Featured Mail Server With LDAP Postfix RoundCube/SquirrelMail Dovecot ClamAV SpamAssassin Amavisd iRedAdmin On Ubuntu 9.04

Last edited 03/31/2011 

iRedMail is a shell script that lets you quickly deploy a full-featured mail solution in less than 2 minutes. Since version 0.5, iRedMail supports Ubuntu 8.04 and 9.04 (it supports both i386 and x86_64). Its object is to make a Linux mail server installation and configuration simple and easy to use. iRedMail supports both OpenLDAP and MySQL as backends for storing virtual domains and users. This tutorial shows how to use the OpenLDAP backend.

iRedmail provides two webmail programs, RoundCube and SquirrelMail, and both support the MySQL and OpenLDAP backends and can change the password.

iRedMail-0.5.1 was published on 2009-11-01 and it is iRedMail's birthday, it's 2 years old.

You can use iRedAdmin to manage email accounts from a web browser.

 

1 Requirements

It is strongly recommended to install a minimal Ubuntu system, and then deploy mail service via iRedMail solution. E.g.:

To install such a system you will need the following:

 

2 Preliminary Note

In this tutorial we use:
  • Hostname mail.example.com
  • IP address 192.168.1.10
  • LDAP suffix (root dn) dc=example,dc=com
  • The first virtual domain: example.com

 

3 Install The Latest Ubuntu Updates

Update /etc/apt/sources.list, use default stable version. Both main and universe repositories are required.

# vi /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu jaunty main universe
deb http://archive.ubuntu.com/ubuntu jaunty-updates main universe

Run apt-get update to update apt repository info.

# apt-get update

 

4 Setting hostname

In Ubuntu, the hostname is set in these two files:

* /etc/hostname: hostname setting
* /etc/hosts: hostname <=> IP address mapping

Map this hostname to 127.0.0.1. (Warning: List the FQDN hostname as the first item.)

# vi /etc/hosts

#127.0.0.1       localhost
#127.0.1.1      mail.example.com        mail
127.0.0.1   mail.example.com mail localhost localhost.localdomain

# vi /etc/hostname

mail

Verify the FQDN hostname:

# hostname --fqdn

mail.example.com

 

5 Start iRedMail Installation

Switch to root user, we must execute all further command as the root user without sudo.

$ sudo su -

Download the new version of iredmail

# wget http://iredmail.googlecode.com/files/iRedMail-0.7.0.tar.bz2
# tar jxvf iRedMail-0.7.0.tar.bz2


Start the iRedMail installer:

# cd iRedMail-0.7.0
# bash iRedMail.sh

Welcome page:

Choose the directory that will be used to store users' mailboxes.

iRedMail supports both OpenLDAP and MySQL as backends to store virtual domains and users. OpenLDAP is recommended.

LDAP suffix, normally it's your domain name, such as: dc=example,dc=com:

Set password for LDAP server admin: cn=Manager,dc=example,dc=com

Set the MySQL root password:

Add your first virtual domain, e.g.:

Set password for the virtual domain admin: [email protected], you can log into iRedadmin and Awstats with this account.

Set password for the first normal user [email protected] for the first virtual domain:

Enable the SPF verify and DKIM vertify/sign features:

Select optional components, you can choose between RoundCube or SquirrelMail as the webmail program.
Awstat user account is integrated in LDAP, so you need to use the [email protected] login, for further details read the file iRedMail-x.y.z/iRedMail.tips.
iRedAdmin - the official web-based admin panel for the ldap backend.

Select the default language for your webmail application:

Set a mail alias address for the root user:

The configuration is now finished, we can now start the installation:

When the installation is finished, reboot your system to enable mail services or start them manually without reboot.

Start services manually without reboot:

# for i in sysklogd apache2 postfix mysql slapd postfix-policyd dovecot amavis clamav-daemon clamav-freshclam cron iptables; do /etc/init.d/${i} restart; done

Share this page:

0 Comment(s)