Can't connect to host "ssl://localhost:993

Hi,

I have just installed FRESH Cyberpanel on a new server and created an email. When I try to login to my email

https://panel.mydomain.com:8090/snappymail/index.php

I receive the following error:

Can’t connect to server

Server message: Can’t connect to host “ssl://localhost:993”

Based on the error message and logs, it seems that there is an issue with the SSL/TLS configuration of the Dovecot IMAP/POP3 server. The error “SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol” suggests that the server and client are unable to negotiate a common SSL/TLS protocol version.

I set the hostname as panel.mydomain.com during CyberPanel setup, but the dovecot certificate is issued for 2834902-yf13623.twc1.net, there’s a mismatch that needs to be addressed. This mismatch will cause the same browser warnings and connection issues as a self-signed certificate.

@usmannasir Why CyberPanel issued a self-signed DOVECOT certificate for hostname different from the hostname I set in Onboarding wizard? I have just tried to run Email Debugger plugin but it gives no errors. I also tried to reset my mail configuration but the same issue remains.

openssl x509 -in /etc/dovecot/private/dovecot.pem -text -noout
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            70:62:a8:8c:a5:1a:9d:1b:1c:00:19:59:df:e3:2e:21:f2:1b:01:e0
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN = 2834902-yf13623.twc1.net
        Validity
            Not Before: Apr 24 18:55:49 2024 GMT
            Not After : Apr 22 18:55:49 2034 GMT
        Subject: CN = 2834902-yf13623.twc1.net
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:e8:2c:49:af:7a:ff:

My OS: Ubuntu 22.04.4 LTS

Cyberpanel Current Version:

Current Version:  
2.3
Build:  
5
Current Commit:  
83fa3a0aa8dfecae7912d0f17b7ea655210f3bba
Latest Version:  
2.3
Latest Build:  
5
Latest Commit:  
83fa3a0aa8dfecae7912d0f17b7ea655210f3bba

PS:

sudo systemctl status dovecot
● dovecot.service - Dovecot IMAP/POP3 email server
     Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2024-05-02 07:45:24; 2h 16min ago
       Docs: man:dovecot(1)
             https://doc.dovecot.org/
   Main PID: 825 (dovecot)
     Status: "v2.3.16 (7e2e900c1a) running"
      Tasks: 5 (limit: 2220)
     Memory: 6.6M
        CPU: 160ms
     CGroup: /system.slice/dovecot.service
             ├─ 825 /usr/sbin/dovecot -F
             ├─ 911 dovecot/anvil
             ├─ 912 dovecot/log
             ├─ 913 dovecot/config
             └─2879 dovecot/stats

May 02 07:45:23 2834902-yf13623.twc1.net systemd[1]: Starting Dovecot IMAP/POP3 email server...
May 02 07:45:24 2834902-yf13623.twc1.net dovecot[825]: master: Dovecot v2.3.16 (7e2e900c1a) starting up for imap, pop3 (core dumps disabled)
May 02 07:45:24 2834902-yf13623.twc1.net systemd[1]: Started Dovecot IMAP/POP3 email server.
May 02 08:18:09 2834902-yf13623.twc1.net dovecot[912]: imap-login: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 1 secs): user=<>, rip=205.210.31.25, lip=119.75.244.247, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protoco>
May 02 08:25:33 2834902-yf13623.twc1.net dovecot[912]: imap-login: Disconnected: Connection closed (no auth attempts in 2 secs): user=<>, rip=198.235.24.106, lip=119.75.244.247, session=<sbsK1XEX9O3G6xhq>
May 02 08:56:57 2834902-yf13623.twc1.net dovecot[912]: pop3-login: Disconnected: Disconnected: Too many bad commands (no auth attempts in 0 secs): user=<>, rip=192.155.90.220, lip=119.75.244.247, session=<ZCRdRXIXMAzAm1rc>
May 02 09:02:33 2834902-yf13623.twc1.net dovecot[912]: pop3-login: Disconnected: Connection closed: read(size=1026) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=45.33.109.18, lip=119.75.244.247, session=<MQZiWXIXCpktIW0S>
May 02 09:03:39 2834902-yf13623.twc1.net dovecot[912]: imap-login: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 2 secs): user=<>, rip=205.210.31.176, lip=119.75.244.247, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protoc>
May 02 09:41:23 2834902-yf13623.twc1.net dovecot[912]: imap-login: Disconnected: Connection closed (no auth attempts in 9 secs): user=<>, rip=162.243.143.49, lip=119.75.244.247, TLS handshaking: Connection closed, session=<3z1I5HIX5uii848x>
lines 1-26/26 (END)

May I ask how did you install CyberPanel and who is your server provider?

Strange because CyberPanel should not issue SSL for the domain you mentioned unless specified.

@usmannasir I installed CyberPanel in my Timeweb-llc Netherlands VPS manually using the following command:


sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

Dear @usmannasir, I hope this message finds you well. I’m writing to inquire about the status of Ticket #CSC6WNYEF. It appears that the issue with CyberPanel I’ve been experiencing is still unresolved. Could you kindly provide an update on this matter at your earliest convenience? Your assistance is greatly appreciated. Thank you.

Dear @usmannasir,
I have just updated the Cyberpanel to the latest version and trying to login to my mailbox https://panel.mydomain.com:8090/snappymail/index.php/
but receive the same error as before:

Can’t connect to server
Server message: Can’t connect to host “ssl://localhost:993”

Could you please kindly check what’s wrong with it again. I made no changes after you made previous fix. Ticket #CSC6WNYEF