iRedOS-0.6.0: Open Source Mail Server With Postfix, Dovecot, Amavisd, ClamAV, SpamAssassin, RoundCube

Want to support HowtoForge? Become a subscriber!
 
Submitted by eddiechen (Contact Author) (Forums) on Wed, 2010-07-07 16:36. :: Anti-Spam/Virus | CentOS | Email | Postfix

iRedOS-0.6.0: Open Source Mail Server With Postfix, Dovecot, Amavisd, ClamAV, SpamAssassin, RoundCube

iRedMail is a shell script that lets you quickly deploy a Open Source Mail Server solution in less than 2 minutes.

  • It supports Red Hat(R) Enterprise Linux & CentOS 5.x, Debian 5.0.x, Ubuntu 8.04/9.04, FreeBSD 7.x/8.x, it supports both i386 and x86_64.
  • Most components used in iRedMail are provided by Linux distributions officially, it means iRedMail users can get software update support for as long as for the distribution itself.
  • It supports OpenLDAP and MySQL as backends to save the virtual domains and virtual users.
  • It offers a web-based admin panel.

iRedOS is a customized CentOS 5.5 distribution, where e unnecessary packages were removed. It ships with the lastest version of iRedMail (iredmail0.6.0); it lets you install iredmail more quickly and smooth.

 

1 Requirements

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: dc=example,dc=com
  • The first virtual domain: example.com

 

3 Install The Base System And iRedMail 0.6.0

Boot from iredos. Press at the boot prompt:

Choose your language:

Select your keyboard layout:

I'm installing CentOS 5.5 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?

Now we must select a partitioning scheme for our installation. For simplicity's sake I select Remove all partitions on selected drives and create default layout.

Answer the following question (Are you sure you want to do this?) with Yes:

On to the network settings. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so static IP addresses are not a bad idea... Click on the Edit button at the top right.

In the window that pops up uncheck Use dynamic IP configuration (DHCP) and Enable IPv6 support and give your network card a static IP address (in this tutorial I'm using the IP address 192.168.1.10 for demonstration purposes) and a suitable netmask (e.g. 255.255.255.0):

Set the hostname manually, e.g. mail.example.com, and enter a gateway (e.g. 192.168.1.1) and one DNS servers (e.g. 4.2.2.1 ):

Choose your time zone, don't select System clock uses UTC:

Give root a password:

The installation begins. This will take a few minutes:

Now the CentOS installation has finished, start to install iredmail; if you selected No, the system would reboot and would not install iredmail.

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

Choose the backend to store virtual domains and virtual users. Here we use OpenLDAP.

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: postmaster@example.com, you can log into iRedadmin and Awstats with this account.

Set password for the first normal user www@example.com for the first virtual domain:

Select optional components:

Select the default language for your webmail application:

The installation is now finished, please reboot the machine:


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.