📧 Setup SnappyMail — Fast, Modern Webmail for Any IMAP Server
Deploy SnappyMail on Ubuntu with Docker — a fast, lightweight, good-looking webmail client that connects to any IMAP/SMTP server and gives your mailboxes a modern browser interface, on port 8226.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/snappymail/snappymail-ubuntu.sh
chmod +x snappymail-ubuntu.sh
sudo bash snappymail-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/snappymail/snappymail-ubuntu.sh
2 Make it Executable
chmod +x snappymail-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts SnappyMail on port 8226, storing its data in a mounted volume. On first start it generates an admin password saved to a file inside that data folder.
sudo bash snappymail-ubuntu.sh
4 Open the Admin Panel and Add Your Mail Domain
Retrieve the admin password from the data folder, open the admin panel at /?admin to configure your IMAP/SMTP server, then log in to webmail with any account on it:
http://<your-server-ip>:8226/?admin
Ports Used
| Port | Purpose |
|---|---|
| 8226 | Webmail (host → container 8888) |
| 8226/?admin | Admin panel — configure your mail domain here |
| admin password | Generated in a file under the data folder |