I get the following response when attempting to connect to imap server, using tls and self-sighned certificate.
Connection error: [CLOSED] IMAP connection broken (server response)
the Imap open is the following
$mailbox = new ImapMailbox('{mail.NNNNNN.com:143}', 'YYY@NNNN.com', 'IIIII');
I can't really understand from where this error is coming from , if though i installed locally the server certificate it still fails.
i added {mail.NNNNN.com:143}/INBOX
but it still doesnt seem it can connect.
after setting up stunnel it logs the following information