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./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
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 127.0.0.1 {
mail_max_userip_connections = 40
}
where the "remote 127.0.0.1" 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.remote 127.0.0.1 {
mail_max_userip_connections = 40
}
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
}
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/domain.com.log
tail -n 20 domains/domain.com.error.log
and the dovecot logs:tail -n 20 error_log
tail -n 20 domains/domain.com.log
tail -n 20 domains/domain.com.error.log
tail -n 20 /var/log/maillog
5) Check:
/etc/hosts
to ensure you see:
127.0.0.1 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.