1

Topic: Errors roundcube

Hi.

I installed latest version of iredmail, all seems work right, except roundcube that apart the login page, seems unreachable.
If I enter a correct user/password in login roundcube page I obtain always error 500
If I enter wrong credentials rouncube said "connection to imap server failed".

I didn't change any configuration file except dovecot.conf for utilize signed SSL certs.
By the way dovecot work with no issues and client connects as well...

Thanks in advance for any hints or help...

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

----

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

2

Re: Errors roundcube

*) Is Dovecot service running?
*) Any related log in Postfix log file? (Roundcube is configured to log to Postfix log file.)

3 (edited by posa68 2016-05-30 15:04:56)

Re: Errors roundcube

1. Yes Dovecot is running and it's ok with mail clients programs and SOgo too

2. maillog report this:
May 30 02:43:42 82 roundcube: <os4nt3g7> IMAP Error: Login failed for postmaster@xxxx.it from 79.46.207.34. Empty sting (127.0.0.1:143) in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_imap.php on line 193 (POST /mail/?_taskion=login)
May 30 02:43:42 82 roundcube: PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_user.php:491#012Stack trace:#012#0 /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_user.php(491): DateTime->__construct('now')#012#1 /var/www/roundcubemail-1.2.0/program/include/rcmail.php(619): rcube_user->failed_login()#012#2 /var/www/roundcubemail-1.2.0/index.php(109): rcmail->login('postmaster@astr...', 'xxxx', '127.0.0.1', true)#012#3 {main}#012  thrown in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_user.php on line 491

4

Re: Errors roundcube

posa68 wrote:

May 30 02:43:42 82 roundcube: <os4nt3g7> IMAP Error: Login failed for postmaster@xxxx.it from 79.46.207.34. Empty sting (127.0.0.1:143) in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_imap.php on line 193 (POST /mail/?_taskion=login)

Did you change any Roundcube setting? What's the setting of "default_host" in Roundcube config file (/var/www/roundcubemail/config/config.inc.php)?

5 (edited by posa68 2016-05-30 20:32:27)

Re: Errors roundcube

ZhangHuangbin wrote:
posa68 wrote:

May 30 02:43:42 82 roundcube: <os4nt3g7> IMAP Error: Login failed for postmaster@xxxx.it from 79.46.207.34. Empty sting (127.0.0.1:143) in /var/www/roundcubemail-1.2.0/program/lib/Roundcube/rcube_imap.php on line 193 (POST /mail/?_taskion=login)

Did you change any Roundcube setting? What's the setting of "default_host" in Roundcube config file (/var/www/roundcubemail/config/config.inc.php)?

This is my default_host param:

// IMAP
$config['default_host'] = '127.0.0.1';
$config['default_port'] = 143;
$config['imap_auth_type'] = 'LOGIN';
$config['imap_delimiter'] = '/';

I didn't change a bit sad

6

Re: Errors roundcube

Only thing I've change is dovecot config file: according to iredmail guide for use SSL signed certificates...

7

Re: Errors roundcube

*) Did Roundcube work BEFORE you change ssl cert?
*) Please turn on debug mode in Dovecot mode, then try again. Show us FULL log related to this test in Dovecot log.
FYI: http://www.iredmail.org/docs/debug.dovecot.html

8 (edited by posa68 2016-05-30 21:26:36)

Re: Errors roundcube

ZhangHuangbin wrote:

*) Did Roundcube work BEFORE you change ssl cert?
*) Please turn on debug mode in Dovecot mode, then try again. Show us FULL log related to this test in Dovecot log.
FYI: http://www.iredmail.org/docs/debug.dovecot.html

It seems dovecot logging almost anything about roundcube login.
The only interesting part is this:

May 30 15:00:46 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<kZZI2A40GAB/AAAB>
And this:
May 30 15:22:46 imap-login: Info: Login: user=<postmaster@xxxx.it>, method=PLAIN, rip=79.46.207.34, lip=172.16.120.82, mpid=1434, TLS, session=<qqP5Jg80qwBPLs8i>
May 30 15:22:52 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<zxZMJw807QB/AAAB>
May 30 15:22:56 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=81.29.208.89, lip=172.16.120.82, TLS handshaking: SSL_accept() syscall failed: Connection reset by peer, session=<n2uVJw80iwBRHdBZ>

Pleas note also that SOgo webmail working with NO issue (on the same server), so I assume dovecot is working if SOgo is logging as well.
I have problem only with roundcube.

So weird...

9

Re: Errors roundcube

posa68 wrote:

May 30 15:22:56 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=81.29.208.89, lip=172.16.120.82, TLS handshaking: SSL_accept() syscall failed: Connection reset by peer, session=<n2uVJw80iwBRHdBZ>

Seems caused by ssl cert.
Does it work if you revert SSL settings in Dovecot?

10

Re: Errors roundcube

ZhangHuangbin wrote:
posa68 wrote:

May 30 15:22:56 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=81.29.208.89, lip=172.16.120.82, TLS handshaking: SSL_accept() syscall failed: Connection reset by peer, session=<n2uVJw80iwBRHdBZ>

Seems caused by ssl cert.
Does it work if you revert SSL settings in Dovecot?

I'll try and let you know.
Unfortunately this server is used by many people and change ssl certs during the day will produce too many errors to users, so I need to do the tests during daynight.

11

Re: Errors roundcube

ZhangHuangbin wrote:
posa68 wrote:

May 30 15:22:56 imap-login: Info: Disconnected (no auth attempts in 0 secs): user=<>, rip=81.29.208.89, lip=172.16.120.82, TLS handshaking: SSL_accept() syscall failed: Connection reset by peer, session=<n2uVJw80iwBRHdBZ>

Seems caused by ssl cert.
Does it work if you revert SSL settings in Dovecot?

Try that now.
Nothing changed, same error after login page in roundcube, dovecot log said:

May 31 23:52:02 imap-login: Info: Disconnected (disconnected before greeting, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<ZbASYio0MAB/AAAB>

12

Re: Errors roundcube

Was any file changed on server besides ssl cert?

13

Re: Errors roundcube

ZhangHuangbin wrote:

Was any file changed on server besides ssl cert?

Not really... It's a brand new installation of iredmail (apache), just one domain and few users.
I use this server also for a website, so only apache virtual hosts are modified, nothing else...