Solved

Roundcube - Connection to storage server failed.

Posted on 2013-11-14
8
6,044 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
 

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
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now