Mailcow Setup Guide 2025 – Self Host a Secure Mailserver with Docker & Nginx on Linux!

Published at : 18 Dec 2025

Special Thanks to Verpex, our today's hosting partner!
Check out their VPS hosting offers:
👉 https://clients.verpex.com/aff/?a_aid=thesysadminhub

📢 Join the SysAdminHub Community (Discord)
Get support, ask questions, and connect with other sysadmins, homelabbers, and IT enthusiasts.
👉 Discord: https://discord.gg/jKPcMgeV4k

💙 Support the Channel on Patreon
Help me create high‑quality tutorials about Linux, Docker, self‑hosting, Mailcow, and IT infrastructure.
Become a Patron for exclusive benefits and behind‑the‑scenes content:
👉 Patreon: https://www.patreon.com/cw/TheSysAdminHubOfficial

📧 How to Set Up Your Own Mail Server with Mailcow (Docker Guide)
Welcome to my step-by-step guide on how to set up your own Mailcow mail server on a VPS!

In this video, I’ll walk you through the Mailcow installation using Docker and NGINX as a reverse proxy, show you how to configure DNS records (SPF, DKIM, DMARC), and secure your server with a wildcard SSL certificate via Cloudflare and Certbot.

💡 While many say running your own mail server is a bad idea — I show you how to do it the right way: secure, reliable, and self-hosted.

🔗 Affiliated Links
These are services I personally use and recommend. Using these links supports the channel at no extra cost to you.
📌 Verpex Hosting Fast, reliable hosting with global server locations, managed & unmanaged plans
👉 https://clients.verpex.com/aff/?a_aid=thesysadminhub

🧩 In this video:
• Why hosting a mail server can still be a good idea ✅
• Setting DNS records (Cloudflare) 🌐
• Installing Docker, Docker Compose & Mailcow 🐳
• NGINX reverse proxy setup 🔁
• Getting a wildcard SSL with Certbot & Cloudflare 🔐
• Configuring Mailcow, adding your first mailbox 📬
• Testing webmail, Outlook & mobile app compatibility 📱

🔐 More coming soon in this series:
• 📦 Mailpiler for compliant email archiving
• ✉️ Multi-domain support
• 🛡️ Advanced security & monitoring
• ⚙️ Deeper Mailcow configuration tips

🛠️ Want your own email address on a secure Mail Server?
I offer professional email hosting using Mailcow on my own server — perfect for businesses or individuals who want reliable, GDPR-compliant email without the technical hassle.
👉 Hire me on Fiverr to get your email domain hosted on my Mailcow server — secure, private, and professionally managed.
👉 https://www.fiverr.com/s/42p9Abd?utm_source=CopyLink_Mobile

📁 Download all commands and config files from this video:
👉 https://cloud.thesysadminhub.com/s/Zyk7k6fTP2nz8bb

📌 Helpful links from the video:
• Mailcow GitHub: https://github.com/mailcow/mailcow-dockerized
• DKIM/DMARC Testing: https://www.kitterman.com/dmarc_asst3.py
• SPF Checker: https://mxtoolbox.com/spf.aspx

👍 If you found this video helpful, please like, comment, and subscribe to support my small channel.

🔔 Don’t miss the next video where we integrate Mailpiler for automatic email archiving!
#Mailcow #DockerMailserver #SelfHostedEmail #LinuxServer #DockerCompose #Cloudflare #Certbot #EmailServerSetup #SelfHosting #NGINXReverseProxy #MailServerSecurity #FiverrServices #TheSysAdminHub

0:00 Intro
1:00 DNS Records
3:50 Mailcow Setup
13:19 NGINX Setup
15:10 Wildcard Certificate
20:08 Mailcow UI
28:18 Testmails
30:10 Outro