14

我在 Roundcube 中收到此错误(“连接到存储服务器失败”)行。我已经检查了所有内容、配置和数据库用户名密码,服务器详细信息都是干净的。谁能告诉我可能是什么问题?在这里,我给出了整个配置文件。

            <?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'] = '';
4

14 回答 14

11

这意味着鸽舍没有运行。

sudo dovecot

这是我在沮丧中花费数小时后得到的解决方案

于 2016-05-21T00:52:37.473 回答
4

Try turning all the debugging options on and talk to the IMAP server directly without involving RoundCube, see this guide. That way you can be sure that your IMAP server is working before trying to get RoundCube working.

于 2013-05-07T00:19:25.890 回答
4

通过运行编辑 15-mailboxes.conf

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

在命名空间收件箱 {} 块内添加以下文本:

namespace inbox {
    inbox = yes
...

保存文件并运行:

service dovecot restart

你完成了..!

于 2017-03-03T14:34:27.987 回答
3

一种可能的原因是您的 Dovecot 安装不工作。更改mysql版本后发生在我身上。我必须做:

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

然后它起作用了。

于 2017-08-10T16:39:57.623 回答
2

我可以通过参考Dovecot Status来解决这个问题。

首先,确保您不使用隐身浏览器窗口,然后通过运行此命令检查 Dovecot 状态

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

于 2020-03-30T21:37:33.467 回答
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

现在您可以登录到您的网络邮件应用程序。不会出现错误。

资源

于 2015-01-24T13:11:54.670 回答
1

从 Debian Jessie 升级到 Stretch 时,我遇到了这个问题。我查看了日志:

/var/log/syslog

发现问题是我SSLv2明确禁用协议,不再支持它。我从协议列表中删除了它,一切正常。

于 2017-08-11T17:48:38.447 回答
1

删除以下文件并登录。

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

或使用

sudo rm -rf nano /etc/dovecot/conf.d/15-mailboxes.conf
于 2019-03-05T19:59:37.380 回答
0

成功安装圆形立方体后,我最近遇到了同样的问题

首先我尝试了这两个命令行:

netstat -tulpn | grep :143

telnet localhost 143

我收到连接被拒绝的错误消息。

所以我必须安装telnet

apt-get install telnetd

安装成功后运行Restarts

/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.
于 2018-07-21T09:59:48.000 回答
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) missing +w perm: /var/vmail, dir 由 4325:4319 mode=0751 拥有)

所以我注意到服务器无法创建名为“yourdomain.com”的目录,它需要“+w”权限。我还注意到“yourdomain.com”目录需要所有权“vmail:mail”。

最后,使用以下命令创建了目录。

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

而已。

我希望这个答案可以帮助你。

于 2018-09-01T08:58:45.160 回答
0

在Ubuntu 20.04上设置iRedMail dockerized 版本时,我遇到了类似的问题。

问题是当我使用命令 - 进行检查时,Dovecot没有在容器中运行service dovecot status。当我尝试使用命令启动服务时 -service dovecot start我得到了错误

root@mail:/var/spool/postfix# service dovecot start    
 * Starting IMAP/POP3 mail server dovecot
Error: bind(/var/spool/postfix/private/dovecot-auth) failed: No such file or directory
Fatal: Failed to start listeners

我还运行了以下命令来确认我的鸽舍配置是否正常:

dovecot -n

是的,命令的输出表明它很好。

这是我修复它的方法

该问题是由于我在使用 - 检查容器的 docker 日志时发现的容器中没有安装/运行Postfixdocker logs container-id引起的。Dovecot引用的文件应该/var/spool/postfix/private/dovecot-auth是由Postfix创建的,但是,由于安装Postfix的脚本失败,因为在构建iRedMail映像时没有选择正确的脚本路径,因此出现了这个问题,因为Dovecot找不到文件:/var/spool/postfix/private/dovecot-auth

[iRedMail] [Entrypoint] /docker/entrypoints/postfix.sh 
/docker/entrypoints/functions.sh: line 113: /docker/entrypoints/postfix.sh: No such file or directory
[iRedMail] [Entrypoint] /docker/entrypoints/mlmmj.sh 
[iRedMail] [Entrypoint] /docker/entrypoints/mlmmjadmin.sh 
[iRedMail] [Entrypoint] /docker/entrypoints/iredapd.sh 
[iRedMail] [Entrypoint] /docker/entrypoints/antispam.sh 
mail: cannot send message: Process exited with a non-zero status

我所要做的就是使用 拉取 iRedMail 的 docker 存储库,我的本地使用git clone -b stable https://github.com/iredmail/dockerized重建映像docker build . --tag iredmail:latest -f dockerized/Dockerfiles/Dockerfile,然后运行它。这次选择了我的Postfix安装脚本的正确位置,并且 Postfix 安装和设置运行良好。

当我再次使用以下命令检查Dovecot服务时:

service dovecot start

它向我表明它运行良好。

就这样

于 2021-10-26T10:55:28.513 回答
0

迁移到新服务器后我遇到了同样的问题,我彻底检查了配置显示我的 IMAP 和 IMAPS 已禁用,我只是启用了服务并重新启动服务器。

于 2016-07-21T17:45:56.943 回答
0

这是你修复它的方法:

检查日志: tail /var/log/dovecot.log

如果你看到:

致命:未知的数据库驱动程序“mysql”

意思是缺少包裹!Dovecot 需要 dovecot-mysql 包来运行 mysql 身份验证。用 yum 安装就可以解决这个问题:

百胜安装 dovecot-mysql

于 2017-05-01T10:21:48.497 回答
-4

您应该删除到 dovecot 邮件服务器并使用另一个邮件服务,两个服务可能是冲突的,因此您必须删除一个邮件服务,我已经尝试了 2 天这个错误。

代码 : yum remove dovecot

如果您使用此代码 Dovecot 将从您的服务器中删除并且没有冲突

于 2016-06-16T05:55:01.350 回答