diff --git a/install_madmail.py b/install_madmail.py index 167d8fd..626bc71 100644 --- a/install_madmail.py +++ b/install_madmail.py @@ -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")