From 4ba19b0031bb80aed08cc003de0822ced8e81b78 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 28 May 2026 22:52:08 +0200 Subject: [PATCH] test: set socket security for IMAP and SMTP to "TLS" in "dclogin" With "default" (like it was for SMTP) or not set (like it was for IMAP), both TLS and STARTTLS are tried. Trying STARTTLS against TLS port is going to timeout because in STARTTLS server talks first, but when connected to TLS port the server waits for TLS client hello and does not send anything. Should not actually matter in tests which connect successfully on the first try because implicit TLS is tried first. --- cmdeploy/src/cmdeploy/tests/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmdeploy/src/cmdeploy/tests/plugin.py b/cmdeploy/src/cmdeploy/tests/plugin.py index 00bb3ce7..6ca4a1a2 100644 --- a/cmdeploy/src/cmdeploy/tests/plugin.py +++ b/cmdeploy/src/cmdeploy/tests/plugin.py @@ -349,9 +349,9 @@ class ChatmailACFactory: qr = ( f"dclogin:{addr}" f"?p={password}&v=1" - f"&ih={domain}&ip=993" - f"&sh={domain}&sp=465" - f"&ic=3&ss=default" + f"&ih={domain}&ip=993&is=ssl" + f"&sh={domain}&sp=465&ss=ssl" + f"&ic=3" ) future = account.add_transport_from_qr.future(qr) else: