common.topBar.messagecommon.topBar.ctatop-bar-close-icon
articleSlug.creditBanner.imgAltarticleSlug.creditBanner.cta

How to Set Up iRedMail on the Latest Ubuntu Server (Step by Step Guide)

tutorials
How to Set Up iRedMail on the Latest Ubuntu Server (Step by Step Guide)

Looking to run your own mail server? iRedMail is a powerful open-source solution for setting up a secure and full-featured mail system. In this guide, we’ll walk you through the process of installing iRedMail on the latest version of Ubuntu Server.


✅ What You’ll Need Before Starting

Before we dive in, make sure you’ve got the following:

  • A fresh Ubuntu Server (latest version) installed

  • Static IP address assigned to the server

  • A user with sudo privileges

 

🔄 Step 1: Update Your System

Keeping your system up-to-date is a must before installing any major software. Run:

sudo apt update && sudo apt upgrade

 

🌐 Step 2: Set Your Hostname

Set the hostname to reflect your mail domain. For this tutorial, we’ll use mail.example.com.

sudo hostnamectl set-hostname mail.example.com

Then update your /etc/hosts file:

sudo nano /etc/hosts

Add this line (replace <IP-address> with your server’s actual IP):

<IP-address> mail.example.com mail

Save and exit the file.

 

📦 Step 3: Download & Install iRedMail

Get the latest version of iRedMail from GitHub:

wget https://github.com/iredmail/iRedMail/archive/1.4.2.tar.gz

Extract the contents:

tar -zxvf 1.4.2.tar.gz

cd iRedMail-1.4.2

Make the installer executable:

chmod +x iRedMail.sh

Run the installation script:

sudo bash iRedMail.sh

Follow the interactive prompts to finish the setup.

 

🔧 Step 4: Final Mail Server Configuration

Once installation is complete, head to your admin panel at:

https://mail.example.com/iredadmin

Now, configure your DNS records (like MX, SPF, DKIM, and DMARC) and start adding your email domains and users.

🎯 Wrapping Up

That’s it! You’ve now installed and configured a fully functional mail server with iRedMail on Ubuntu. You’re in control of your email data, security, and performance.

🧠 Pro Tip: Make Hosting Easy with Cloudblast

Want an easy way to self-host, get static IPs, and control your data with zero hassle? Check out Cloudblast – the go-to solution for developers who want full control over their infrastructure.

Let me know if you want the same content optimized for a blog post, social media snippet, or email newsletter.