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