Roundcube Community Forum

 

Can't get Roundcube to connect over SSL IMAP

Started by d4rk0n3, January 18, 2013, 05:21:39 AM

Previous topic - Next topic

d4rk0n3

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:

$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

"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:

$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.

d4rk0n3

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.