Author Topic: Configuring SSL for Secure Webmail  (Read 5007 times)

emagin

  • Guest
Configuring SSL for Secure Webmail
« on: July 13, 2006, 12:19:45 PM »
I am trying to use Roundcube in SSL mode at a hosted location.
I have 0.1b running with standard setup with no issues.

The config file shows:
// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'localhost';

Can someone give me an example of how to do this properly.
Currently my host offers horde and squirrelmail at  port 2096  https://domain.com:2096

Questions:

1) How do I know what port to use, can it be the same port as other mail apps, I assume that's where imap is running

2) Since this is hosted, do I use ssl://localhost:2096

I've tried a few things for $rcmail_config and am not having any luck because of the combinations to test, not sure what to test for.

If someone could help with this I would appreciate it!

Offline trolley

  • Jr. Member
  • **
  • Posts: 19
Re: Configuring SSL for Secure Webmail
« Reply #1 on: July 13, 2006, 02:52:24 PM »
That's just the port their SSL webserver is running on. If I were you I'd try putting this:

Code: [Select]
$rcmail_config['default_host'] = 'ssl://domain.com:993';
That should work for you, since their IMAPS is likely running on the default port, even if the webserver hosting the webmail apps isn't.

Offline dogbody

  • Newbie
  • *
  • Posts: 5
Re: Configuring SSL for Secure Webmail
« Reply #2 on: July 18, 2006, 02:20:40 AM »
...that's how you make the communication between your roundcube server and your imap server secure...

and if you're trying to make the login page (and all other access) to roundcube secure (SSL) then you should look at your web server's configuration rather than the roundcube configuration.

For apache I setup 1 virtual host listening on port 443, and another listening on 80.
Then in the virtual host for port 80 add:

RewriteEngine On
RewriteRule ^(.*)$ https://myroundcubeserver.mydomain.com$1


But since in your particular case 2096 is your ssl port you should make the secure virtual host listen on 2096 instead of 443 and the rewrite rule in the virtual host listening on port 80 should be:

RewriteRule ^(.*)$ https://myroundcubeserver.mydomain.com:2096$1