如何configurationroundcube与imaps一起使用?

我最近安装了Postfix,Dovecot,在我自己的VPS上安装邮件服务器(使用本教程: 带Postfix,Dovecot,Mysql的电子邮件 )

Imaps服务器使用端口993进行身份validation,Postfix使用端口25发送邮件。 在本教程中,用户存储在数据库中(所以imaps使用mysql来authentication用户)。 我敢肯定,所有的事情都可以正常使用imaps和postfix,因为前几天我安装了Kmail客户端(在我的linux上),并从我的服务器接收邮件。 发送邮件也工作正常,我发送邮件到Gmail和谷歌收到它没有问题(在我的“Gmail收件箱”不是垃圾邮件文件夹)

所以要从Web邮件客户端获得我的电子邮件,我在/ var / www / mail目录上安装了Roundcube 。

我多次configuration了Roundcube。 但每次它给我这个错误:

IMAP错误:来自XxXx的[me @ mydomain]login失败。 在/var/www/mm/program/lib/Roundcube/rcube_imap.php 184行(POST / mm /?_ task = login?_task = login&_action = login)中的空启动问候(localhost:993)

当我从roundcubelogin时,imap服务器说(在/var/log/mail.log ):

5月20日07:05:16 my-server dovecot:imap-login:断开(无validation尝试):rip = :: 1,lip = :: 1,TLS握手:断开连接

这是我的roundcubeconfiguration文件:

$config['db_dsnw'] = 'mysql://roundcubeuser:myPassword@localhost/roundcubemail'; // ---------------------------------- // IMAP // ---------------------------------- $config['debug_level'] = 13; $config['default_host'] = 'ssl://127.0.0.1'; $config['default_port'] = 993; // ---------------------------------- // SMTP // ---------------------------------- $config['smtp_server'] = 'ssl://localhost'; 

有什么问题? 我真的不知道发生了什么事!

谢谢。

在我的configuration中:

 $config['default_host'] = 'imaps://domain.tld'; // TCP port used for IMAP connections $config['default_port'] = 993; 

我知道这不是文件,但是它正在工作。 考虑证书:它应该符合你的domain.tld

一旦我有我的邮件服务器我在dovecot.conf中使用这些问题

 auth_verbose=yes auth_debug=yes auth_debug_passwords=yes mail_debug=yes verbose_ssl=yes auth_verbose_passwords=plain 

然后使用:

 tail -f /var/log/mail.log 

你会看到幕后发生的一切