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
- 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](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail.png)
See Also:
- SENDMAIL AND SENDGRID CONFIGURATION SERVER-SIDE ON CENTOS/RHEL/UBUNTU
- CONFIGURING GMAIL AS A SENDMAIL EMAIL RELAY
- EMAIL ALERT SETUP FOR CSF
- HOW TO SETUP MAIL FORWARDING IN POSTFIX LINUX
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](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-1.png)
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](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-2.png)
Choose the Web Server you want to run and Click on Next.
![iRedMail Install 3](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-3.png)
Select any of the databases you want to chose to store mail accounts in backend and Click on Next.
![iRedMail Install 4](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-4.png)
Specify the MySQL root password and Click on Next.
![iRedMail Install 5](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-5.png)
Please specify your first mail domain name and Click on Next.
![iRedMail Install 6](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-6.png)
Please specify a password for the mail domain administrator and Click on Next.
![iRedMail Install 7](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-7.png)
These are the optional components so select the components as per your requirement and Click on Next.
![iRedMail Install 8](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-8.png)
If all the information is correct type Click on y and press Enter.
![iRedMail Install 9](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-9.png)
iRedMail installation has been started.
![iRedMail Install 10](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-10.png)
Set some other below configuration to completed the iRedMail installation.
![iRedMail Install 11](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Install-11.png)
Note: Default configuration of iRedMail.
Postfix mail logs: /var/log/maillog
iRedMail Logs: /var/log/iredapd/iredapd.log
Default Administrator Name: postmaster@nsitmail.com
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](http://www.techoism.com/wp-content/uploads/2019/03/iRedMail-Admin-Panel-1024x443.png)
Step 5: Access Roundcube Webmail
Access mention URL to access Roundcube webmail.
![iRedMail Webmail](http://www.techoism.com/wp-content/uploads/2019/03/Roundcube-Webmail-1024x484.png)
Enjoy it!