Roundcube Community Forum

 

Accounts plugin

Started by doctor madness, December 09, 2009, 04:06:30 AM

Previous topic - Next topic

SKaero


rosali

It does not word due to missing SSL support of you PHP installation. That's no Roundcube issue. Please contact your host.
Regards,
Rosali

doctor madness

I can connect to my remote imap server using telnet, netcat, thunderbird. so I think it's not a problem on my host (i'm the admin of this host) neither network related problem. Maybe my php installation is wrong, but I'm very unskilled in this world. So any help should be very appreciated

SKaero

You can try asking on http://serverfault.com/ you need to install OpenSSL for it to work.

doctor madness

Hi,

Thank you for your suggestion, but my remote IMAP server is not using SSL.

doctor madness

#20
I finally get it working !

When i tried the code provided by Rosali, and I found I need to replace the "false" in the "$prot" variable with "notls" according to php_imap documentation. Then the test works.

So, I made the following changes in accounts.php :
Line 116 : $imap_open = "{" . $imap_host . ":" . $imap_port . "/imap/" . $prot . "/novalidate-cert}INBOX";
replaced with :
$imap_open = "{" . $imap_host . ":" . $imap_port . "/imap/" . $prot . "/notls}INBOX";
Line 120 : $imap_open = "{" . $imap_host . ":" . $imap_port . "/novalidate-cert}INBOX";
replaced with :
$imap_open = "{" . $imap_host . ":" . $imap_port . "/notls}INBOX";
Line 320 : $prot = FALSE;
replaced with :
$prot = notls;
Line 652 : $prot = FALSE;
Replaced with :
$prot = notls;

And it works !
So, I presume "false" make php_imap uses tls, but my remote IMAP server is nor SSL nor TLS compliant.
I don't have any skill in PHP, but I think a good thing could be to allow user to choose SSL/TLS/Nothing in accounts menu, or to allow RC admin to set this setting in config.php.inc

I contacted ppl developping this plugin to include my correction/suggestions

Regards,
Damien