Dear Maintainer,
I try to use php7.4-imap to connect with a imap server which supports only starttls over port 143 and supports only TLS 1.2 or newer.
php -r '$user="username";$pass="Password";$mbox=imap_open( "{server.example.com:143/imap/tls/novalidate-cert}", $user, $pass, OP_DEBUG);echo ($mbox !== false)?"OK":imap_last_error();'
This fails with:
"PHP Warning: imap_open(): Couldn't open stream" und "TLS/SSL failure for server.example.com: SSL negotiation failed".
According to [1], the reason is the old libc-client2007e, which can not handle newer TLS Versions on startttls.
[1] https://bugs.php.net/bug.php?id=76928