How to Set up iRedMail Server on a Linux ECS Server

An Overview of iRedMail

  • It is constituted of open source packages mostly.
  • It incorporates a secure transport layer as a default and supports HTTPS webmail as well as SMTP/IMAP.
  • It allows you to create virtually unlimited mailboxes using a simple-to-use panel.
  • You have plenty of option for mail storage including PostgreSQL, OpenLDAP as well as MySQL
  • Postfix SMTP server
  • Dovecot IMAP
  • Apache
  • Nginx
  • iRedAPD Postfix policy server
  • OpenLDAP, ldapd
  • MySQL/MariaDB, PostgreSQL
  • Amavised-new
  • SpamAssassin
  • ClamAV
  • Roundcube webmail
  • SOGo Groupware
  • Fail2ban
  • Awstats

Requirements for Installation

sudo apt update
sudo apt upgrade

The Installation Process

FQDN Setup

hostname -f
sudo nano /etc/hostname
sudo hostnamectl set-hostname
sudo nano /etc/hosts localhost
hostname -f

MX Record

Record Type    Name      ValueMX             @
Record Type    Name     ValueA              mail     Server-IP

SELinux Configuration

sudo nano /etc/selinux/config

iRedMail Download

tar xjf iRedMail-0.9.8.tar.bz2
sudo rm -r iRedMail-0.9.8.tar.bz2

iRedMail Installation

cd iRedMail-0.9.8

Steps to Follow

sudo ufw enable
sudo ufw reload
systemctl reboot
sudo nano /root/iRedMail-0.9.8/

Advantages of Using iRedMail

  • There are no setup costs, save for the ECS costs, for a fully fledged and featured mail server, that is, unless you want the enterprise edition.
  • iRedMail is compatible most Linux distributions making it very accessible. You can deploy it in Ubuntu, Red Hat, CentOS, Debian, Free BSD as well as Open BSD.
  • It comes pre-packaged with calendar (CalDAV) and contact (CardDAV) services out of the box.
  • It is both easy to deploy, unsophisticated and does not need specialized maintenance.
  • You can create virtually unlimited mail accounts on your server.
  • You can choose your backend from up to four different options (OpenLDAP, MySQL, MariaDB, and PostgreSQL).
  • Integrated features for mail restrictions
  • Integrates a feature for the sender and receiver throttling
  • Integrates security features such as anti-spam ware and anti-malware.
  • Comes pre-packaged with Webmail’s mail management tools such as AJAX, vacations, filters and address books.
  • You can easily port or save a copy of your deployed instance in a reproducible server setup.
  • Having your own mail server is very advantageous for privacy since all data is within your control.
  • iRedMail uses open source components that are both free to use and updated regularly. The vendors run routine fixes and upgrades and are independent of the iRedMail project.
  • Finally, it is compatible with both virtualized environments such as KVM, HV, VMware or non-virtualized environments and for both 32-bit and 64-bit distributions.


Original Source




Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

“Static Site Generator”- An ultimate solution.

Simple Operating System

Consume Secrets using Kubernetes Admission controllers :Part-2

How to get code from an older version of your app on Heroku.

Ansible Role : Some Pointers

Take 5 minutes to better understand the “You have one or more certificates in your Salesforce org…

How to deploy and test system chaincodes on Hyperledger Fabric effectively

Gaining confidence on Linux and Git: the #IBelieveInDoing campaign.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:

More from Medium

Multi-architecture container images for Amazon ECR

Setting up Grafana easiest way possible : Grafana Series- Part 2.

Securely Connect to Redis and Utilize Benchmark Tools

Continuous Build and Deployment of Go Applications with Google Cloud Build