我在圆形立方体中收到此错误(“连接到存储服务器失败”)。我检查了一切,配置和数据库用户名密码,服务器详细信息都很干净。任何人都可以告诉我可能是什么问题。在这里,我给出了整个配置文件。
<?php
$rcmail_config = array();
$rcmail_config['debug_level'] = 9;
$rcmail_config['log_driver'] = 'file';
$rcmail_config['log_date_format'] = 'd-M-Y 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'] = 'Y-m-d';
$rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
$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'] = 'D H:i';
$rcmail_config['date_long'] = 'Y-m-d 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'] = '';
答案 0 :(得分:8)
这意味着dovecot没有运行。
运行sudo dovecot
这是我在挫折中花了好几个小时后得到的解决方案
答案 1 :(得分:4)
尝试打开所有调试选项并直接与IMAP服务器通信,而不涉及RoundCube,请参阅this guide。这样,在尝试使RoundCube正常工作之前,您可以确保您的IMAP服务器正常工作。
答案 2 :(得分:4)
运行
编辑15-mailboxes.confnano /etc/dovecot/conf.d/15-mailboxes.conf
在命名空间inbox {}块中添加以下文本:
namespace inbox {
inbox = yes
...
保存文件并运行:
service dovecot restart
你完成了......!
答案 3 :(得分:1)
一些Devcot配置文件已损坏。因此,您需要通过重新创建新配置文件并删除现有配置文件来进行修复。通过putty软件通过SSH登录root用户
执行这些代码
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
现在您可以登录您的网络邮件应用。不会出现错误。
答案 4 :(得分:1)
一个可能的原因是您的Dovecot安装无法正常工作。更改mysql版本后发生了这种情况。我不得不这样做:
sudo apt-get install dovecot-mysql
sudo service dovecot restart
然后它奏效了。
答案 5 :(得分:1)
删除以下文件并登录。
/etc/dovecot/conf.d/15-mailboxes.conf
或使用
sudo rm -rf nano /etc/dovecot/conf.d/15-mailboxes.conf
答案 6 :(得分:1)
我能够通过参考鸽舍状态来解决此问题。
首先,确保您不使用隐身浏览器窗口,然后通过运行此命令检查鸽舍状态
service dovecot status
它将向您显示:
● dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
Active: **inactive** (dead) since Mon 2020-03-30 21:03:32 UTC; 29min ago
Docs: man:dovecot(1)
http://wiki2.dovecot.org/
Main PID: 910 (code=exited, status=0/SUCCESS)
然后运行service dovecot start
答案 7 :(得分:0)
迁移到新服务器后遇到同样的问题,我彻底检查配置显示我的IMAP和IMAP已被禁用,我只是启用了这两项服务并重新启动服务器。
答案 8 :(得分:0)
这就是你解决它的方法:
检查日志: tail /var/log/dovecot.log
如果你看到:
致命:未知的数据库驱动程序'mysql'
意思是缺少包裹! Dovecot需要dovecot-mysql包来运行mysql身份验证。通过安装yum来简单解决这个问题:
yum install dovecot-mysql
答案 9 :(得分:0)
从Debian Jessie升级到Stretch时遇到了这个问题。我查看了日志:
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeStringArray(new String[] {
this.OrignalTitle,
this.MoviePosterImageThumbnailUrl,
this.PlotSynopsis,
this.UserRating,
this.ReleaseDate
});
dest.writeLongArray(new long[] {
this._id,
this.ApiId
});
ArrayList<ArrayList> temp = new List<>();
temp.add(ReviewObjs);
temp.add(TrailerVideoObjs);
dest.writeTypedList(temp);
}
发现问题是我明确禁用了协议/var/log/syslog
,并且不再支持它了。我从协议列表中删除了它,一切正常。
答案 10 :(得分:0)
成功安装 roundcube
后,我最近遇到了同样的问题首先,我尝试了以下两个命令行:
netstat -tulpn | grep :143
telnet localhost 143
我收到连接被拒绝错误消息。
所以我必须安装telnet
apt-get install telnetd
安装成功后,再运行重启
/etc/init.d/openbsd-inetd restart
/etc/init.d/dovecot restart
然后再次运行
netstat -tulpn | grep :143
结果
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 13439/dovecot
tcp6 0 0 :::143 :::* LISTEN 13439/dovecot
尝试第二次试运行
telnet localhost 143
结果
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.
答案 11 :(得分:0)
我也遇到了同样的问题,并通过以下方式找到了解决方案。
我已经通过以下命令检查了日志。
tail /var/log/dovecot.log
通过使用以上命令,我在日志中发现以下错误。
9月1日10:39:50 imap(mail@yourdomain.com):错误:用户 mail@yourdomain.com:初始化失败:初始化邮件存储 从mail_location设置失败: mkdir(/var/vmail/yourdomain.com/mail)失败:权限被拒绝 (euid = 101(vmail)egid = 12(mail)丢失+ w烫发:/ var / vmail,dir拥有 通过4325:4319模式= 0751)
所以我注意到服务器无法创建名称为“ yourdomain.com”的目录,并且需要“ + w”权限。我还注意到“ yourdomain.com”目录需要所有权“ vmail:mail”。
最后,目录是使用以下命令创建的。
cd /var/vmail/;
mkdir yourdomain.com;
chown vmail:mail yourdomain.com -R;
chmod +w yourdomain.com;
就是这样。
希望这个答案对您有所帮助。
答案 12 :(得分:0)
也许有帮助。在vestacp上的首次配置: ubuntu首次安装vestacp时,Roundcube“连接到存储服务器失败”错误
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
答案 13 :(得分:-3)
你应该删除到dovecot邮件服务器和使用其他邮件服务,因此两个服务可能是混乱的你必须删除邮件服务,我已经尝试了这个错误2天。
代码:yum删除dovecot
如果您使用过此代码,Dovecot会从您的服务器中移除并且没有混乱