Roundcube: connection to storage server failed

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » Email » Webmail Clients

Roundcube: connection to storage server failedLast Modified: Apr 30, 2014, 1:28 am
1) If you've recently updated your version of dovecot, and if you get this error in RoundCube:

connection to storage server failed

it may be that the dovecot index files are for an older version of dovecot, and don't work full with the new version.
To resolve that issue, simply delete all dovecot index files, and dovecot will re-create them when it notices they're missing.

You should test this on one User first, before doing it on all Users.
Also, backup the dovecot* files of the test User first (shouldn't be required, but not a bad thing to do)

cd /home
/etc/init.d/dovecot stop
rm -f */imap/*/*/Maildir/dovecot*
rm -f */imap/*/*/Maildir/.*/dovecot*
rm -f */Maildir/dovecot*
rm -f */Maildir/.*/dovecot*
/etc/init.d/dovecot restart

Dovecot will recreate the dovecot* files once the User logs in.

2) Causing number 2 would be if dovecot has hit the per-IP limit.  If that's the case, you'd see something like this in your /var/log/maillog:

imap-login: Maximum number of connections from user+IP exceeded (mail_max_userip_connections=10)

The solution for that is to add the following to the very bottom of your /etc/dovecot/dovecot.conf file:

mail_max_userip_connections = 15
remote {
       mail_max_userip_connections = 40

where the "remote" refers to the local limit (connections from roundcube and squirrelmail), and the limit of 15, just above it, is the per-IP limit for external IP addresses.  There are a couple other ways of going about it (can be done in the "protocol imap" section, but the method metioned here also covers pop without any extra code.

3) Another error:

master: Warning: service(imap-login): process_limit (100) reached, client connections are being dropped

The solution for this is to increase the process_limit for imap.  Edit the /etc/dovecot.conf, find the "service imap-login {" section, and set a higher limit, eg:

service imap-login {
       process_limit = 800
       process_min_avail = 16
       user = dovecot

4) Beyond that, check your apache logs for possible clues:

cd /var/log/httpd
tail -n 20 error_log
tail -n 20 domains/
tail -n 20 domains/

and the dovecot logs:

tail -n 20 /var/log/maillog

5) Check:

to ensure you see:   localhost

and that localhost does not exist under other IPs.

6) The error can also showed up when the /etc/virtual/domain.compasswd file is not in the correct format.
It should have 7 columns, separated by colons.  If you only see 2 columns, (1 colon), then run the ./build todovecot command.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST