大网数据广告活动
服务器运维问答

How configure roundcube to work with imaps?

· 52CE 我爱测

I recently installed Postfix, Dovecot to setup a mail server on my own VPS ( using this tutorial: Email with Postfix, Dovecot, Mysql ) Imaps server uses port 993 for Authentication, and Postfix uses port 25 to send mails. In this…

问题原文

原帖链接 · Amin Salami · CC BY-SA 3.0

I recently installed Postfix, Dovecot to setup a mail server on my own VPS ( using this tutorial: Email with Postfix, Dovecot, Mysql)

Imaps server uses port 993 for Authentication, and Postfix uses port 25 to send mails. In this tutorial, users stored in a Database ( so imaps use mysql to authenticate users). i'm sure every thing works fine with imaps and postfix , because few days ago i installed Kmail client (on my linux) and receive mails from my server. sending mails also works fine, i sent a mail to Gmail and google received it without a problem (in my "Gmail inbox" not spam folder)

So to get to my Emails from a web mail client, i installed Roundcube on /var/www/mail directory.

I configured Roundcube many times. but each time it gives me this Error:

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)

When i do log in from roundcube, imap server says ( in /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

Here is my roundcube config file :

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

What's the problem? i really have no idea what is happening !

Thank you.

社区高分解答

原帖链接 · Dom · CC BY-SA 3.0

In my config :

$config['default_host'] = 'imaps://domain.tld';

// TCP port used for IMAP connections
$config['default_port'] = 993;

I know that it is not the doc, but it is working. Think about certificate : it should be compliant with your domain.tld

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-05-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。