On my docker mail server, I experienced the following problem connecting to my IMAP server:
# Telnet authentication
$ telnet 192.168.59.103 143
Trying 192.168.59.103...
Connected to 192.168.59.
There are a lot of tutorials to generate a SSL certificate, like this one, or this other one. But you will see that there are a few steps to respect in order to