Don't try TLS with SSL connections
This commit is contained in:
parent
0f0bddedc9
commit
45c1647a92
@ -58,6 +58,7 @@ def is_authenticated(user, password):
|
||||
|
||||
server_is_local = (IMAP_SERVER == "localhost")
|
||||
|
||||
if not connection_is_secure:
|
||||
try:
|
||||
connection.starttls()
|
||||
log.LOGGER.debug("IMAP server connection changed to TLS.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user