Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Roundcube - Connection to storage server failed.

Posted on 2013-11-14
8
Medium Priority
?
6,992 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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 2000 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 your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

We aren’t perfect, just like everyone else.  Check out the email errors our community caught and learn the top errors every email marketer should avoid.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

783 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