主题: 连接至IMAP服务器失败

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.0
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.5
- 与您的问题相关的日志信息:IMAP Error: Login failed for test1@pythonlearning.com from 124.207.37.218. Could not connect to 127.0.0.1:143: 拒绝连接 in /var/www/roundcubemail-1.0.4/program/lib/Roundcube/rcube_imap.php on line 184 (POST /mail/?_task=login?_task=login&_action=login)
====

详细信息如上,rcube_imap.php on line 184的内容是rcube::
   183                 raise_error(array('code' => 403, 'type' => 'imap',
   184                        'file' => __FILE__, 'line' => __LINE__,
   185                        'message' => $message), true, false);

谢谢!

回复: 连接至IMAP服务器失败

搞定了。根据日志内容发现是IMAP问题。netstat -nltp 发现143 995端口都没有监听,怪不得连不上。运行dovecot命令,报错tarting Dovecot Imap: Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol
Fatal: Failed to start listeners

更改配置文件/etc/dovecot/dovecot.conf
把listen = * [::]改成listen = * 就ok了。供参考