🎬

Video tutorial coming soon.

✉️ Setup Mailu — Simple Email Server

Deploy Mailu, a simple yet full-featured email server suite. Includes webmail, admin interface, spam filtering, and all standard mail protocols — configured via a web setup utility.

⚠️ This script is provided for demo and testing purposes only.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along.

Automated install script — Mailu email server with webmail and admin UI.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailu/mailu-ubuntu.sh
chmod +x mailu-ubuntu.sh
sudo bash mailu-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

The script installs Docker, generates the Mailu environment configuration for your domain, and starts the full email server stack.

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailu/mailu-ubuntu.sh
chmod +x mailu-ubuntu.sh
sudo bash mailu-ubuntu.sh

2 Access Admin Panel

Open your browser and navigate to the Mailu admin panel to create your first admin account:

https://YOUR-DOMAIN/admin

3 Configure DNS Records

Add the required DNS records for your domain: MX record pointing to your server, SPF TXT record, DKIM key (found in admin panel), and DMARC policy record.

4 Add Mailboxes and Connect Clients

Create user mailboxes in the admin panel. Users can access their email via the Roundcube webmail at /webmail or configure IMAP/SMTP in any email client.

Ports Used

PortProtocolPurpose
25TCPSMTP (Receiving Mail)
143TCPIMAP
80/443TCPWebmail & Admin UI
587TCPSMTP Submission
465TCPSMTPS (SSL)
993TCPIMAPS (SSL)

Files Location

/root/docker/mailu/docker-compose.yml