iRedMail Installation with MariaDB
The following instructions were performed on CentOS 7.2 with a minimal install.
iRedMail provides self hosting email with SOGo providing Exchange Active Sync operations.
Installation
Before proceeding make sure that when you ping the hostname and FQDN of your computer/server that the reply address is 127.0.0.1
yum -y update reboot
yum -y install vim wget bzip2 deltarpm yum-cron openchange rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
cd /usr/src wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.5-1.tar.bz2 bzip2 -dk iRedMail-0.9.5-1.tar.bz2 tar xvf iRedMail-0.9.5-1.tar rm -f iRedMail-0.9.5-1.t* cd iRedMail-0.9.5-1 bash iRedMail.sh
--> Wait. Looks like nothing is happening or broken but it is background processing.
--> Be patient. 10 minutes plus depending on CPU and internet speed.
Post Installation Information
Mailboxes | /var/mail |
Sensitive Info | /usr/src/iRedMail-0.9.5-1/config |
Post installation information | /root/iRedMail-x.y.z/iRedMail.tips |
URL's
Roundcube webmail | https://your_server/mail/ |
SOGo Groupware | https://your_server/SOGo |
Web admin panel | httpS://your_server/iredadmin/ |
Awstats | httpS://your_server/awstats |
SSL Certificates
I'm not going into specific details here. I use StartSSL certificates as they are free for private use.
Note: I have noticed that if you try going to your WEB server and you get a blank page, I found this occurs when the SSL certificate does not match the certificate name or SAN on the certificate.
Certificate path location.
/etc/pki/tls/certs/
openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/certs/sogo.key -out /etc/pki/tls/certs/sogo.csr
vi /etc/httpd/conf.d/ssl.conf
SSLCertificateFile /etc/pki/tls/certs/2_mail.myserver.com.crt SSLCertificateKeyFile /etc/pki/tls/certs/sogo.key SSLCACertificateFile /etc/pki/tls/certs/1_root_bundle.crt