From 536cb7a8ef98858a096b77ab9650d407ee37e0a4 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 22 Nov 2023 12:30:59 +0100 Subject: [PATCH] Fix protocol conversion and enable STARTTLS for IMAP retrievers --- imageroot/actions/import-module/40migration | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imageroot/actions/import-module/40migration b/imageroot/actions/import-module/40migration index d9b4a02..e559403 100755 --- a/imageroot/actions/import-module/40migration +++ b/imageroot/actions/import-module/40migration @@ -63,8 +63,8 @@ for properties in getmail_properties: # convert getmail protocol to imapsync protocol if properties['Retriever'] == "SimplePOP3Retriever": remoteport = "143" - security = "" - # Pop3 to IMAP not sure it will work, we disable + security = "--tls1" + # Pop3 to IMAP STARTTLS not sure it will work, we disable cron = "" elif properties['Retriever'] == "SimplePOP3SSLRetriever": remoteport = "993" @@ -73,7 +73,8 @@ for properties in getmail_properties: cron = "" elif properties['Retriever'] == "SimpleIMAPRetriever": remoteport = '143' - security = '' + # IMAP to IMAP STARTTLS + security = '--tls1' cron = properties['Time'] elif properties['Retriever'] == "SimpleIMAPSSLRetriever": remoteport = '993'