gpt4 book ai didi

email - 如何配置 roundcube 以使用 imaps?

转载 作者:太空宇宙 更新时间:2023-11-03 13:09:42 32 4
gpt4 key购买 nike

我最近安装了 Postfix、Dovecot 以在我自己的 VPS 上设置邮件服务器(使用本教程:Email with Postfix, Dovecot, Mysql)

Imaps 服务器使用993 端口进行身份验证,Postfix 使用25 端口发送邮件。在本教程中,用户存储在数据库中(因此 imaps 使用 mysql 对用户进行身份验证)。我确信 imaps 和 postfix 一切正常,因为几天前我安装了 Kmail 客户端(在我的 linux 上)并从我的服务器接收邮件。发送邮件也能正常工作,我向 Gmail 发送了一封邮件,Google 毫无问题地收到了它(在我的“Gmail 收件箱”中,而不是垃圾邮件文件夹中)

因此,为了从网络邮件客户端获取我的电子邮件,我安装了 Roundcube/var/www/mail 目录中。

我多次配置 Roundcube。但每次它都会给我这个错误:

IMAP Error: Login failed for [me@mydomain] from X.x.X.x . Empty startup greeting (localhost:993) in /var/www/mm/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mm/?_task=login?_task=login&_action=login)

当我从 roundcube 登录时,imap 服务器说(在 /var/log/mail.log 中):

May 20 07:05:16 my-server dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, TLS handshaking: Disconnected

这是我的 roundcube 配置文件:

$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';

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

谢谢。

最佳答案

几个月来我一直在使用 postfix + dovecot + roundcube,它很适合我。在我的配置中,postfix 拒绝纯文本 session ,因此 roundcube 必须 连接到 ssl - 并且它正在工作。

这是来 self 的 main.inc.php。我不记得在这里编辑过任何东西,它只是在安装过程中创建的初始配置。

现在我正在看,default_port 没有任何意义,我认为它只是被忽略了。

// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %d = domain.tld


// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;
$rcmail_config['default_host'] = array("ssl://localhost:993");

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

关于email - 如何配置 roundcube 以使用 imaps?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23758378/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com