Production config for madmail

This commit is contained in:
Ana Custura 2026-04-01 09:46:18 +01:00
parent 1451e90976
commit 270c102d27
2 changed files with 3 additions and 3 deletions

View file

@ -357,7 +357,7 @@ def deltachat_credentials():
username = gen_username() username = gen_username()
password = gen_password() password = gen_password()
hostname = f"{get_setting('butterbox_hostname')}.local" hostname = f"{get_setting('butterbox_hostname')}.local"
dclink = f"dclogin:{username}@{hostname}/?p={password}&v=1&ih={ip}&ip=143&sh={ip}&sp=25&is=plain&ss=plain&sc=3" dclink = f"dclogin:{username}@{hostname}/?p={password}&v=1&ih={ip}&ip=993&sh={ip}&sp=465&ic=3&ss=default"
img = qrcode.make(dclink) img = qrcode.make(dclink)
file_object = io.BytesIO() file_object = io.BytesIO()
img.save(file_object, 'PNG') img.save(file_object, 'PNG')

View file

@ -27,7 +27,7 @@ def run_madmail_installer():
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 verification for clients")
child.sendline("y") child.sendline("n")
child.expect("SMTP port") child.expect("SMTP port")
child.sendline("25") child.sendline("25")
child.expect("Submission port") child.expect("Submission port")
@ -39,7 +39,7 @@ def run_madmail_installer():
child.expect("IMAP TLS port") child.expect("IMAP TLS port")
child.sendline("993") child.sendline("993")
child.expect("Allow insecure") child.expect("Allow insecure")
child.sendline("y") child.sendline("n")
child.expect("Enable chatmail endpoint for user registration") child.expect("Enable chatmail endpoint for user registration")
child.sendline("y") child.sendline("y")
child.expect("Chatmail HTTP port") child.expect("Chatmail HTTP port")