Koozali.org: home of the SME Server

Roundcube not accessible

Offline EdelingF

  • *****
  • 215
  • +0/-0
Roundcube not accessible
« on: May 26, 2008, 07:33:08 PM »
I've tried to install the Roundcube-contrib like in 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?
...

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Roundcube not accessible
« Reply #1 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

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #2 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?
...

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #3 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.

...

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Roundcube not accessible
« Reply #4 on: May 29, 2008, 10:45:47 PM »
What happenes when  you do:

Code: [Select]
telnet mydomain.nl 143
??
« Last Edit: May 30, 2008, 12:19:02 AM by Gert »

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #5 on: May 30, 2008, 07:50:49 PM »
No results, just

Code: [Select]
Trying xx.xx.xx.xx...
Seems like IMAP is not working ?
...

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Roundcube not accessible
« Reply #6 on: May 30, 2008, 09:08:19 PM »
What about:

Code: [Select]
config show imap
and

Code: [Select]
config show imaps
??

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #7 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?
...

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Roundcube not accessible
« Reply #8 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.

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #9 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?
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Roundcube not accessible
« Reply #10 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Roundcube not accessible
« Reply #11 on: June 01, 2008, 12:05:31 AM »
Roundcube should work now.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Roundcube not accessible
« Reply #12 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 is suggesting he is using his FQDN instead of localhost.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #13 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.
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Roundcube not accessible
« Reply #14 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #15 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'?
...

Offline EdelingF

  • *****
  • 215
  • +0/-0
Re: Roundcube not accessible
« Reply #16 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
...