Index: config/defaults.inc.php
--- config/defaults.inc.php.orig	2025-02-08 09:47:50.000000000 +0100
+++ config/defaults.inc.php	2025-02-09 00:07:52.379674000 +0100
@@ -33,7 +33,7 @@
 //       for Mysql: key, cipher, cert, capath, ca, verify_server_cert,
 //       for Postgres: application_name, sslmode, sslcert, sslkey, sslrootcert, sslcrl, sslcompression, service.
 //       e.g. 'mysql://roundcube:@localhost/roundcubemail?verify_server_cert=false'
-$config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail';
+$config['db_dsnw'] = 'pgsql://roundcube:roundcube@localhost/roundcube';
 
 // Database DSN for read-only operations (if empty write database will be used)
 // useful for database replication
@@ -540,11 +540,11 @@
 // use this folder to store log files
 // must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
 // This is used by the 'file' log driver.
-$config['log_dir'] = RCUBE_INSTALL_PATH . 'logs/';
+$config['log_dir'] = '@l_prefix@/var/roundcube/log/';
 
 // Location of temporary saved files such as attachments and cache files
 // must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
-$config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/';
+$config['temp_dir'] = '@l_prefix@/var/roundcube/tmp/';
 
 // expire files in temp_dir after 48 hours
 // possible units: s, m, h, d, w
@@ -778,7 +778,7 @@
 // This is used to derive mime-types from the filename extension or vice versa.
 // Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
 // download it from https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
-$config['mime_types'] = null;
+$config['mime_types'] = '@l_prefix@/etc/apache/mime.types';
 
 // path to imagemagick identify binary (if not set we'll use Imagick or GD extensions)
 $config['im_identify_path'] = null;
