Solved

Roundcube - Connection to storage server failed.

Posted on 2013-11-14
8
6,670 Views
Last Modified: 2013-11-14
Hello,

I installed version 0.9.5.  I am getting the error: Connection to storage server failed. when trying to login.  Not sure what else to share but the attached files.

If I run the installer and try the IMAP connection test, I get:

Connecting to mail.domain.net...
IMAP connect:  NOT OK(Login failed for user@domain.net from 192.168.1.1(X-Forwarded-For: xxx.xxx.xxx.xxx). Could not connect to mail.domain.net:143: Connection refused)

I made sure port 143 is open on the firewall.

Please advise.

Have a great day,

Don
db.inc.php
main.inc.php
0
Comment
Question by:GEMCC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 19

Expert Comment

by:xterm
ID: 39647873
What do you see when issuing the following command from the Roundcube server?

$> telnet mail.domain.net 143

This will at least test that IMAP is listening on your mail server, and that no firewall on either side impedes it.  You should see something like this:

[root@foo ~]# telnet mail.domain.net 143
Trying 192.168.1.1...
Connected to mail.domain.net (192.168.1.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.
0
 

Author Comment

by:GEMCC
ID: 39647902
Hello and thanks for responding,

I cannot telnet mail.domain.net 143 from the Postfix/Dovecot server, but I can telnet 192.168.1.2 143 and it replies back with:

* OKAY [COMPATIBILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

I can telnet mail.domain.net 143 from my laptop and it replies with:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE START
TLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.


Any ideas?

Have a great day,

Don
0
 
LVL 19

Expert Comment

by:xterm
ID: 39647931
I guess I'm not clear on your setup (and which system is the laptop, which is the Roundcube server, etc.) but the web server where you're running Roundcube obviously needs to be able to connect to the IMAP server on port 143.  The error you got when running the connection test in the installer implied that this was not possible - trying to tell if that error is valid or not.
0
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 

Author Comment

by:GEMCC
ID: 39647963
Hello,

I am saying from the server (Linux) in which Postfix/ Dovecot & Roundcube are installed I cannot telnet mai.domain.net 143, but I can telnet 192.168.1.2 143.

Also from my laptop which is going through the Internet (it is not a LAN connection), I can telnet mai.domain.net 143.

Also, I am not able to login to Roundcube and receive the error: Connection to storage server failed.

Notice in line 25 of db.inc.php it says:
$rcmail_config['db_dsnw'] = 'mysql://roundcube:Pa55w0rd@localhost/roundcube';

I wonder:
1. If this is in the correct format/ syntax
2. I do have a roundcube account setup, but should I use another or make sure the permissions are correct?  If so, what should the permissions be?

Please advise.

Have a great day,

Don
0
 
LVL 19

Accepted Solution

by:
xterm earned 500 total points
ID: 39648053
The Roundcube error is telling you it can't connect to the IMAP server - it is attempting to connect to mail.domain.net on port 143 which is exactly the same thing as the telnet session was simulating.

Just change mail.domain.net in main.inc.php to be 192.168.1.2 instead and it will work.
0
 

Author Comment

by:GEMCC
ID: 39648130
Woohoo!  It worked!  Thank you very much!
0
 

Author Closing Comment

by:GEMCC
ID: 39648133
Issue resolved!
0
 
LVL 19

Expert Comment

by:xterm
ID: 39648172
Enjoy :)
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question