Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: shadoxity on October 21, 2008, 05:46:11 PM

Title: Cannot log into IMAP server
Post by: shadoxity on October 21, 2008, 05:46:11 PM
Hey guys,

Trying to setup roundcube, have the database and all setup.
I am using it with hmailserver and ASSP.

Everything checks out and gives the OK and i can send SMTP test emails but it wont connect to the IMAP server.


I can connect via imap through outlook, i can telnet the port locally and on the network but it just doesnt work.

Here is the error it gives me.


Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:143 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\inetpub\wwwroot\webmail\program\lib\imap.inc on line 545
IMAP connect:  NOT OK(Could not connect to localhost at port 143: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )


I hope you can help me, i dont know what else to do
Title: Cannot log into IMAP server
Post by: rosali on October 22, 2008, 12:48:32 AM
What do logs of IMAP server say?
Title: Cannot log into IMAP server
Post by: shadoxity on October 22, 2008, 03:36:16 AM
Roundcube doesnt even make contact with the imap server so there is nothing in the log of it.

The only thing i have is in the roundcube log which says
 IMAP Error: Could not connect to localhost at port 143: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
 in  on line 0 (POST /webmail/index.php?_task=&_action=login)


so i have no idea what to do, cause imap works via telnet and outlook, so seems to be to do with roundcube.

Cheers
Title: Fixed it!!!!
Post by: shadoxity on October 22, 2008, 04:56:47 AM
FIXED IT!!!!

Eventually stumbled across a post on the hmailserver forums, where someone had to put in the IP address of the server instead of local host, sure enough this worked :D

Any idea why that would be? seems stranage

Cheers
Title: Cannot log into IMAP server
Post by: Vispa on December 02, 2008, 03:46:34 AM
I think that you have a configuration problem

$rcmail_config['default_host'] = 'YourDomain or IP';

$rcmail_config['default_port'] = 143;

$rcmail_config['imap_auth_type'] = null;

$rcmail_config['username_domain'] = 'YourNameDomain';

$rcmail_config['mail_domain'] = 'YourDomain or IP';

Later you must remember that in User you have to write the email that you have created in hmailserver and in Password, the password that you have defined.