Chatmail server docker deployment

Hello,

I’m looking to deploy a chatmail server. Since it would fit the rest of the stuff deployed on my private-projects machine, I would like to deploy in form of a container, instead of doing it directly on the machine. Has someone done this already, perhaps?

I haven’t found a ready made image or Dockerfile for it. If I just run the instructions from GitHub - deltachat/chatmail: chatmail service deployment scripts and docs inside a Dockerfile, and run the resulting container, would that be likely to work? Or is there some advanced stuff going on in the background that I need to be aware of that I would need to manually expose from the docker side?

Sorry for the rather fuzzy question. This project just looks really interesting, and the chatmail repo seems to make it easy to setup. I was hoping to try it out on my test-server without risking to mess up the other things setup there with my limited sysadmin skills, and containers are my go-to for that.

Greetings,
Indriði

3 Likes

Thanks for your interest. IIRC, last time a docker chatmail image was discussed the following was noted:

  • Chatmail deployment uses various UID/GID permissions for postfix/dovecot/etc. … with Docker this needs to happen with the docker-host. For someone who is routinely doing docker, it might be easier but note that mailcow puts postfix and dovecot and cron and other services into separate docker containers but then a lot of wiring together needs to be happen.

  • Ports/networking would need to be configured on the host so that the host exposes SMTP/IMAP properly.

Maybe instead of docker, some other virtualization tech could be easier, where you can run a debian11+chatmail setup and run it as a VM image? In either case, feel free to experiment :slight_smile:

Thanks for the reply. I think the UID/GID stuff can be solved - have seen some scripts that take care of that inside the Dockerfile.
But I need to look into how to properly expose the SMTP/IMAP ports - I’m running most stuff behind a traefik reverse proxy, and have until now only exposed websites through it.

2 Likes

i am also running most of my stuff behind traefik and have the same question.
Did anyone make progress on a docker-compose setup for chatmail?

Seems that Feld is currently trying to dockerize things FriedCheese

Did anyone nailed it using Docker?

It’s a tad complex but feasible, next few months pending work/kids ill chip away at - Setup container version · Issue #1 · adonm/chatmail-server · GitHub is my notes so far (I think I’ll tailor existing pyinfra stuff to work on a chunky systemd capable debian 12 container for simplicity)

My goal would be getting a variant easy to run in minikube / devcontainers and rebuilt weekly on github infra to make self hosting a bit easier (especially eg changing storage / domains)

3 Likes

I just stumbled on to this one - GitHub - trufae/delta-docker-relay: WIP: Setup your Delta chatmail with Docker

Not tested by me though…

2 Likes

I plan on trying the same thing.. i wonder if i will be able to make it work??

Any input would be appreciated.

Actually he made Chef cookbook.
https://github.com/feld/chatmail-cookbook

[ https://redd.it/1ka0w7l ]

There is dockerized mailcow, which can work as server for DC, but it’s not recommended.

And there is maddy [ Frequently Asked Questions - maddy ], which has some issues but probably may be used for DC. Seems like it’s dockerized.
Feature request: Quotas and CONDSTORE for Delta Chat · Issue #727 · foxcpp/maddy · GitHub

Sure, chatmail docker image would be much appreciated.
So this is a feature request }:-)

1 Like

I was able to deploy chatmail relay with Docker on my RasberryPI

Here is github repo GitHub - cyberlis/chatmail-relay-docker: Dockerfile and docker-compose for chatmail relay deployment

@r10s maybe it can be a starting point to add docker deployment support to main chatmail relay repo

6 Likes