From 9754f8fc740aeffc0398dd173121e00e6adcedcb Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Tue, 31 Mar 2026 15:20:48 +0100 Subject: [PATCH] Ensure madmail starts after initial admin setup reboot, its name was changed --- change_manager.py | 2 +- install_madmail.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/change_manager.py b/change_manager.py index 52f1b66..7864fa6 100644 --- a/change_manager.py +++ b/change_manager.py @@ -157,7 +157,7 @@ def check_settings(raspap_installed: bool): if s == "enable_access_point" and raspap_installed: needs_restart = change_service_status("enable_access_point", "raspapd") or needs_restart if s == "enable_deltachat": - needs_restart = change_service_status("enable_deltachat", "maddy") or needs_restart + needs_restart = change_service_status("enable_deltachat", "madmail") or needs_restart if s == "butterbox_hostname": # change in /etc/hostname print("Writing new hostname to /etc/hostname") diff --git a/install_madmail.py b/install_madmail.py index 72c3fcd..cca36a0 100644 --- a/install_madmail.py +++ b/install_madmail.py @@ -13,9 +13,9 @@ def run_madmail_installer(): child.expect("Customize every setting") child.sendline("2") child.expect("Primary domain") - child.sendline(f"{butterbox_hostname}.locaL") + child.sendline(f"{butterbox_hostname}.local") child.expect("MX record") - child.sendline(f"{butterbox_hostname}.locaL") + child.sendline(f"{butterbox_hostname}.local") child.expect("Public IP address") child.sendline(app.config['BUTTERBOX_DEFAULT_IP']) child.expect("Additional domains") @@ -39,7 +39,7 @@ def run_madmail_installer(): child.expect("IMAP TLS port") child.sendline("993") child.expect("Allow insecure") - child.sendline("n") + child.sendline("y") child.expect("Enable chatmail endpoint for user registration") child.sendline("y") child.expect("Chatmail HTTP port") @@ -68,4 +68,4 @@ def run_madmail_installer(): child.sendline("n") child.expect("Enable logging for the server") child.sendline("y") - child.expect(pexpect.EOF) \ No newline at end of file + child.expect(pexpect.EOF)