How to Install iRedMail Mail Server on CentOS/RHEL 7/6

iRedMail is open source mail server on Linux server. iRedMail gives numerous features, for example, it is totally safe and secure as the entirety of its components is open source. Your security is totally ensured as the application and data are stored on your own hard drive. The best part of iRedMail is that it provides a web-based admin panel from where admins can do all the email related operations task like managing users. Some of the other features are listed below: Support unlimited email accounts.

  • It provides Roundcube Webmail default MUA
  • It used Postfix as an SMTP service (MTA)
  • It used Dovecot as POP3/POP3S, IMAP/IMAPS service (MDA)
  • An interface between Postfix and SpamAssassin, ClamAV. Used for spam and virus scanning.
  • OpenLDAP, MariaDB, and PostgreSQL can be used to save mail accounts
  • Fail2ban scans log files /var/log/maillog file and bans IPs that show malicious system attempts.
iRedMail

See Also:

Step 1: Prerequisite

First, we need to install some required packages before starting the installation of iRedMail.

On CentOS/RHEL:
# yum install bzip2 wget
On Ubuntu:
# apt-get install bzip2 wget

Also, you need to set a fully qualified domain name (FQDN) hostname on your server.

For CentOS/RHEL 7
# vim /etc/hostname
For CentOS/RHEL 6
# vim /etc/sysconfig/network

You can verify the FQDN using mention command.

# hostname -f
iredmail.techoism.com

Now you will need to disable your SELinux because iRedMail does not work with SELinux policies.

# vim /etc/sysconfig/selinux

Find the following line:

SELINUX=enforcing

Changed it to:

SELINUX=disabled

Reboot the machine to reflect the above changes.

# reboot

Step 2: Download and Extract iRedMail

Download the latest version of iRedMail from their Official Website or use the below link to download iRedMail.

# cd /opt
# wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.9.tar.bz2

Extract iRedMail using mention command.

# tar -jxf iRedMail-0.9.9.tar.bz2

Step 3: Install iRedMail

After extracting the file execute the iRedMail script to install an iRedMail mail server.

Welcome to the iRedMail setup wizard. Click “Yes” to proceed.

iRedMail Install 1

By default, iRedMail stores user mailboxes on /var/vmail. If you want to change the default location change it and Click on Next.

iRedMail Install 2

Choose the Web Server you want to run and Click on Next.

iRedMail Install 3

Select any of the databases you want to chose to store mail accounts in backend and Click on Next.

iRedMail Install 4

Specify the MySQL root password and Click on Next.

iRedMail Install 5

Please specify your first mail domain name and Click on Next.

iRedMail Install 6

Please specify a password for the mail domain administrator and Click on Next.

iRedMail Install 7

These are the optional components so select the components as per your requirement and Click on Next.

iRedMail Install 8

If all the information is correct type Click on y and press Enter.

iRedMail Install 9

iRedMail installation has been started.

iRedMail Install 10

Set some other below configuration to completed the iRedMail installation.

iRedMail Install 11

Note: Default configuration of iRedMail.

Postfix mail logs: /var/log/maillog
iRedMail Logs: /var/log/iredapd/iredapd.log
Default Administrator Name: [email protected]
iRedAdmin Web-based Admin Panel: https://iredmail.techoism.com/iredadmin
Roundcube Webmail: https://iredmail.techoism.com/mail
SOGo Groupware Webmail: https://iredmail.techoism.com/SOGo
Netdata (Monitor): https://iredmail.techoism.com/netdata

Step 4: Access iRedMail Admin Panel

Access mention URL in browser to access iRedMail admin panel.

https://iredmail.techoism.com/iredadmin
iRedMail Admin Panel

Step 5: Access Roundcube Webmail

Access mention URL to access Roundcube webmail.

iRedMail Webmail

Enjoy it!

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.