Video coming soon…
⚠️ Always review any script before running it on your server. Test in a staging environment first.
📦 Resources & Setup Scripts
Before starting, please make sure to grab the required scripts from our GitHub repository to follow along with the video easily.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/refs/heads/main/email/docker-mailserver/docker-mailserver-ubuntu.sh
chmod +x docker-mailserver-ubuntu.sh
sudo bash docker-mailserver-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/refs/heads/main/email/docker-mailserver/docker-mailserver-ubuntu.sh
2 Make it Executable
chmod +x docker-mailserver-ubuntu.sh
3 Run the Installer
sudo bash docker-mailserver-ubuntu.sh
4 Access the Web UI
# No web UI — administer via the setup CLI:
docker exec -it mailserver setup email add user@yourdomain.com
docker exec -it mailserver setup config dkim
Ports Used
| Port | Purpose |
|---|---|
| 25 | SMTP (server-to-server — receiving) |
| 587 | Submission (STARTTLS — clients/apps) |
| 465 | Submission (implicit TLS) |
| 993 | IMAPS (mail clients) |
| 143 | IMAP (STARTTLS, optional) |
