Replaced automx by Modoboa autoconfig service

This commit is contained in:
Antoine Nguyen
2025-09-16 18:12:11 +02:00
parent 56be1be372
commit fc81c04220
10 changed files with 9 additions and 222 deletions

View File

@@ -59,20 +59,11 @@ class Nginx(base.Installer):
def post_run(self):
"""Additionnal tasks."""
extra_modoboa_config = ""
if self.config.getboolean("automx", "enabled"):
hostname = "autoconfig.{}".format(
self.config.get("general", "domain"))
self._setup_config("automx", hostname)
extra_modoboa_config = """
location ~* ^/autodiscover/autodiscover.xml {
include uwsgi_params;
uwsgi_pass automx;
}
location /mobileconfig {
include uwsgi_params;
uwsgi_pass automx;
}
"""
hostname = "autoconfig.{}".format(
self.config.get("general", "domain"))
self._setup_config("autoconfig", hostname)
if self.config.get("radicale", "enabled"):
extra_modoboa_config += """
location /radicale/ {