I used iRedMail in 2015 for my business email but also my husband’s domain email on the same server, and it work perfectly. I don’t know what version it was but the latest version seems to work well internally. However I closed my business in 2015 though.
First install nano and bzip2.
yum install nano bzip2
Then disable selinux.
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are pr$ # mls - Multi Level Security protection. SELINUXTYPE=targeted
yum remove postfix
Make sure your hostname is a FQDN.
nano /etc/hostname mail.bales.lan
Lastly make the FQDN for 127.0.0.1 line in the hosts file.
nano /etc/hosts 127.0.0.1 mail.bales.lan mail localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Download the latest release of iRedMail
- Visit Download page to get the latest stable release of iRedMail.
- Upload iRedMail to your mail server via ftp or scp or whatever method you can use, login to the server to install iRedMail.
- I download it to my Mint to the Desktop and I uploaded it to
/root/iRedMail-0.9.6.tar.bz2by using scp.
scp firstname.lastname@example.org:/home/jeff/Desktop/iRedMail-0.9.6.tar.bz2 /root/iRedMail-0.9.6.tar.bz2
- Uncompress iRedMail tarball:
# cd /root/ # tar xjf iRedMail-0.9.6.tar.bz2
Go to the iRedMail-0.9.6 folder and do a bash for iRedMail.sh. It will ask you several question in process.
# cd /root/iRedMail-0.9.6/ # bash iRedMail.sh
Note to Chinese Users: The domain name
iredmail.org has been blocked in mainland China for years (since Jun 04, 2011), please run command below to finish the installation:
IREDMAIL_MIRROR='http://220.127.116.11' bash iRedMail.sh
Additional variables are:
A welcome message. Click on Yes.
A directory to store users mail. Take the default.
Preferred web server. It’s default to Nginx but I changed mine to Apache.
Preferred backend to store mail accounts. It defaulted to OpenLDAP but I changed mine to MariaDB.
Specify a password for MariaDB.
Specify it’s your mail domain. I made mine ‘bales.lan’.
Specify the mail domain administrator password.
Installing option modules. Be default included Roundcubemail, Awstats, iRedAdmin and Fail2ban. I also including SOGo.
Then ask you reviews your setting and to Continue. By default it says N; click on Y if you are ready.
It takes about 10 minutes to install on my computer and then ask you several question and I accepting the default.
The last screen; it tells you main email of the email@example.com, it’s password and to reboot. Make sure the password is correct or write it down, and then reboot.
Configuring the emails and using iRedMail
Add a new email by clicking on the Add button on the right and selecting on User. Put minimal a new mail address and the password, and then click on Add on the bottom. And then a little confusing after you click on Add. The username is created even though it says “Save Changes” at the bottom. You can also additional options and you can “Save Changes” those options.
Checking the new email password by going the https://ip-address-of-the-server/mail for RoundCubeMail.
Backup and Restore
Backup and Restore are extremely important. Check out this page for more information http://www.iredmail.org/docs/backup.restore.html