Symptoms: When trying to log into RoundCube mail client, I get the error message: Connection to storage server failed. I also can’t log into the MiaB admin pages (get Something went wrong, sorry. message). And, email clients are not showing new mail.
The server reports in /var/log/roundcubemail/errors.log:
[19-Aug-2023 18:02:56 America/New_York] PHP Warning: stream_socket_client(): Unable to connect to ssl://localhost:993 (Connection refused) in /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_imap_generic.php on line 1059 [19-Aug-2023 18:02:56 -0400]: <f4qogtan> IMAP Error: Login failed for USER@DOMAIN.com against localhost from REMOTE_IP. Could not connect to ssl://localhost:993: Connection refused in /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube_imap.php on line 211 (POST /mail/?_task=login&_action=login)
The server reports in /var/log/roundcubemail/carddav_http.log:
cURL error 60: SSL certificate problem: self-signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://DOMAIN.com/cloud/remote.php/dav/addressbooks/users/USER@DOMAIN.com/contacts/
The output of openssl s_client -connect localhost:993 is:
40F7386A317F0000:error:8000006F:system library:BIO_connect:Connection refused:../crypto/bio/bio_sock2.c:125:calling connect() 40F7386A317F0000:error:10000067:BIO routines:BIO_connect:connect error:../crypto/bio/bio_sock2.c:127: 40F7386A317F0000:error:8000006F:system library:BIO_connect:Connection refused:../crypto/bio/bio_sock2.c:125:calling connect() 40F7386A317F0000:error:10000067:BIO routines:BIO_connect:connect error:../crypto/bio/bio_sock2.c:127: connect:errno=111
I executed ~/mailinabox/management/status_checks.py and discovered this:
✖ Dovecot LMTP LDA is not running (port 10026). ✖ Mail-in-a-Box Management Daemon is not running (port 10222). ✖ IMAPS (dovecot) is not running (port 993). ✖ Mail Filters (Sieve/dovecot) is not running (port 4190).
This is the second time that I find the system in this state, all since I upgraded to v63. In all my many years of running MiaB, I’ve never seen this before. Any ideas of what’s going on? The initial message is confusing, as there are no “storage server” (i.e., disk) issues at all.
After rebooting the server everything looks fine, including the “openssl s_client -connect localhost:993” command suggestion from @KiekerJan in the Can't Access Box: Connection to Storage Server Failed After Upgrade - #22 by jtwooton thread.
Noteworthy is that the server appears under hacking attacks via both ssh and IMAP connections.