I had the same issue recently after successfully installing roundcube
First I tried these two command lines:
netstat -tulpn | grep :143 telnet localhost 143
I received a connection failure message .
so i have to install telnet
apt-get install telnetd
After successful installation, run Restarts
/etc/init.d/openbsd-inetd restart /etc/init.d/dovecot restart
Then run again
netstat -tulpn | grep :143
Result
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13439/dovecot tcp6 0 0 :::143 :::* LISTEN 13439/dovecot
Try a second test run
telnet localhost 143
Result
Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE START TLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
source share