Koozali.org: home of the SME Server

[ SOLVED ] Roundcube IMAP Connection issue

Offline Bud

  • *
  • 487
  • +0/-0
[ SOLVED ] Roundcube IMAP Connection issue
« on: August 09, 2018, 02:44:20 AM »
guys please can you help

using SME 9.2

installed roundcube contrib as per https://wiki.contribs.org/RoundCube

i have disabled webmail in server console
when i try to login with any user credentials i get " Connection to IMAP server failed "

i have checked the imap service and it is running

generic " HORDE " webmail client works when i " ENABLE " webmail in server console

any help greatly appreciated  :-)
« Last Edit: August 15, 2018, 06:10:13 AM by Bud »

Offline calisun

  • *
  • 601
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #1 on: August 11, 2018, 12:49:31 AM »
I don't have Roundcube installed, so not experienced with it, but just a quick check, did you complete this step?

Customize Roundcube settings
Code: [Select]
ls /etc/e-smith/templates/etc/roundcubemail/config.inc.php/
10SQL_DATABASE  20LOGGING_DEBUGGING  30IMAP  40SMTP  50LDAP  60SYSTEM  70USER_INTERFACE  80ADDRESSBOOKS_SETTINGS  90USER_PREFERENCES  95PLUGINS  template-begin  template-end
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline Bud

  • *
  • 487
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #2 on: August 12, 2018, 08:59:22 AM »
calisun thank you for helping

when i do:
# ls /etc/e-smith/templates/etc/roundcubemail/config.inc.php/
10SQL_DATABASE  20LOGGING_DEBUGGING  30IMAP  40SMTP  50LDAP  60SYSTEM  70USER_INTERFACE  80ADDRESSBOOKS_SETTINGS  90USER_PREFERENCES  95PLUGINS  template-begin  template-end

when i try to login with any user credentials i get " Connection to IMAP server failed "

same issue

any ideas?  :-)



Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: Roundcube IMAP Connection issue
« Reply #3 on: August 12, 2018, 11:09:12 AM »
Check the contents of your actual config file:

Code: [Select]
cat /etc/roundcubemail/config.inc.php

What is in the IMAP section?

(I think the conf is there for SME v9 but was somewhere in /opt for SME v8)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #4 on: August 12, 2018, 06:38:57 PM »
ReetP thank you for your input

the roundcube config.php

// ----------------------------------
// IMAP
// ----------------------------------

// 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/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
//          required to match old user data records with the new host.
       $config['default_host'] = 'ssl://myserver.com';


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


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

// IMAP socket context options
// See http://php.net/manual/en/context.ssl.php
// The example below enables server certificate validation
//$config['imap_conn_options'] = array(
//  'ssl'         => array(
//     'verify_peer'  => true,
//     'verify_depth' => 3,
//     'cafile'       => '/etc/openssl/certs/ca.crt',
//   ),
// );
$config['imap_conn_options'] = null;

// IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
$config['imap_timeout'] = 0;

// Optional IMAP authentication identifier to be used as authorization proxy
$config['imap_auth_cid'] = null;

// Optional IMAP authentication password to be used for imap_auth_cid
$config['imap_auth_pw'] = null;

// If you know your imap's folder delimiter, you can specify it here.
// Otherwise it will be determined automatically
$config['imap_delimiter'] = null;

// If IMAP server doesn't support NAMESPACE extension, but you're
// using shared folders or personal root folder is non-empty, you'll need to
// set these options. All can be strings or arrays of strings.
// Folders need to be ended with directory separator, e.g. "INBOX."
// (special directory "~" is an exception to this rule)
// These can be used also to overwrite server's namespaces
$config['imap_ns_personal'] = null;
$config['imap_ns_other']    = null;
$config['imap_ns_shared']   = null;

// By default IMAP capabilities are readed after connection to IMAP server
// In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
// after login. Set to True if you've got this case.
$config['imap_force_caps'] = false;

// By default list of subscribed folders is determined using LIST-EXTENDED
// extension if available. Some servers (dovecot 1.x) returns wrong results
// for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
// Enable this option to force LSUB command usage instead.
// Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED')
$config['imap_force_lsub'] = false;

// Some server configurations (e.g. Courier) doesn't list folders in all namespaces
// Enable this option to force listing of folders in all namespaces
$config['imap_force_ns'] = false;

// List of disabled imap extensions.
// Use if your IMAP server has broken implementation of some feature
// and you can't remove it from CAPABILITY string on server-side.
// For example UW-IMAP server has broken ESEARCH.
// Note: Because the list is cached, re-login is required after change.
$config['imap_disabled_caps'] = array();

// Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
$config['imap_cache'] = null;

// Enables messages cache. Only 'db' cache is supported.
// This requires an IMAP server that supports QRESYNC and CONDSTORE
// extensions (RFC7162). See synchronize() in program/lib/Roundcube/rcube_imap_cache.php
// for further info, or if you experience syncing problems.
$config['messages_cache'] = false;

// Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w
$config['imap_cache_ttl'] = '10d';

// Lifetime of messages cache. Possible units: s, m, h, d, w
$config['messages_cache_ttl'] = '10d';

// Maximum cached message size in kilobytes.
// Note: On MySQL this should be less than (max_allowed_packet - 30%)
$config['messages_cache_threshold'] = 50;

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: Roundcube IMAP Connection issue
« Reply #5 on: August 12, 2018, 08:55:07 PM »
No IMAP setting there then.

Can you post this if it exists

Code: [Select]
cat /opt/roundcube/config/config.inc.php

Also

Code: [Select]
cat /opt/roundcube/config/defaults.inc.php
Just trying to see where your settings are and what they are.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: Roundcube IMAP Connection issue
« Reply #6 on: August 13, 2018, 11:30:13 AM »
Ahhh hang on.

Quote
$config['default_host'] = 'ssl://myserver.com';

Did you amend that line prior to pasting here?

It is set by 30IMAP like this

Code: [Select]
{$OUT .= "   \$config['default_host'] = 'ssl://$DomainName';\n";}
So it should have your domain name in there.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: Roundcube IMAP Connection issue
« Reply #7 on: August 13, 2018, 11:34:24 AM »
PS - you could try copying

/etc/e-smith/templates/etc/roundcubemail/config.inc.php/20LOGGING_DEBUGGING

to

/etc/e-smith/templates-custom/etc/roundcubemail/config.inc.php/20LOGGING_DEBUGGING

Then change these settings in the file:

Code: [Select]
// system error reporting, sum of: 1 = log; 4 = show, 8 = trace
$config['debug_level'] = 1;  << try 4 here

Code: [Select]
// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = false; << try true here

See what it logs.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #8 on: August 15, 2018, 06:16:26 AM »
calisun and ReetP thank you for your efforts, much appreciated

well i found out what the issue was

i installed the PHP Software Collections contrib " https://wiki.contribs.org/PHP_Software_Collections " quite a while ago and set it to PHP56 ( using server manager )

when i installed Roundcube and tried to login i experienced the " Connection to IMAP server failed " error.

when i set the PHP Version to DEFAULT and then try to login with Roundcube, IT WORKS!!

Thanks again guys  :P

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #9 on: August 15, 2018, 09:54:34 AM »
Ok, so it is the change in PHP versions that causes the issue.

But that isn't really a fix (this is possibly a bug)

Roundcube should run under php56, and what happens if you have another webapp that requires 5.6, or 7.x ?

Be nice to try and find the issue.

Was there nothing at all in your logs?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline warren

  • *
  • 291
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #10 on: August 15, 2018, 11:58:29 PM »
Ok, so it is the change in PHP versions that causes the issue.

But that isn't really a fix (this is possibly a bug)

Roundcube should run under php56, and what happens if you have another webapp that requires 5.6, or 7.x ?

Be nice to try and find the issue.

Was there nothing at all in your logs?

I've got sme9.2 with PHP Software collection installed(smeserver-php-scl ) , with the
PHP-mod version for the server set : php56 and roundcube installed.....all works...

The Kicker is that i had the same issue and i "Think" i had to install some additional php56 modules from the @remi-safe  repo.
I cant find my notes at moment.
Damn , getting old, first gotta make notes then cant find them  :(

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #11 on: August 16, 2018, 12:27:22 AM »
Well done.

Yes you often do need to manually add extra rpms. Sensible to update though. If you get PHP issues most devs will not listen if you are on 5.3 (or 5.4)

Notes... I know the feeling. I make copious ones. And then can't find them :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #12 on: August 16, 2018, 12:51:20 AM »
ReetP this is the error code

Default SME 9.2 PHP is Version = 5.3.3

Just for those that need help
After installing the PHP Software Collections Contrib you will have a menu option " Server Manager > Configurations > PHP-SCL Versions "

when you choose the " PHP-mod version " option and change the PHP Version to either
PHP54
PHP55
PHP56
PHP70
PHP71

RounCube will now give you the " Connection to IMAP server failed " so you cannot login to the webmail system

the RoundCube Error Log shows the following:
IMAP Error: Login failed for bob from 192.0.0.25. Could not connect to ssl://myserver.com:993: Unknown reason in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line 198 (POST /webmail/?_task=login?_task=login&_action=login)

is there any other log i need to look at?

hope this helps

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #13 on: August 16, 2018, 01:11:31 AM »
@Bud,

It would be handy if @Warren pasted which rpms he has installed

Code: [Select]
rpm -qa |grep php56
You can then check and make sure the lists match.

Second you can take a look in both of these for errors:

Code: [Select]
/var/log/messages
Code: [Select]
/var/log/httpd/error_log(and access_log)

Try tailing them in a console as you access the page:

Code: [Select]
tailf /var/log/messages
Let us know and we'll try and get you working :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline warren

  • *
  • 291
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #14 on: August 16, 2018, 09:11:05 PM »
@Bud,

It would be handy if @Warren pasted which rpms he has installed

Code: [Select]
rpm -qa |grep php56
You can then check and make sure the lists match.

Second you can take a look in both of these for errors:

Code: [Select]
/var/log/messages
Code: [Select]
/var/log/httpd/error_log(and access_log)

Try tailing them in a console as you access the page:

Code: [Select]
tailf /var/log/messages
Let us know and we'll try and get you working :-)

Here is the php56* rpms on my system :

Quote
php56-php-pdo-5.6.37-1.el6.remi.x86_64
php56-php-pecl-xattr-1.3.0-1.el6.remi.x86_64
php56-php-pspell-5.6.37-1.el6.remi.x86_64
php56-php-ioncube-loader-10.2.3-1.el6.remi.x86_64
php56-runtime-2.3-1.el6.remi.x86_64
php56-php-pecl-json-post-1.0.1-1.el6.remi.x86_64
php56-php-5.6.37-1.el6.remi.x86_64
php56-php-enchant-5.6.37-1.el6.remi.x86_64
php56-php-mcrypt-5.6.37-1.el6.remi.x86_64
php56-php-common-5.6.37-1.el6.remi.x86_64
php56-php-pear-1.10.5-5.el6.remi.noarch
php56-php-mysqlnd-5.6.37-1.el6.remi.x86_64
php56-php-process-5.6.37-1.el6.remi.x86_64
php56-php-tidy-5.6.37-1.el6.remi.x86_64
php56-php-bcmath-5.6.37-1.el6.remi.x86_64
php56-php-ldap-5.6.37-1.el6.remi.x86_64
php56-php-snmp-5.6.37-1.el6.remi.x86_64
php56-php-soap-5.6.37-1.el6.remi.x86_64
php56-php-imap-5.6.37-1.el6.remi.x86_64
php56-php-gd-5.6.37-1.el6.remi.x86_64
php56-2.3-1.el6.remi.x86_64
php56-php-gmp-5.6.37-1.el6.remi.x86_64
php56-php-xml-5.6.37-1.el6.remi.x86_64
php56-php-pecl-zip-1.15.3-1.el6.remi.x86_64
php56-php-cli-5.6.37-1.el6.remi.x86_64
php56-php-mbstring-5.6.37-1.el6.remi.x86_64
php56-php-intl-5.6.37-1.el6.remi.x86_64
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #15 on: August 17, 2018, 01:09:42 AM »
Here is the php56* rpms on my system :

Cool, and thanks for taking the time to do that.

Let's see what he has then :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #16 on: August 18, 2018, 04:53:06 PM »
these are my findings

Code: [Select]
rpm -qa |grep php56

php56-php-soap-5.6.37-1.el6.remi.x86_64
php56-runtime-2.3-1.el6.remi.x86_64
php56-php-xml-5.6.37-1.el6.remi.x86_64
php56-php-5.6.37-1.el6.remi.x86_64
php56-php-fpm-5.6.37-1.el6.remi.x86_64
php56-php-gd-5.6.37-1.el6.remi.x86_64
php56-php-magickwand-1.0.9.2-14.el6.remi.x86_64
php56-php-pecl-zip-1.15.3-1.el6.remi.x86_64
php56-php-snmp-5.6.37-1.el6.remi.x86_64
php56-php-pecl-rar-4.0.0-1.el6.remi.x86_64
php56-php-bcmath-5.6.37-1.el6.remi.x86_64
php56-php-pecl-xattr-1.3.0-1.el6.remi.x86_64
php56-php-pdo-5.6.37-1.el6.remi.x86_64
php56-php-process-5.6.37-1.el6.remi.x86_64
php56-php-opcache-5.6.37-1.el6.remi.x86_64
php56-php-ldap-5.6.37-1.el6.remi.x86_64
php56-php-cli-5.6.37-1.el6.remi.x86_64
php56-php-xmlrpc-5.6.37-1.el6.remi.x86_64
php56-php-mcrypt-5.6.37-1.el6.remi.x86_64
php56-php-pear-1.10.5-5.el6.remi.noarch
php56-php-libvirt-0.4.8-2.el6.remi.x86_64
php56-php-imap-5.6.37-1.el6.remi.x86_64
php56-2.3-1.el6.remi.x86_64
php56-php-common-5.6.37-1.el6.remi.x86_64
php56-php-mbstring-5.6.37-1.el6.remi.x86_64
php56-php-tidy-5.6.37-1.el6.remi.x86_64
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64
php56-php-mysqlnd-5.6.37-1.el6.remi.x86_64
php56-php-enchant-5.6.37-1.el6.remi.x86_64
php56-php-intl-5.6.37-1.el6.remi.x86_64

Code: [Select]
/var/log/messages

Aug 18 16:42:19 sme httpd: PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /usr/share/roundcubemail/program/include/rcmail.php on line 30
Aug 18 16:42:40 sme httpd: PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /usr/share/roundcubemail/program/include/rcmail.php on line 30


Code: [Select]
/var/log/httpd/error_log

ocsinventory-server: Bad setting. `SNMP` is not set. Default: `1`
ocsinventory-server: Bad setting. `DOWNLOAD_EXECUTION_TIMEOUT` is not set. Default: `120`
ocsinventory-server: Bad setting. `SNMP_INVENTORY_DIFF` is not set. Default: `1`
[Sat Aug 18 12:46:17 2018] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Aug 18 12:46:17 2018] [warn] RSA server certificate CommonName (CN) `sme.myserver.com' does NOT match server name!?
ocsinventory-server: Bad setting. `SNMP` is not set. Default: `1`
ocsinventory-server: Bad setting. `DOWNLOAD_EXECUTION_TIMEOUT` is not set. Default: `120`
ocsinventory-server: Bad setting. `SNMP_INVENTORY_DIFF` is not set. Default: `1`
[Sat Aug 18 12:46:18 2018] [notice] Digest: generating secret for digest authentication ...
[Sat Aug 18 12:46:18 2018] [notice] Digest: done
[Sat Aug 18 12:46:18 2018] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Aug 18 12:46:18 2018] [warn] RSA server certificate CommonName (CN) `sme.myserver.com' does NOT match server name!?
[Sat Aug 18 12:46:18 2018] [notice] FastCGI: process manager initialized (pid 2474)
[Sat Aug 18 12:46:18 2018] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_fastcgi/2.4.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sat Aug 18 13:18:51 2018] [error] [client 37.49.231.105] File does not exist: /home/e-smith/files/ibays/Primary/html/libs

that's it. any ideas?


Offline Bud

  • *
  • 487
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #17 on: August 18, 2018, 04:53:49 PM »
guys please can you help

using SME 9.2

installed roundcube contrib as per https://wiki.contribs.org/RoundCube

i have disabled webmail in server console
when i try to login with any user credentials i get " Connection to IMAP server failed "

i have checked the imap service and it is running

generic " HORDE " webmail client works when i " ENABLE " webmail in server console

any help greatly appreciated  :-)

Offline Bud

  • *
  • 487
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #18 on: August 18, 2018, 04:54:37 PM »
guys please can you help

using SME 9.2

installed roundcube contrib as per https://wiki.contribs.org/RoundCube

i have disabled webmail in server console
when i try to login with any user credentials i get " Connection to IMAP server failed "

i have checked the imap service and it is running

generic " HORDE " webmail client works when i " ENABLE " webmail in server console

any help greatly appreciated  :-)

Offline Bud

  • *
  • 487
  • +0/-0
Re: Roundcube IMAP Connection issue
« Reply #19 on: August 18, 2018, 04:54:59 PM »
Cool, and thanks for taking the time to do that.

Let's see what he has then :-)

Offline ReetP

  • *
  • 3,713
  • +5/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #20 on: August 18, 2018, 06:29:13 PM »
Ok, just for the record I installed it on my testbox with php56 and absolutely no issues barring some plugins moaning that they were either missing or out of date. I could happily login and check mail without issues. So next is figuring what you have done to yours to break it....

these are my findings

Code: [Select]
rpm -qa |grep php56

OK, I can only see a few files different and I'm not sure (especially when we look further down here) that they make a difference.

Yours misses:
php56-php-gmp-5.6.37-1.el6.remi.x86_64
php56-php-pecl-json-post-1.0.1-1.el6.remi.x86_64
php56-php-pspell-5.6.37-1.el6.remi.x86_64

But now you have provided some logs (ALWAYS provide logs - they tell you so much) we get to the nitty gritty

Quote
Code: [Select]
/var/log/messages

Aug 18 16:42:19 sme httpd: PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /usr/share/roundcubemail/program/include/rcmail.php on line 30
Aug 18 16:42:40 sme httpd: PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /usr/share/roundcubemail/program/include/rcmail.php on line 30

So there's a roundcube error (though it may not be the whole problem - just a signpost to other things). However, that's an odd one one.

You shouldn't get it. Your server is supplying:
Code: [Select]
$mode = 0, $env = ''
To a function that is only expecting:
Code: [Select]
$env = ''
Now I can see an issue, and a patch here for a later version:
https://github.com/roundcube/roundcubemail/issues/5649
https://github.com/roundcube/roundcubemail/commit/1b39d9a6c744a393e7930c2493cc2ddc9c9e95bf

-    static function get_instance($env = '')
+    static function get_instance($mode = 0, $env = '')

That patch allows for the $mode var in the get_instance function. The question is why is yours supplying it ?

What have you done to your roundcube install that may have modified some of the code? Have you tried to patch it or update it in any way?

Next, can you just show:

Code: [Select]
config show roundcube
Code: [Select]
config show imap
Code: [Select]
config show imaps
And see what is in:
/var/log/roundcubemail/errors

Ignore the plugin stuff. Anything else besides when you try to login?

I note you have some issues with ocsinventory too. I'd fix those config entries too:

Quote
Code: [Select]
/var/log/httpd/error_log

ocsinventory-server: Bad setting. `SNMP` is not set. Default: `1`
ocsinventory-server: Bad setting. `DOWNLOAD_EXECUTION_TIMEOUT` is not set. Default: `120`
ocsinventory-server: Bad setting. `SNMP_INVENTORY_DIFF` is not set. Default: `1`
that's it. any ideas?


...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Bud

  • *
  • 487
  • +0/-0
Re: [ SOLVED ] Roundcube IMAP Connection issue
« Reply #21 on: August 19, 2018, 07:13:33 AM »
ReetP and warren

ReetP i will have a look at OCS, thank you for your input

[root@sme ~]# config show roundcube
roundcube=service
    DbName=roundcube
    DbPassword=569275064234720
    DbUser=roundcube
    Name=RoundCube IMAP Client
    PluginsList=globaladdressbook,contextmenu,markasjunk2,vcard_attachments,newmail_notifier,emoticons,managesieve
    PublicAccess=global
    URL=webmail
    status=enabled

[root@sme ~]# config show imap
imap=service
    TCPPort=143
    access=private
    status=enabled

[root@sme ~]# config show imaps
imaps=service
    TCPPort=993
    access=public
    status=enabled
[root@sme ~]#

i have not touched Rouncube or made any changes to it, so i'm just in the dark as you

hope this helps