Roundcube 上与 imap 服务器的连接失败
我已在本地计算机上安装了 Roundcube,它工作正常,但使用相同的配置,它无法在服务器上工作。它给出了“与 IMAP 服务器的连接失败”错误。
$rcmail_config['default_host'] = 'ssl://imap.gmail.com:993';
日志:
> [17-Jan-2011 03:05:06 +0400]: IMAP > Error: Login failed for > [email protected] from xxx.xxx.xx.xx. > Could not connect to > imap.gmail.com:143: Connection timed > out in > /home/xxxxx/public_html/rc/program/include/rcube_imap.php > on line 183 (POST > /mail/?_task=login&_action=login)
我想知道 - 为什么它在端口 143 上尝试,而端口 #993 已写入 config.php 中。
I have installed Roundcube on local machine and it works fine, but with same configuration, it is not working on server. It's giving an "Connection to IMAP Server failed" error.
$rcmail_config['default_host'] = 'ssl://imap.gmail.com:993';
Log:
> [17-Jan-2011 03:05:06 +0400]: IMAP > Error: Login failed for > [email protected] from xxx.xxx.xx.xx. > Could not connect to > imap.gmail.com:143: Connection timed > out in > /home/xxxxx/public_html/rc/program/include/rcube_imap.php > on line 183 (POST > /mail/?_task=login&_action=login)
I'm wondering - why is it trying on port 143, when port #993 is written in config.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须按如下方式设置配置
,它应该可以工作,如果没有,请使用以下命令检查是否可以通过如下所示的命令连接到服务器:
ping imap.gmail.com
telnet imap.gmail.com 993
[对于 Windows] 或telnet imap.gmail.com:993
[对于 UNIX]如果您能够获得成功的输出。您将能够通过 Roundcube 连接到 IMAP Gmail 服务器。
You have to set the configurations as follows
it should work , if not check with the below commands whether it is possible to connect to the sever through commands as shown below:
ping imap.gmail.com
telnet imap.gmail.com 993
[for Windows] ortelnet imap.gmail.com:993
[for UNIX]If you are able to get the successful output. you will be able to connect to the IMAP Gmail server via Roundcube.
ssl:// 的默认端口为 993。问题出在您的服务器上,有时由于托管提供商的内存有限,它们无法连接到 gmail。我也有类似的情况。我可以从我的托管服务器连接到其他邮件服务器,但不能连接到 gmail。然后我将托管切换到其他公司并且相同的代码有效。
Port 993 is default for ssl://. the problem is with your server as sometime due to limited memmory by hosting provider they can't connect to gmail. I had a similar situation. I could connect to other mail server from my hosting server but not gmail. Then i switched hosting to other company and same code worked.