Solved

Roundcube - Connection to storage server failed.

Posted on 2013-11-14
8
6,446 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
  • 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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