1 (edited by richardw 2018-11-27 04:42:58)

Topic: RoundCube - Connection to storage server failed

Hello!

I have installed and got working the following:

iRM 0.9.8
Ubuntu 18.04
MySQL
Nginx

However, logging into RoundCube results in the following from tail -f /var/log/maillog

Nov 26 13:33:42 mail roundcube: <b6qcgaj1> IMAP Error: Login failed for ric@email.com from 192.168.0.23. Could not connect to 127.0.0.1:143: Connection refused in /opt/www/roundcubemail-1.3.6/program/lib/Roundcube/rcube_imap.php on line 196 (POST /mail/?_task=login&_action=login)

Should I be trying to connect to port 993 instead of 143?
If so, how do I change it?

Thanks!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: RoundCube - Connection to storage server failed

What I think it might be is the password for the roundcube user for mysql is wrong or not set?
I don't recall setting a password for this user while setting up iRM 0.9.8 with RC option checked.

3

Re: RoundCube - Connection to storage server failed

Is Dovecot service running?

4 (edited by richardw 2018-11-29 23:15:46)

Re: RoundCube - Connection to storage server failed

ZhangHuangbin wrote:

Is Dovecot service running?

yes, however, when I run dovecot -F I get permission denied - I need to do sudo dovecot -F is that normal?
I think it's on the certificate - not sure, can't check until tomorrow

5 (edited by richardw 2018-11-29 23:34:08)

Re: RoundCube - Connection to storage server failed

Here is the output:

admin@mail:~$ dovecot -F
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 48: ssl_cert: Can't open file /etc/ssl/private/mail.ems.com.pem: Permission denied
admin@mail:~$ sudo dovecot -F
[sudo] password for admin:
Fatal: Dovecot is already running with PID 67898 (read from /var/run/dovecot/master.pid)
admin@mail:~$

Any thoughts on this Zhang?

6

Re: RoundCube - Connection to storage server failed

will this be helpful?  Maybe shed some light? tail -f /var/log/syslog
Nov 29 15:09:10 mail roundcube:  IMAP Error: Login failed for ric@email.com from 192.168.0.23. Could not connect to 127.0.0.1:143: Connection refused in /opt/www/roundcubemail-1.3.6/program/lib/Roundcube/rcube_imap.php on line 196 (POST /mail/?_task=login&_action=login)

7

Re: RoundCube - Connection to storage server failed

richardw wrote:

Nov 29 15:09:10 mail roundcube:  IMAP Error: Login failed for ric@email.com from 192.168.0.23. Could not connect to 127.0.0.1:143: Connection refused in /opt/www/roundcubemail-1.3.6/program/lib/Roundcube/rcube_imap.php on line 196 (POST /mail/?_task=login&_action=login)

This means IMAP (port 143) is not running, which means Dovecot is NOT running.

You need to switch to root user with either su or sudo to restart Dovecot service.