Hello.
Faced a problem. The mail server I am using works with ssl\tls.
In line server = IMAPClient(host=imap4_server, use_uid=True,ssl=True) I add ssl=True
During the test run, everything works. But I make a docker image and run it on a docker host. I am getting the following error:
caused error "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:992)"
Please let me know if you have any ideas how to fix this. I will be grateful.