I am trying to get roundcube, dovecot, postfix, and certificates from letsencrypt to all work together on Debian 9.
I installed roundcube using the apt-get command.
When trying to log into roundcube it takes a long time where it says "Loading..." but then does not log me in. The onscreen error says Connection to storage server failed
. Lookingin the roundcube error logs I get the following error:
IMAP Error: Login failed for user@example.com from 192.0.2.10. Empty startup greeting (localhost:143) in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 193 (POST /?_task=login&_action=login)
Running /etc/init.d/dovecot status
I get the following:
dovecot[29431]: imap-login: Disconnected (no auth attempts in 60 secs): user=<>, rip=::1, lip=::1, TLS handshaking: SSL_accept() syscall failed: Success, session=<azgn6uptGtgAAAAAAAAAAAAAAAAAAAAB>
I have the following in my config.inc.php:
$config['default_host'] = 'tls://localhost';
and
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
$config['username_domain'] = '%d';
and the following specified in my dovecot 10-ssl.conf file:
ssl = required
ssl_cert = </etc/letsencrypt/live/example.com/fullchain.pem
ssl_key = </etc/letsencrypt/live/example.com/privkey.pem
I also have the following in my 10-master.conf file:
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 143
ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
If I do telnet localhost 143
I get:
Trying ::1...
Connected to localhost.
Escape character is '^]'.
I am not sure if I should be getting any more than that.
Frankly, I am not sure where my problem lies or what else to look into. Why am I not able to log into roundcube and where else should I be checking to pinpoint my problem?