Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: Bud 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 :-)
-
I don't have Roundcube installed, so not experienced with it, but just a quick check, did you complete this step?
Customize Roundcube settings
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
-
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? :-)
-
Check the contents of your actual config file:
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)
-
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;
-
No IMAP setting there then.
Can you post this if it exists
cat /opt/roundcube/config/config.inc.php
Also
cat /opt/roundcube/config/defaults.inc.php
Just trying to see where your settings are and what they are.
-
Ahhh hang on.
$config['default_host'] = 'ssl://myserver.com';
Did you amend that line prior to pasting here?
It is set by 30IMAP like this
{$OUT .= " \$config['default_host'] = 'ssl://$DomainName';\n";}
So it should have your domain name in there.
-
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:
// system error reporting, sum of: 1 = log; 4 = show, 8 = trace
$config['debug_level'] = 1; << try 4 here
// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = false; << try true here
See what it logs.
-
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
-
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?
-
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 :(
-
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 :-)
-
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
-
@Bud,
It would be handy if @Warren pasted which rpms he has installed
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:
/var/log/messages
/var/log/httpd/error_log
(and access_log)
Try tailing them in a console as you access the page:
tailf /var/log/messages
Let us know and we'll try and get you working :-)
-
@Bud,
It would be handy if @Warren pasted which rpms he has installed
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:
/var/log/messages
/var/log/httpd/error_log
(and access_log)
Try tailing them in a console as you access the page:
tailf /var/log/messages
Let us know and we'll try and get you working :-)
Here is the php56* rpms on my system :
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
-
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 :-)
-
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?
-
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 :-)
-
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 :-)
-
Cool, and thanks for taking the time to do that.
Let's see what he has then :-)
-
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
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:
$mode = 0, $env = ''
To a function that is only expecting:
$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:
config show roundcube
config show imap
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:
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?
-
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