Closed Orteko closed 4 days ago
After investigation, STARTTLS is automatically attempted via the upstream IMAP code if it is advertised by the mailserver with no apparent way of disabling it so there will be no workaround possible in my scenario with this setup so closing now.
mailsuite.imap:
... try: if not ssl and b"STARTTLS" in self.capabilities(): logger.info("IMAP server supports STARTTLS ... activating now") self.starttls(ssl_context=ssl_context) ...
Edit - it looks like STARTTLS is automatically attempted via the upstream IMAP code if it is advertised by the mailserver with no apparent way of disabling it so there will be no workaround possible in my scenario with this setup so closing now.
We have an older internal mailserver that whilst it supports SSL, appears to not have modern enough routines to work with the IMAP connection library.
Given it was internal, we were able to enable plaintext - however, even with ssl = False, parsedmarc still attempts to be using or attempting to automatically upgrade to SSL/STARTTLS as we get an identical error.
I'm not seeing any obvious mention of automatic STARTTLS negotiation or any other ssl related options that could affect this?
The mailsuite IMAP code looks like it should be logging
Connecting to IMAP over plain text
when SSL is disabled, however i'm not seeing this logged anywhere which is odd.See the following for example log output & configuration:
Config excerpt:
Logs: