[OUTDATED & UPDATED] How to install Stalwart and HAProxy (existing Caddy & Cloudflare) in Docker

Опубликовано: 13 Май 2026
на канале: JHammaH
1,116
23

Hey everyone! Josh here with another tutorial. In this one, I'll be showing you how to completely install a Stalwart Mail Server and protect it with HAProxy reverse proxy inside Docker Desktop on a Windows 11 machine! I also go over how to do with with an existing instance of Caddy reverse proxy running as well as how to make it work with Cloudflare managing your domain!

~ IMPORTANT NOTE ~ Stalwart changed their image name after this tutorial was created but I updated the files that you can download so they will all still work. There are a few parts that just look a little different.

💾 Official Git page and downloads ► https://git.jhammah.com/jhammah/mail-...

────────────────
── ▼ DETAILS ▼ ──

👉🏼 Wanna support the channel? Buy me a cup of coffee! ► https://tip.jhammah.com

🌟 Become A Patron! ► coming soon

💌 Email Address ► [email protected]

📸 My Video Editing Channel ►    / scrapyardfilms  

🎵 My EVERYTHING ELSE Channel ►    / crahenvlog  

🎮 My Gaming Channel ►    / scrapyardplays  


───────────────────
── ▼ TIMESTAMPS ▼ ──

00:00 Intro & Prerequisites
01:54 Installing HAProxy, Stalwart, and Roundcube
02:27 roundcube.yml Overview
03:10 Launch containers
05:19 docker-compose.yml Overview
07:26 stalwart.yml Overview
08:21 roundcube.yml Recap
08:51 Stalwart Admin UI First Logon
09:56 Configure SMTP Settings
12:26 Configure Host & Reverse Proxy Routing
12:37 Cloudflare CNAME Records
13:19 Caddyfile Overview
14:14 haproxy.cfg Overview
17:49 Stalwart config.toml File Changes
19:53 Configure SSL Certificate & ACME
21:01 Configure Domain & DNS Records
23:23 Testing Mail flow
26:00 Final Thoughts


─────────────────────────
── ▼ SUBSCRIBER GOALS ▼ ──

Help me reach 1k subscribers!
☑️ 1 ► Got 1 subscriber!
🔲 500 ► Working towards 500!


────────────────────────
── ▼ AUDIO IN THIS VIDEO ▼ ──
🎵


────────────────
── ▼ Octothorp's ▼ ──

#stalwart #docker #dockerdesktop #caddy #haproxy #cloudflare #selfhosting

────────────────
── ▼ Disclaimers ▼ ──

All content produced and uploaded to this YouTube channel is copyrighted by JHammaH or properly credited otherwise. Any unauthorized reproduction of this content is subject to copyright infringement so be smart and don't steal other people work. Also some links I provide might be affiliate links. This means if you purchase anything using my links, I'll get a small contribution which will help sustain the channel and there is NO additional cost if you use my links so it's a win-win :)