Video tutorial coming soon.
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.
Grab the automated bash script from GitHub to follow along.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailu/mailu-ubuntu.sh
chmod +x mailu-ubuntu.sh
sudo bash mailu-ubuntu.sh
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
Open your browser and navigate to the Mailu admin panel to create your first admin account:
https://YOUR-DOMAIN/admin
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.
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.
| Port | Protocol | Purpose |
|---|---|---|
| 25 | TCP | SMTP (Receiving Mail) |
| 143 | TCP | IMAP |
| 80/443 | TCP | Webmail & Admin UI |
| 587 | TCP | SMTP Submission |
| 465 | TCP | SMTPS (SSL) |
| 993 | TCP | IMAPS (SSL) |
/root/docker/mailu/docker-compose.yml