Unfortunately, it requires a fresh Ubuntu installation / separate instance.
I think it would be a perfect use case for Docker-based solution.
I think it would be a perfect use case for Docker-based solution.
https://github.com/mail-in-a-box/mailinabox/blob/master/Vagr...
I poked a bit and it appears that the setup script is interactive which complicates playing nicely with Docker somewhat. It installs nsd + postfix, rewrites config files in /etc and mucks with ufw. Could probably mimic some of this by mounting locally customized config files into the Docker container.