Round cube issue: Failed to connect to storage server

I get this error ("connection to the storage server failed") in a round cube. I checked everything, the configuration and password of the database username, the server data is all clean. can someone tell me what could be the problem. Here I give the whole configuration file.

<?php $rcmail_config = array(); $rcmail_config['debug_level'] = 9; $rcmail_config['log_driver'] = 'file'; $rcmail_config['log_date_format'] = 'dMY H:i:s O'; $rcmail_config['syslog_id'] = 'roundcube'; $rcmail_config['syslog_facility'] = LOG_USER; $rcmail_config['smtp_log'] = true; $rcmail_config['log_logins'] = false; $rcmail_config['log_session'] = false; $rcmail_config['sql_debug'] = false; $rcmail_config['imap_debug'] = false; $rcmail_config['ldap_debug'] = false; $rcmail_config['smtp_debug'] = false; $rcmail_config['default_port'] = 143; $rcmail_config['imap_auth_type'] = NULL; $rcmail_config['imap_delimiter'] = NULL; $rcmail_config['imap_ns_personal'] = NULL; $rcmail_config['imap_ns_other'] = NULL; $rcmail_config['imap_ns_shared'] = NULL; $rcmail_config['imap_force_caps'] = false; $rcmail_config['imap_force_lsub'] = false; $rcmail_config['imap_force_ns'] = false; $rcmail_config['imap_timeout'] = 0; $rcmail_config['imap_auth_cid'] = NULL; $rcmail_config['imap_auth_pw'] = NULL; $rcmail_config['imap_cache'] = NULL; $rcmail_config['messages_cache'] = false; $rcmail_config['smtp_server'] = ''; $rcmail_config['smtp_port'] = 25; $rcmail_config['smtp_user'] = '%u'; $rcmail_config['smtp_pass'] = '%p'; $rcmail_config['smtp_auth_type'] = ''; $rcmail_config['smtp_auth_cid'] = NULL; $rcmail_config['smtp_auth_pw'] = NULL; $rcmail_config['smtp_helo_host'] = ''; $rcmail_config['smtp_timeout'] = 0; $rcmail_config['enable_installer'] = true; $rcmail_config['support_url'] = 'http://poolavadi.com/'; $rcmail_config['skin_logo'] = ''; $rcmail_config['auto_create_user'] = true; $rcmail_config['log_dir'] = 'logs/'; $rcmail_config['temp_dir'] = 'temp/'; $rcmail_config['message_cache_lifetime'] = '10d'; $rcmail_config['force_https'] = false; $rcmail_config['use_https'] = false; $rcmail_config['login_autocomplete'] = 0; $rcmail_config['login_lc'] = 0; $rcmail_config['skin_include_php'] = false; $rcmail_config['display_version'] = false; $rcmail_config['session_lifetime'] = 10; $rcmail_config['session_domain'] = ''; $rcmail_config['session_name'] = NULL; $rcmail_config['session_storage'] = 'db'; $rcmail_config['memcache_hosts'] = NULL; $rcmail_config['ip_check'] = true; $rcmail_config['referer_check'] = false; $rcmail_config['x_frame_options'] = 'sameorigin'; $rcmail_config['des_key'] = 'nSfL_Rz6tc5NRMqKpw7d&A9='; $rcmail_config['username_domain'] = 'poolavadi.com'; $rcmail_config['mail_domain'] = ''; $rcmail_config['password_charset'] = 'ISO-8859-1'; $rcmail_config['sendmail_delay'] = 0; $rcmail_config['max_recipients'] = 0; $rcmail_config['max_group_members'] = 0; $rcmail_config['useragent'] = 'Roundcube Webmail/RCMAIL_VERSION'; $rcmail_config['product_name'] = 'பூளவாடி மின்னஞ்சல்'; $rcmail_config['include_host_config'] = false; $rcmail_config['generic_message_footer'] = ''; $rcmail_config['generic_message_footer_html'] = ''; $rcmail_config['http_received_header'] = false; $rcmail_config['http_received_header_encrypt'] = false; $rcmail_config['mail_header_delimiter'] = NULL; $rcmail_config['line_length'] = 72; $rcmail_config['send_format_flowed'] = true; $rcmail_config['dont_override'] = array(); $rcmail_config['identities_level'] = 0; $rcmail_config['client_mimetypes'] = NULL; # null == default $rcmail_config['mime_magic'] = NULL; $rcmail_config['im_identify_path'] = NULL; $rcmail_config['im_convert_path'] = NULL; $rcmail_config['contact_photo_size'] = 160; $rcmail_config['email_dns_check'] = false; $rcmail_config['plugins'] = array(); $rcmail_config['message_sort_col'] = ''; $rcmail_config['message_sort_order'] = 'DESC'; $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment'); $rcmail_config['language'] = 'en_us'; $rcmail_config['date_format'] = 'Ym-d'; $rcmail_config['date_formats'] = array('Ym-d', 'dm-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'dmY', 'jnY'); $rcmail_config['time_format'] = 'H:i'; $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A'); $rcmail_config['date_short'] = 'DH:i'; $rcmail_config['date_long'] = 'Ymd H:i'; $rcmail_config['drafts_mbox'] = 'Drafts'; $rcmail_config['junk_mbox'] = 'Junk'; $rcmail_config['sent_mbox'] = 'Sent'; $rcmail_config['trash_mbox'] = 'Trash'; $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); $rcmail_config['create_default_folders'] = false; $rcmail_config['protect_default_folders'] = true; $rcmail_config['quota_zero_as_unlimited'] = false; $rcmail_config['enable_spellcheck'] = true; $rcmail_config['spellcheck_dictionary'] = false; $rcmail_config['spellcheck_engine'] = 'pspell'; $rcmail_config['spellcheck_uri'] = ''; $rcmail_config['spellcheck_languages'] = NULL; $rcmail_config['spellcheck_ignore_caps'] = false; $rcmail_config['spellcheck_ignore_nums'] = false; $rcmail_config['spellcheck_ignore_syms'] = false; $rcmail_config['recipients_separator'] = ','; $rcmail_config['max_pagesize'] = 200; $rcmail_config['min_keep_alive'] = 60; $rcmail_config['upload_progress'] = false; $rcmail_config['undo_timeout'] = 0; $rcmail_config['address_book_type'] = 'sql'; $rcmail_config['ldap_public'] = array(); $rcmail_config['autocomplete_addressbooks'] = array('sql'); $rcmail_config['autocomplete_min_length'] = 1; $rcmail_config['autocomplete_threads'] = 0; $rcmail_config['autocomplete_max'] = 15; $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}'; $rcmail_config['addressbook_search_mode'] = 0; $rcmail_config['default_charset'] = 'ISO-8859-1'; $rcmail_config['skin'] = 'larry'; $rcmail_config['mail_pagesize'] = 50; $rcmail_config['addressbook_pagesize'] = 50; $rcmail_config['addressbook_sort_col'] = 'surname'; $rcmail_config['addressbook_name_listing'] = 0; $rcmail_config['timezone'] = 'auto'; $rcmail_config['prefer_html'] = true; $rcmail_config['show_images'] = 0; $rcmail_config['htmleditor'] = 0; $rcmail_config['prettydate'] = true; $rcmail_config['draft_autosave'] = 300; $rcmail_config['preview_pane'] = false; $rcmail_config['preview_pane_mark_read'] = 0; $rcmail_config['logout_purge'] = false; $rcmail_config['logout_expunge'] = false; $rcmail_config['inline_images'] = true; $rcmail_config['mime_param_folding'] = 0; $rcmail_config['skip_deleted'] = false; $rcmail_config['read_when_deleted'] = true; $rcmail_config['flag_for_deletion'] = false; $rcmail_config['keep_alive'] = 60; $rcmail_config['check_all_folders'] = false; $rcmail_config['display_next'] = false; $rcmail_config['autoexpand_threads'] = 0; $rcmail_config['top_posting'] = false; $rcmail_config['strip_existing_sig'] = true; $rcmail_config['show_sig'] = 1; $rcmail_config['sig_above'] = false; $rcmail_config['force_7bit'] = false; $rcmail_config['search_mods'] = NULL; $rcmail_config['addressbook_search_mods'] = NULL; $rcmail_config['delete_always'] = false; $rcmail_config['delete_junk'] = false; $rcmail_config['mdn_requests'] = 0; $rcmail_config['mdn_default'] = 0; $rcmail_config['dsn_default'] = 0; $rcmail_config['reply_same_folder'] = false; $rcmail_config['forward_attachment'] = false; $rcmail_config['default_addressbook'] = NULL; $rcmail_config['spellcheck_before_send'] = false; $rcmail_config['autocomplete_single'] = false; $rcmail_config['default_font'] = ''; 
+8
source share
13 answers

This means dovecot is not working.

run sudo dovecot

That was the solution I got after spending hours in frustration

+8
source

Try turning on all debugging options and talking directly to the IMAP server without RoundCube, see this guide . This way you can be sure that your IMAP server is working before you try to get RoundCube to work.

+4
source

edit 15-mailboxes.conf by running

 nano /etc/dovecot/conf.d/15-mailboxes.conf 

add the following text inside the inbox {} block namespace:

 namespace inbox { inbox = yes ... 

save the file and run:

 service dovecot restart 

and you are done ..!

+4
source

Some Devcot configuration files have been corrupted. Therefore, you need to fix it by creating a new configuration file and deleting the existing one. SSH root login via spatula software

Execute this code

 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 

You can now log in to your webmail application. The error will not appear.

A source

+1
source

One possible reason is that your Dovecot installation is not working. This happened to me after changing the mysql version. I had to do:

 sudo apt-get install dovecot-mysql sudo service dovecot restart 

Then he worked.

+1
source

delete the file below and login.

 /etc/dovecot/conf.d/15-mailboxes.conf 

or use

 sudo rm -rf nano /etc/dovecot/conf.d/15-mailboxes.conf 
+1
source

I had the same problem after moving to a new server, I carefully checked the configuration showing that my IMAP and IMAPS were disabled, I just turned on the service and restarted the server.

0
source

Here's how you fix it:

Check the log: tail / var / log / dovecot.log

if you see:

Fatal: Unknown 'mysql' database driver

The value of the missing package! Dovecot requires the dovecot-mysql package to run mysql authentication. This problem is simply cured by installing it with yum:

yum install dovecot-mysql

0
source

I had this problem when upgrading from Debian Jessie to Stretch. I looked into the log:

 /var/log/syslog 

and found that the problem was that I disabled SSLv2 explicitly and it was no longer supported. I removed it from the protocol list and everything worked fine.

0
source

I had the same issue recently after successfully installing roundcube

First I tried these two command lines:

 netstat -tulpn | grep :143 telnet localhost 143 

I received a connection failure message .

so i have to install telnet

 apt-get install telnetd 

After successful installation, run Restarts

 /etc/init.d/openbsd-inetd restart /etc/init.d/dovecot restart 

Then run again

  netstat -tulpn | grep :143 

Result

 tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13439/dovecot tcp6 0 0 :::143 :::* LISTEN 13439/dovecot 

Try a second test run

 telnet localhost 143 

Result

 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE START TLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready. 
0
source

I ran into the same problem and I found a solution by following.

I checked the log for the following command.

 tail /var/log/dovecot.log 

Using the above command, I found the following error in the log.

September 01, 10:39:50 imap ( mail@yourdomain.com ): error: user mail@yourdomain.com : initialization failed: mail store initialization failed from mail_location parameter: mkdir failed (/var/vmail/yourdomain.com/mail): Denied in access (euid = 101 (vmail) egid = 12 (mail) is missing + w perm: / var / vmail, dir belongs to 4325: mode 4319 = 0751)

therefore, I noticed that the server cannot create a directory with the name "yourdomain.com", and it requires the permission "+ w". I also noticed that the directory "yourdomain.com" requires ownership of "vmail: mail".

Finally, the directory was created using the following command.

 cd /var/vmail/; mkdir yourdomain.com; chown vmail:mail yourdomain.com -R; chmod +w yourdomain.com; 

It.

I hope this answer can help you.

0
source

maybe it will help. First configuration on vestacp: Roundcube 'error connecting to the storage server when installing Ubuntu on vestacp for the first time

 vi /etc/exim4/exim4.conf.template #CLAMD = yes vi /etc/clamav/clamd.conf # AllowSupplementaryGroups yes vi /etc/dovecot/dovecot.conf protocols = imap pop3 listen = * base_dir = /var/run/dovecot/ !include conf.d/*.conf namespace inbox { inbox = yes } service dovecot restart change database configurations vi /etc/roundcube/debian-db.php 

https://www.talkforweb.com.au/server/connection-to-storage-server-failed

0
source

You must delete the dovecot mail server and use other mail services. Two services can be conflitcs, so you have to delete mail services, I tried this error for 2 days.

CODE: yum remove dovecot

If you used this code, Dovecot would remove from your server and there were no conflitcs

-3
source

All Articles