My favorites | Sign in
Logo
                
Search
for
Updated Dec 03, 2009 by michaelbibby
Labels: Featured, Ubuntu, Hardy, Jaunty
Installation_on_Ubuntu  
Install iRedMail on Ubuntu (Hardy, Jaunty).

Have trouble in iRedMail installation? Ask in our forum or get support from iRedMail developers.

Read this installation guide in other languages
简体中文 (wiki.ubuntu.org.cn)

Requirement

***************************** WARNING ********************************
* iRedMail is designed to deploy on a FRESH server system, otherwise *
* it may override your existing files/configurations althought it    *
* will backup files before modify.                                   *
***************************** WARNING ********************************

OS Version Platform iRedMail Version
Ubuntu (Jaunty, 9.04) 9.04 i386, amd64 >= 0.5.0-rc1
Ubuntu (Hardy, 8.04 LTS) 8.04 TLS i386, amd64 >= 0.5.0-rc1

At least 512MB of memory is required for product use.

Downloading Ubuntu CD/DVD images via HTTP/FTP

Preparation

Tip: You can use exist MySQL database server to store virtual domains/users.

System Hostname

No matter your server is external or internal, strongly recommended that you set up a fully qualified domain name (FQDN) hostname.

Enter 'hostname' command to view the current hostname:

$ hostname -f
mail.iredmail.org

In Ubuntu (Hardy), hostname is set in these two files:

# File: /etc/hostname
mail

Start iRedMail Installation

# -------------------------------------------------------
# --------------------- Generic -------------------------
# -------------------------------------------------------

Welcome page.

All emails should be stored in which directory.

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

# -------------------------------------------------------
# ---------------- OpenLDAP Backend ---------------------
# -------------------------------------------------------

LDAP suffix, normally it's your domain name, such as:

dc=iredmail,dc=org

iRedMail will put all virtual domains/users in 'o=domains,dc=iredmail,dc=org', it's called 'LDAP base dn':

o=domains,dc=iredmail,dc=org

Set password for LDAP server admin. Admin account is defined in /etc/openldap/slapd.conf (RHEL/CentOS) or /etc/ldap/slapd.conf (Debian), normaily it's:

cn=Manager,dc=iredmail,dc=org
# --------------------------------------------------------
# ------------------- MySQL Backend ----------------------
# --------------------------------------------------------

Tip: You can use exist MySQL database server to store virtual domains/users.

Password for MySQL root user.

# --------------------------------------------------------
# ----- Generic. Creae first virtual domain and user. ----
# --------------------------------------------------------

Add your first virtual domain, e.g.:

  • iredmail.org
  • example.com
  • domain.ltd

iRedMail will create a domain admin, default is 'postmaster@YOUR_DOMAIN', and you have to set password for it now.

Note:

  • This account is used only for system administrations, not a mail user.
  • You can login iRedAdmin or PostfixAdmin with this account, login name is full email address.

iRedMail will create a normal mail account, default is 'www@YOUR_DOMAIN', and you have to set password for it now.

Note:

  • This account is a normal mail user.
  • You can login webmail with this account, login name is full email address.

Enable SPF verify and DKIM virify/sign feature?

# --------------------------------------------------------
# -------- Optional Components for LDAP Backend ----------
# --------------------------------------------------------

# --------------------------------------------------------
# --------- Optional Components for MySQL backend --------
# --------------------------------------------------------

# --------------------------------------------------------
# -------------------- Generic Options -------------------
# --------------------------------------------------------

Set alias mail address for root user.

After you complete the configure wizard, it's time to setup mail server now:

Configuration completed.

*************************************************************************
**************************** WARNNING ***********************************
*************************************************************************
*                                                                       *
* Please do remember to *REMOVE* configuration file after installation  *
* completed successfully.                                               *
*                                                                       *
*   * /root/iRedMail-x.y.z/config
*                                                                       *
*************************************************************************
<<< iRedMail >>> Continue? [Y|n]        # <- Type 'Y' or 'y' here, and press 'Enter' to continue

After installation completed, please refer 'iRedMail-x.y.z/iRedMail.tips' file for some important information about the components you used, and you need to setup DNS record for SPF and DKIM if you choosed them.

Important Things You Should Know After Installation

Access webmail and other web-based programs

After installation complete, you can access web-based programs if you choose to install them:

Note: Replace your_server by your server hostname or ip address.

Component URL Access via HTTP Access via HTTPS
Roundcube webmail http://your_server/mail/ (or /webmail, /roundcube) YES YES
SquirrelMail webmail http://your_server/squirrelmail/ (or /squirrel) YES YES
PostfixAdmin https://your_server/postfixadmin/ NO YES
phpMyAdmin https://your_server/phpmyadmin/ (or /mysql) NO YES
phpLDAPAdmin https://your_server/ldap/ (or /phpldapadmin) NO YES
Awstats https://your_server/awstats/awstats.pl NO YES

Trouble Shooting

Please report any issue to our Issue Tracker or Forum.

Hosted by Google Code