Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: EdelingF on May 26, 2008, 07:33:08 PM

Title: Roundcube not accessible
Post by: EdelingF on May 26, 2008, 07:33:08 PM
I've tried to install the Roundcube-contrib like in http://wiki.contribs.org/RoundCube (http://wiki.contribs.org/RoundCube) twice now and everything seems to be ok, but one way or the other Roundcube is not accepting my username and password.

Code: [Select]
Installed: smeserver-roundcube.noarch 0:0.9-7.el4.sme
Dependency Installed: roundcube.noarch 0:0.1-479svn.el4.sme

This is what 'config show roundcube' gives:

Code: [Select]
roundcube=service
    DbName=roundcube
    DbPassword=XXXXXXXXXXXXXXXX
    DbUser=roundcube
    Name=RoundCube IMAP Client
    PublicAccess=global
    status=enabled

Have I forgotten something?
Title: Re: Roundcube not accessible
Post by: Stefano on May 26, 2008, 09:22:55 PM
hi..

yes, you forgot to look in your /var/log/* files looking for the reason.. :-)

Ciao
Stefano
Title: Re: Roundcube not accessible
Post by: EdelingF on May 27, 2008, 08:38:47 PM
Been staring at /var/log/* for a while now, but haven't got a clue where to look.
Can you give me a direction?
Title: Re: Roundcube not accessible
Post by: EdelingF on May 27, 2008, 09:41:46 PM
Had a clear moment, checked the Roundcube error-log:
Code: [Select]
[27-May-2008 21:27:39 +0200] IMAP Error: Could not connect to mydomain.nl at port 143: Connection timed out in  on line 0
Global secure IMAP is on, so that shouldn't be the problem.

Title: Re: Roundcube not accessible
Post by: Gert on May 29, 2008, 10:45:47 PM
What happenes when  you do:

Code: [Select]
telnet mydomain.nl 143
??
Title: Re: Roundcube not accessible
Post by: EdelingF on May 30, 2008, 07:50:49 PM
No results, just

Code: [Select]
Trying xx.xx.xx.xx...
Seems like IMAP is not working ?
Title: Re: Roundcube not accessible
Post by: Gert on May 30, 2008, 09:08:19 PM
What about:

Code: [Select]
config show imap
and

Code: [Select]
config show imaps
??
Title: Re: Roundcube not accessible
Post by: EdelingF on May 30, 2008, 09:42:20 PM
What about:

Code: [Select]
config show imap

Code: [Select]
[root@server ~]# config show imap
imap=service
    ConcurrencyLimit=400
    ConcurrencyLimitPerIP=12
    TCPPort=143
    access=private
    status=enabled

and

Code: [Select]
config show imaps
??

Code: [Select]
[root@server ~]# config show imaps
imaps=service
    ConcurrencyLimit=400
    ConcurrencyLimitPerIP=12
    TCPPort=993
    access=public
    status=enabled

If I'm interpreting it correct, the IMAP service is only private?
Title: Re: Roundcube not accessible
Post by: Gert on May 31, 2008, 11:35:27 AM
Yes, imaps is public and imap is private. But roundcube access it locally so it is fine. But that explains...

Code: [Select]
Trying xx.xx.xx.xx...

...if you tried to telnet from outside the network.

Try to telnet from the server console

Code: [Select]
telnet localhost 143
If it still isn't working, disable imap in server-manager and the enable it again.
Title: Re: Roundcube not accessible
Post by: EdelingF on May 31, 2008, 06:57:46 PM

Quote
Try to telnet from the server console

Code: [Select]
[root@server ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK imapfront ready. + stunnel

So that's ok?
Title: Re: Roundcube not accessible
Post by: cactus on May 31, 2008, 08:34:37 PM
Code: [Select]
[root@server ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK imapfront ready. + stunnel

So that's ok?

Yes
Title: Re: Roundcube not accessible
Post by: Gert on June 01, 2008, 12:05:31 AM
Roundcube should work now.
Title: Re: Roundcube not accessible
Post by: cactus on June 01, 2008, 08:28:41 AM
Roundcube should work now.
Only if the user is using localhost as hostname, which is still not clear to me, this posts (http://forums.contribs.org/index.php?topic=41128.msg191471#msg191471) is suggesting he is using his FQDN instead of localhost.
Title: Re: Roundcube not accessible
Post by: EdelingF on June 01, 2008, 06:37:16 PM
Nope, Roundcube is still not working.
I've tried 127.0.0.1/roundcube/ and https://localhost/roundcube/ and www.mydomain.nl/roundcube/ in firefox and IE7, but still not able to login.
Even if I try to login as admin with Putty on my server and startup the server-console and use the text-mode browser to go to http://localhost/roundcube/ , I'm still not able to login.
Title: Re: Roundcube not accessible
Post by: cactus on June 01, 2008, 07:00:25 PM
Nope, Roundcube is still not working.
I've tried 127.0.0.1/roundcube/ and https://localhost/roundcube/ and www.mydomain.nl/roundcube/ in firefox and IE7, but still not able to login.
Even if I try to login as admin with Putty on my server and startup the server-console and use the text-mode browser to go to http://localhost/roundcube/ , I'm still not able to login.
The localhost setting you are using in the context described above is different from the context you stated in earlier messages. Did you adapt your configuration to access the IMAP server at localhost instead of with the full qulaified domain name (FQDN)? You most likely should do so first in order to resolve the issue you posted earlier in this thread where you stated the following:

Had a clear moment, checked the Roundcube error-log:
Code: [Select]
[27-May-2008 21:27:39 +0200] IMAP Error: Could not connect to mydomain.nl at port 143: Connection timed out in  on line 0
Global secure IMAP is on, so that shouldn't be the problem.

In order to help us solve your issues it would help if you were to describe  as precise as possible what action you are taking and what is not working as well as the error messages you get (on screen or in the log files). Stating that it does not work does not give us any clue on how to tackle your issues.
Title: Re: Roundcube not accessible
Post by: EdelingF on June 01, 2008, 09:52:26 PM
Cactus,

I think I don't really understand. Do you mean I should alter the template?
Quote
The localhost setting you are using in the context described above is different from the context you stated in earlier messages. Did you adapt your configuration to access the IMAP server at localhost instead of with the full qulaified domain name (FQDN)?

If I'm correct, I should replace $DomainName in the template /etc/e-smith/templates/opt/roundcube/config/main.inc.php/10default_host :

Code: [Select]
{
    $OUT .= "\$rcmail_config['default_host'] = '$DomainName';";
    $OUT .= "\$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Trash');";
    $OUT .= "\$rcmail_config['junk_mbox'] = 'junkmail'; ";
    $OUT .= "\$rcmail_config['sent-mail'] = 'sent-mail'; ";
    $OUT .= "\$rcmail_config['preview_pane'] = TRUE; ";
}

If that's correct, should I just replace '$DomainName' with 'localhost'?
Title: Re: Roundcube not accessible
Post by: EdelingF on June 02, 2008, 08:40:16 PM
Replaced '$DomainName' with 'localhost' in the template /etc/e-smith/templates/opt/roundcube/config/main.inc.php/10default_host and did:

Code: [Select]
expand-template /opt/roundcube/config/main.inc.php
And that solved the problem!  :lol:
Thanks guys