mirror of
https://github.com/chatmail/relay.git
synced 2026-06-10 13:41:08 +00:00
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.
This commit is contained in:
@@ -349,9 +349,9 @@ class ChatmailACFactory:
|
|||||||
qr = (
|
qr = (
|
||||||
f"dclogin:{addr}"
|
f"dclogin:{addr}"
|
||||||
f"?p={password}&v=1"
|
f"?p={password}&v=1"
|
||||||
f"&ih={domain}&ip=993"
|
f"&ih={domain}&ip=993&is=ssl"
|
||||||
f"&sh={domain}&sp=465"
|
f"&sh={domain}&sp=465&ss=ssl"
|
||||||
f"&ic=3&ss=default"
|
f"&ic=3"
|
||||||
)
|
)
|
||||||
future = account.add_transport_from_qr.future(qr)
|
future = account.add_transport_from_qr.future(qr)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user