Use Docker-MailServer to Build Self-hosted Mail Server

It’s kinda cool to have your mailbox with your own domain, such as [email protected]. Meanwhile, as long as you are the owner of your domain, the easiest approach is to have a third party mail server with a custom domain configuration. Most of the services charge a little bit, like Google Workspace, Amazon Workmail, etc. It doesn’t matter but more importantly, you don’t have the absolute privilege of the managed services. Actually I tried to build and deploy a self-hosted mail server in 2019. Due to my very limited knowledge, it failed. With the timing of ChatGPT suddenly becoming popular, I rediscovered my enthusiasm for dev recently. So I wanna retry it and this time it was a one-shot success.

This is a companion discussion topic for the original entry at