magma icon indicating copy to clipboard operation
magma copied to clipboard

Is there any docker compose environment for mail server

Open vinkvii opened this issue 4 years ago • 7 comments

Hi I was looking to setup this mail server in docker. Do we have any plan to document it.

Thanks

vinkvii avatar Apr 28 '20 17:04 vinkvii

@vinkal I started the robox project to create VMs / containers for just that purpose. And while I've gotten the VMs working (mostly), they are currently designed to spin up a sandbox/dev/test environment, and not a production install. And while I've been building the docker images for awhile, I haven't tested/finished them. There are a couple of tweaks that are missing to get it working, like detecting/starting the dependent services. And most importantly either a Q/A install script (see #132) for configuration and/or sample Dockerfiles showing how to do the same.

If you took on the task, I'd welcome a pull request.

ladar avatar May 01 '20 02:05 ladar

There is another unoffical magma container besides the lavabit one, which might work better for you.

ladar avatar May 01 '20 02:05 ladar

There is another unoffical magma container besides the lavabit one, which might work better for you.

Can you report on which one that is, please?

Is it this one? https://github.com/ba0f3/docker-magma/

robrecord avatar Feb 16 '22 12:02 robrecord

Hi @robrecord @vinkal ... I'd always intended to go back and improve the images pushed to Docker Hub and Quay for Magma. But I don't use containers all that much (I prefer VMs for what I typically need) so I never acquired the skills to make the obvious improvements.

With that, those images are generated from scratch (install media), every 1 to 3 weeks as part of the Roboxes project. Which means if you have the skills, please submit a pull request that repo with the changes need to make the container images more useful.

Notable things I haven't looked into, are how to launch the MySQL, memcached, and Postfix daemons automatically, whenver a container image is launched/resumed.

I also figured I'd follow the pattern used by the Robox VM images for magma, automatically build magma, and run the unit tests a starting point. But I wanted, long term, if it was possible to create a simple setup script that queries the user for info, so they can easily get it setup for their own domain, etc. But again, I don't know to do that, and have never found the time to learn.

ladar avatar Mar 31 '22 12:03 ladar

When you say "queries the user for info", do you mean something like Mailu's interactive setup webpage?

Lrss avatar Mar 31 '22 14:03 Lrss

Like I said, I don;t have experience with what users expect in the world of Docker. Having to access a web page seems tricky. I was actually thinking it would create a shell connection, and run a Bash or Python script to ask the user some basic questions, like their domain name, password etc.

ladar avatar Mar 31 '22 19:03 ladar

The way Mailu does is definitely a novelty way of doing it. The conventional way is to set environmental variables directly in the docker-compose.yml, for projects with few settings. And in more customizable projects (as this one) it is preferred to declare it in a separate .env-file.

Lrss avatar Mar 31 '22 21:03 Lrss