我最近安装了 Postfix、Dovecot 以在我自己的 VPS 上设置邮件服务器(使用本教程:使用 Postfix、Dovecot、Mysql 发送电子邮件)
Imaps 服务器使用 993 端口进行身份验证,Postfix 使用 25 端口发送邮件。在本教程中,用户存储在数据库中(因此 imaps 使用 mysql 对用户进行身份验证)。我确信 imaps 和 postfix 一切正常,因为几天前我安装了 Kmail 客户端(在我的 linux 上)并从我的服务器接收邮件。发送邮件也可以正常工作,我向 Gmail 发送了一封邮件,谷歌收到了它没有问题(在我的“Gmail 收件箱”而不是垃圾邮件文件夹中)
因此,为了从网络邮件客户端访问我的电子邮件,我在/var/www/mail目录中安装了Roundcube 。
我多次配置Roundcube。但每次它给我这个错误:
IMAP 错误:来自 XxXx 的 [me@mydomain] 登录失败。第 184 行 /var/www/mm/program/lib/Roundcube/rcube_imap.php 中的空启动问候语 (localhost:993) (POST /mm/?_task=login?_task=login&_action=login)
当我从圆形立方体登录时,imap 服务器说(在/var/log/mail.log中):
5 月 20 日 07:05:16 my-server dovecot: imap-login: Disconnected (没有授权尝试): rip=::1, lip=::1, TLS 握手: Disconnected
这是我的圆形立方体配置文件:
$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';
有什么问题?我真的不知道发生了什么!
谢谢你。