Ensure madmail starts after initial admin setup reboot, its name was changed

This commit is contained in:
Ana Custura 2026-03-31 15:20:48 +01:00
parent 1b7b0a5bc8
commit 9754f8fc74
2 changed files with 5 additions and 5 deletions

View file

@ -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")

View file

@ -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)
child.expect(pexpect.EOF)