Sergio Manzi
Regular Pleskian
TITLE:
ACTUAL RESULT:
Roundcube "Connection to storage server failed" when securing mail with Let's Encrypt certificate
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk 17.8.10 (upgraded from 17.5.3#40)
CentOS 7.4.1708, Kernel 3.10.0-693
PROBLEM DESCRIPTION:CentOS 7.4.1708, Kernel 3.10.0-693
If the mail subsystem is protected with an LE certificate Roundcube IMAP connection fails.
STEPS TO REPRODUCE:- Start with a Postfix+Dovecot+Roundcube configuration where the mail subsystem is protected by the default self-signed certificate.
- You can log into webmail, without any issue. Logout from it.
- Now apply for an LE certificate and apply it to your mail subsystem (Tools & Settings -> SSL/TLS Certificates -> Certificate for securing mail)
- Try to login to webmail again
You can't log in and a message appears on the Webmail login page: "Connection to storage server failed"
In dovecot log you will find an error message of this kind of diagnostic:
TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48,
EXPECTED RESULT:In dovecot log you will find an error message of this kind of diagnostic:
TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48,
Be able to log into webmail, no error being issued
ANY ADDITIONAL INFORMATION:Apparently it is a problem with Roundcube not recognizing the LE certificate.
The issue can be bypassed by modifying /usr/share/psa-roundcube/config/defaults.inc.php
... so that the peer is not verified.
Best solution would probably be to leave 'verify_peer' set and have Roundcube to accept the Let's Encrypt certificate
P.S.: for further information you can read this thread: Roundcube "Connection to storage server failed"
The issue has been also independently replicated by @Mark Muyskens
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:The issue can be bypassed by modifying /usr/share/psa-roundcube/config/defaults.inc.php
Code:
# diff defaults.inc.php.bak defaults.inc.php
165c165
< 'verify_peer' => true,
---
> 'verify_peer' => false,
... so that the peer is not verified.
Best solution would probably be to leave 'verify_peer' set and have Roundcube to accept the Let's Encrypt certificate
P.S.: for further information you can read this thread: Roundcube "Connection to storage server failed"
The issue has been also independently replicated by @Mark Muyskens
Confirm bug
Last edited: