Recently I’ve started self-hosting (well, by self-hosting I mean on my own Hetzner server) many of my own projects to cut down on excessive cloud costs.
One of the tools I use to still be able to prototype quickly with all the comfort of automated deployments is Coolify, a really cool and easy to use open-source Heroko/Netlify/Vercel-type platform.
Using it, I quickly was able to host an instance of Infisical, an open source secrets manager, Directus an open-source alternative to contentful, a few of my applications and, why you’re probably here, Stalwart - my first introduction to self-hosting a mail server.
It took me a few hours over a couple of days to get it set up, so I thought I’d write this post helping out anyone else wanting to do the same.
The problem
Stalwart (or any mail server, for that matter) requires quite a bit of set up before you can start sending/receiving e-mails. …