1

Topic: Connection to Storage server failed

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
============= Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue: mail.log
====

I followed the tutorial from iRedMail FAQs on how to install a GoDaddy Certificate on iRedMail.
However, everytime I try to login any user, the error "Connection to Storage server failed" shows.
The output of the /var/log/mail.log is this
Jun  7 08:53:02 mail roundcube: IMAP Error: Login failed for postmasteratmydomain.ph from 202.x.x.x. AUTHENTICATE PLAIN: Authentication failed. in /usr/share/apache2/roundcubemail-0.8.6/program/include/rcube_imap.php on line 191 (POST /mail/?_task=login&_action=login)

Anyone can help me on this? I would very much apreciate it.

----

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

2

Re: Connection to Storage server failed

Looks like a issue connecting to Managesieve service provided by Dovecot. Any related log in /var/log/dovecot.log?

3

Re: Connection to Storage server failed

Hi Zhang,
Thanks for the quick response. Here's the /var/log/dovecot.log on the same timestamp.

Jun 07 08:53:02 imap-login: Info: Aborted login (auth failed, 1 attempts in 2 secs): user=<postmaster@domain.ph>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<TW1A2oXefgB/AAAB>

If you need more info, just say it.

4

Re: Connection to Storage server failed

Please turn on debug mode in Dovecot, re-login with Roundcube, and check related log in Dovecot log file.

NOTE: Please paste related log of full IMAP session instead of just pasting the one line you think it should be enough.

5 (edited by nerdtron09 2013-06-15 14:01:45)

Re: Connection to Storage server failed

Hi Zhang,
Sorry for the late reply, I was working on another project. Thanks for your patience.
As the tutorial says http://blog.axelsegebrecht.com/how-to/i … -iredmail/
After restarting the apache2, postfix and dovecot services, I tried to log-in. The the "Connection to Storage server failed" error is displayed on the log in screen.

Here the /var/log/mail.log


Jun 14 09:22:33 mail roundcube: IMAP Error: Login failed for  from 202.60.x.x. Empty startup greeting (127.0.0.1:143) in /usr/share/apache2/roundcubemail-0.8.6/program/include/rcube_imap.php on line 191 (GET /mail/?_task=mail&_action=preview&_uid=8&_mbox=INBOX&_framed=1)
Jun 14 09:22:49 mail roundcube: IMAP Error: Login failed for  from 202.60.x.x. Empty startup greeting (127.0.0.1:143) in /usr/share/apache2/roundcubemail-0.8.6/program/include/rcube_imap.php on line 191 (GET /mail/?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1371172948145)
Jun 14 09:22:49 mail roundcube: IMAP Error: Login failed for from 202.60.x.x. Empty startup greeting (127.0.0.1:143) in /usr/share/apache2/roundcubemail-0.8.6/program/include/rcube_imap.php on line 191 (POST /mail/?_task=login&_action=login)
Jun 14 09:22:49 mail roundcube: MDB2 Error: constraint violation (-3): _execute: [Error message: Unable to execute statement]#012[Last executed query: INSERT INTO session (sess_id, vars, ip, created, changed) VALUES (?, ?, ?, '2013-06-14 09:22:49', '2013-06-14 09:22:49')]#012[Native code: 1062]#012[Native message: Duplicate entry '9epbds7nnj9heasdueq5l4mvi6' for key 'PRIMARY']
Jun 14 09:22:49 mail roundcube: DB Error: MDB2 Error: constraint violation Query: _execute: [Error message: Unable to execute statement] [Last executed query: INSERT INTO session (sess_id, vars, ip, created, changed) VALUES (?, ?, ?, '2013-06-14 09:22:49', '2013-06-14 09:22:49')] [Native code: 1062] [Native message: Duplicate entry '9epbds7nnj9heasdueq5l4mvi6' for key 'PRIMARY']  in /usr/share/apache2/roundcubemail-0.8.6/program/include/rcube_mdb2.php on line 727 (POST /mail/?_task=login&_action=login)

And here's the /var/log/dovecot.log in debug mode:

Jun 14 09:20:38 master: Info: Dovecot v2.1.7 starting up (core dumps disabled)
Jun 14 09:20:38 master: Warning: /root/.gvfs is no longer mounted. If this is intentional, remove it with doveadm mount
Jun 14 09:21:06 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:21:06 imap-login: Fatal: Couldn't parse private ssl_key
Jun 14 09:21:06 master: Error: service(imap-login): command startup failed, throttling for 2 secs
Jun 14 09:21:34 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:21:34 imap-login: Fatal: Couldn't parse private ssl_key
Jun 14 09:21:34 master: Error: service(imap-login): command startup failed, throttling for 4 secs
Jun 14 09:21:46 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:21:46 imap-login: Fatal: Couldn't parse private ssl_key
Jun 14 09:21:46 master: Error: service(imap-login): command startup failed, throttling for 8 secs
Jun 14 09:22:33 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:22:33 imap-login: Fatal: Couldn't parse private ssl_key
Jun 14 09:22:33 master: Error: service(imap-login): command startup failed, throttling for 16 secs
Jun 14 09:22:49 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:22:49 imap-login: Fatal: Couldn't parse private ssl_key
Jun 14 09:22:49 master: Error: service(imap-login): command startup failed, throttling for 32 secs

Hmmm... any ideas?

6

Re: Connection to Storage server failed

nerdtron09 wrote:

Jun 14 09:21:34 imap-login: Error: SSL private key file is password protected, but password isn't given
Jun 14 09:21:34 imap-login: Fatal: Couldn't parse private ssl_key

It's pretty clear here.
Did you create a new SSL certificate? It must be self-signed.

7

Re: Connection to Storage server failed

I'll try it again. I'll update on how it goes.
Anyway the mail server is still in testing phase so might as well try everything.

8

Re: Connection to Storage server failed

Hi Zhang,

Thanks for pointing that out. I got the idea that I need to remove the passphrase on the ssl key.
SSL now works on our webmail.

In case somebody have the same problem, I followed the tutorial here: http://www.mnxsolutions.com/apache/remo … l-key.html

Thanks again for the developers of iRedMail for making such a great product.