Author Topic: Can't get Roundcube to connect over SSL IMAP  (Read 6789 times)

Offline d4rk0n3

  • Newbie
  • *
  • Posts: 2
Can't get Roundcube to connect over SSL IMAP
« on: January 18, 2013, 05:21:39 AM »
Hi,

I've setup my mailserver to use openssl over smtp and imap, it works fine with other clients but i cannot for the love of me figure out why it isn't working with my roundcube setup.

I've gotten this far, when i configure roundcube like this:

Code: [Select]
$rcmail_config['default_host'] = 'imap.jonnyeriksson.com';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 993;

// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['imap_auth_type'] = null;

I can see that the connection is being attempted in the mailserver logs, however, they fail

Code: [Select]
"TCPIP" 4492 "2013-01-18 11:04:16.042" "TCPConnection - Posting AcceptEx on 0.0.0.0:993"
"DEBUG" 4492 "2013-01-18 11:04:16.044" "Creating session 138"
"TCPIP" 3212 "2013-01-18 11:04:51.899" "TCPConnection - SSL handshake with client failed. Error code: 1, Message: asio.ssl error, Remote IP: 85.226.5.202"

Then i change my configuration to have ssl:// as specified in the roundcube configuration for ssl setups like this:

Code: [Select]
$rcmail_config['default_host'] = 'ssl://imap.jonnyeriksson.com';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 993;

// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['imap_auth_type'] = null;

Now the log is blank, there's no connection attempted from roundcube? The server works fine for other clients (droid & outlook). I'm sure it's just a configuration issue how to negotiate the ssl, any ideas?

Thanks.

Offline d4rk0n3

  • Newbie
  • *
  • Posts: 2
Re: Can't get Roundcube to connect over SSL IMAP
« Reply #1 on: January 18, 2013, 03:45:09 PM »
Took a little tweaking but i finally figured it out..

I'm new to the whole ssl thing so first of all i never enabled ssl in apache then second i didn't do it in php either, so doh.

Works great now, just though i'd update.