• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Roundcube config.local.php not read

Visnet

Basic Pleskian
Username:

TITLE


Roundcube config.local.php not read

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Product version: Plesk Obsidian 18.0.65.2
OS version: AlmaLinux 9.5 x86_64
Build date: 2024/11/22 08:00
Revision: 738ea4038904b53a068e522aa7c64390f4f29d5f

PROBLEM DESCRIPTION

As the release notes for Plesk Obsidian 18.0.65 indicated:
Added the separate /usr/share/psa-roundcube/config/config.local.php file to the Roundcube webmail configuration. This file can be used to store customer’s customizations, so that they would not be lost when updating Roundcube. (PPPM-14193)

Unfortunately, it doesn't seem that any customizations in this file are being read.

I have found Resolved - Roundcube config.local.php on the forums, but this doesn't solve my issue.

STEPS TO REPRODUCE

  1. (Re)install Roundcube 1.6.9.x on AlmaLinux 9 with Plesk Obsidian 18.0.65 or higher.
  2. Create PHP file /usr/share/psa-roundcube/config/config.local.php with for example:
    PHP:
    $config['plugins'] = array('archive', 'managesieve', 'markasjunk', 'show_additional_headers', 'zipdownload');
  3. Login to webmail for any domain on the server.
  4. Notice that the 'Archive' doesn't appear in the menu bar for a selected message. The 'archive' plugin should automatically provide this. It's also still possible to change passwords through Roundcube ('set_password' is not included in the new plugins array)

ACTUAL RESULT

Most obvious issues:
  • The 'Archive' doesn't appear in the menu bar for a selected message. The 'archive' plugin should automatically provide this.
  • It's also still possible to change passwords through Roundcube (even though 'set_password' is not included in the new plugins array used in config.local.php)

EXPECTED RESULT

I expect the local custom configuration to be loaded correctly.

ANY ADDITIONAL INFORMATION

Permissions:
Bash:
ls -l /usr/share/psa-roundcube/config/
total 80
-rw-r-----. 1 root roundcube_sysgroup   461 Nov 12 10:27 config.inc.php
-rw-r-----. 1 root roundcube_sysgroup   346 Dec 10 14:57 config.local.php
-rw-r-----. 1 root roundcube_sysgroup 65292 Oct 29 15:24 defaults.inc.php
-rw-r--r--. 1 root root                2806 Oct 29 15:24 mimetypes.php
-rw-r--r--. 1 root root                 687 Oct 29 15:24 php.ini.tpl


Content of file /usr/share/psa-roundcube/config/config.inc.php :
PHP:
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.

// Do not modify this file, as your changes would be lost on Plesk update.
// Edit /usr/share/psa-roundcube/config/config.local.php instead.

$config = array();
$config['db_dsnw'] = 'mysql://roundcube:DdLhSY389fETc9@localhost/roundcubemail';

if (is_readable('/usr/share/psa-roundcube/config/config.local.php')) {
    include  '/usr/share/psa-roundcube/config/config.local.php';
}

Content of file /usr/share/psa-roundcube/config/config.local.php (note: I have redacted comment line and server hostname) :
PHP:
<?php
# Comment line

$config['force_https'] = true;
$config['use_https'] = false;

$config['smtp_port'] = 587;

$config['smtp_server'] = 'tls://server.example.com';

$config['plugins'] = array('archive', 'attachment_reminder', 'hide_blockquote', 'managesieve', 'markasjunk', 'show_additional_headers', 'zipdownload');

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
I have tried to reproduce the issue with your config.local.php and can't confirm the issue. At the same time, I don't see issues with file content and/or permissions; it looks correct,

Code:
# plesk version
Product version: Plesk Obsidian 18.0.65.2
     OS version: AlmaLinux 9.4 x86_64
[...]     

# ls -la /usr/share/psa-roundcube/config/config.*
-rw-r-----. 1 root roundcube_sysgroup 461 Dec  9 17:07 /usr/share/psa-roundcube/config/config.inc.php
-rw-r-----. 1 root roundcube_sysgroup 361 Dec 10 15:42 /usr/share/psa-roundcube/config/config.local.php

<?php
# Comment line

$config['force_https'] = true;
$config['use_https'] = false;

$config['smtp_port'] = 587;

$config['smtp_server'] = 'tls://server.example.com';

$config['plugins'] = array('archive', 'attachment_reminder', 'hide_blockquote', 'managesieve', 'markasjunk', 'show_additional_headers', 'zipdownload');

$config['product_name'] = 'My Webmail2';

#

Right from the first login screen, it is possible to check that settings are applied ("My Webmail2"),
I also tried to send an email, but it failed because "server.example.com" does not exist; this also means the settings are applied.

Code:
# grep server.example.com /var/log/plesk-roundcube/errors
[10-Dec-2024 15:43:21 UTC] PHP Warning:  stream_socket_client(): php_network_getaddresses: getaddrinfo for server.example.com failed: Name or service not known in /usr/share/psa-roundcube/vendor/pear/net_socket/Net/Socket.php on line 158
[...]
 
@AYamshanov , thanks for the quick reply.

After some more additional testing I have found the issue with not seeing the Archive button: during migration the Roundcube settings per mail user were not migrated (expected behavior), causing to have to manually reconfigure an Archive folder in the Special Folders settings. After configuring this, the Archive button appears.

Thanks for suggesting $config['product_name'], that helped verify if the file was loaded.

Unfortunately, I was not able to replicate trying to generate errors by using $config['smtp_server'] = 'tls://server.example.com';. Using this value I could still send e-mails without issue, and no error was logged in /var/log/plesk-roundcube/errors.

I don't suppose Roundcube for Plesk is caching the PHP files, right?
 
Back
Top