fix install script for madmail v0.46.0

This commit is contained in:
n8fr8 2026-05-07 21:17:51 -04:00
parent 31a915e1ad
commit 5b418add4d

View file

@ -9,7 +9,7 @@ def run_madmail_installer():
butterbox_hostname = settings["butterbox_hostname"]
cmd = f"sudo ../madmail/madmail install"
child = pexpect.spawn(cmd, encoding = "utf-8")#
child = pexpect.spawnu(cmd)
child.logfile = open("install_log.txt", "w")
child.expect("Customize every setting")
child.sendline("2")
@ -27,8 +27,8 @@ def run_madmail_installer():
child.sendline("")
child.expect("TLS mode")
child.sendline("self_signed")
##child.expect("Disable TLS verification for clients")
##child.sendline("n")
child.expect("Disable TLS")
child.sendline("y")
child.expect("SMTP port")
child.sendline("25")
child.expect("Submission port")
@ -39,9 +39,7 @@ def run_madmail_installer():
child.sendline("143")
child.expect("IMAP TLS port")
child.sendline("993")
child.expect("Allow insecure")
child.sendline("n")
child.expect("Enable chatmail endpoint for user registration")
child.expect("Enable chatmail")
child.sendline("y")
child.expect("Chatmail HTTP port")
child.sendline("8081")