Roundcube Community Forum

 

roundcube cannot connect to imap

Started by jchutch2, February 12, 2013, 02:08:49 PM

Previous topic - Next topic

jchutch2

I guess I'll join the fray. It seems to be that there are a few of these issues. Long story short, I installed a new CENTOS 6 server. I can connect to imap locally as shown below. roundcube cannot. I am new to roundcube, so maybe I'm just missing something. Would love to hear any possible ideas.

The maillog obviously doesn't show any login attempt as roundcube isn't able to connect. I can connect using the exact same credentials and settings as roundcube is attempting to use.

Installed:
dovecot-2.0.9-2.el6_1.1.x86_64
sendmail-8.14.4-8.el6.x86_64
roundcubemail-0.8.4-1.el6.noarch

[12-Feb-2013 13:32:21 -0500]: IMAP Error: Login failed for jchutch2 from xxx.xxx.xxx.xxx. Could not connect to gossamer:143: Permission denied in /usr/share/roundcubemail/program/include/rcube_imap.php on line 191 (POST /roundcubemail/?_task=login&_action=login)

[root@gossamer roundcubemail]# telnet gossamer 143
Trying 127.0.0.1...
Connected to gossamer.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
a login jchutch2 <password>
a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in

SKaero

I see your tiring to use your hostname as the IMAP server have you tried using localhost instead?

jchutch2

I have tried localhost, 127.0.0.1, the FQDN, and the internal IP address.

ABerglund

That's a login error, not a no connection error. Looks to me as if the IMAP connection is attempted, but the authentication has failed.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

jchutch2

That's why I included the snippets. I'm able to log in directly to IMAP with the same credentials. However, I also know it not to be the case as a debug of the IMAP process doesn't show an established connection. Hence the error that it's unable to connect to gossamer on port 143.

JohnDoh

The "Permission denied" part suggests may be you have fsockopen disabled in your PHP settings.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tembo263

#6
If your server has SELinux enforcing try the following:

setsebool -P httpd_can_network_connect 1

to allow apache to use  fsockopen