Commit a3ebf393 authored by ale's avatar ale
Browse files

Simplify Roundcube configuration

parent f5b84594
Pipeline #23159 passed with stages
in 26 minutes and 50 seconds
...@@ -3,64 +3,41 @@ ...@@ -3,64 +3,41 @@
/* /*
+-----------------------------------------------------------------------+ +-----------------------------------------------------------------------+
| Local configuration for the Roundcube Webmail installation. | | Local configuration for the Roundcube Webmail installation. |
| |
| This is a sample configuration file only containing the minumum |
| setup required for a functional installation. Copy more options |
| from defaults.inc.php to this file to override the defaults. |
| |
| This file is part of the Roundcube Webmail client |
| Copyright (C) 2005-2013, The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-----------------------------------------------------------------------+ +-----------------------------------------------------------------------+
*/ */
$config = array(); $config = [];
// SQL DATABASE
// Database connection string (DSN) for read+write operations // Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database $config['db_dsnw'] = "mysql://roundcube:{{ roundcube_db_password }}@127.0.0.1:3308/ai_roundcube?charset=utf8mb4";
// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php // LOGGING / DEBUGGING
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
$config['db_dsnw'] = 'mysql://roundcube:{{ roundcube_db_password }}@127.0.0.1:3308/ai_roundcube?charset=utf8mb4'; // Logging configuration.
$config['log_driver'] = 'syslog';
// The mail host chosen to perform the log-in. $config['syslog_id'] = 'roundcube';
// Leave blank to show a textbox at login, give a list of hosts $config['syslog_facility'] = LOG_MAIL;
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // IMAP
// 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
$config['default_host'] = 'localhost'; $config['default_host'] = 'localhost';
$config['default_port'] = 10143; $config['default_port'] = 10143;
// SMTP server host (for sending mails). // IMAP protocol configuration, Dovecot-specific. Most of these are
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// // optimizations so Roundcube can skip auto-detection of features.
// If left blank, the PHP mail() function is used $config['imap_timeout'] = 10;
// Supported replacement variables: $config['imap_vendor'] = 'dovecot';
// %h - user's IMAP hostname $config['imap_force_caps'] = true;
// %n - hostname ($_SERVER['SERVER_NAME']) $config['imap_dual_use_folders'] = true;
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = '127.0.0.1';
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the // SMTP
// deprecated SSL over SMTP (aka SMTPS))
$config['smtp_port'] = 10025;
// SMTP username (if required) if you use %u as the username Roundcube $config['smtp_server'] = '127.0.0.1';
// will use the current username for login $config['smtp_port'] = 10025;
$config['smtp_user'] = '%u'; $config['smtp_user'] = '%u';
// Use the SSO ticket (from the request environment via mod_sso) as the SMTP password.
// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$config['smtp_pass'] = $_SERVER['SSO_TICKET']; $config['smtp_pass'] = $_SERVER['SSO_TICKET'];
// Other SMTP parameters. // Other SMTP parameters.
...@@ -72,17 +49,7 @@ $config['smtp_helo_host'] = '{{ shard_id }}.webmail.{{ domain }}'; ...@@ -72,17 +49,7 @@ $config['smtp_helo_host'] = '{{ shard_id }}.webmail.{{ domain }}';
// timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511) // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
$config['smtp_timeout'] = 0; $config['smtp_timeout'] = 0;
// SMTP socket context options // UI CUSTOMIZATION
// See http://php.net/manual/en/context.ssl.php
// The example below enables server certificate validation, and
// requires 'smtp_timeout' to be non zero.
// $config['smtp_conn_options'] = array(
// 'ssl' => array(
// 'verify_peer' => true,
// 'verify_depth => 3,
// 'cafile' => '/etc/ai/ca.pem',
// ),
// );
// Name your service. This is displayed on the login screen and in the window title // Name your service. This is displayed on the login screen and in the window title
$config['product_name'] = 'A/I Webmail'; $config['product_name'] = 'A/I Webmail';
...@@ -92,32 +59,28 @@ $config['product_name'] = 'A/I Webmail'; ...@@ -92,32 +59,28 @@ $config['product_name'] = 'A/I Webmail';
// please provide a string of exactly 24 chars. // please provide a string of exactly 24 chars.
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
$config['des_key'] = '{{ roundcube_secret }}'; $config['des_key'] = '{{ roundcube_secret }}';
//$config['cipher_method'] = 'AES-256-CBC'; $config['cipher_method'] = 'AES-256-CBC';
// skin name: folder from skins/
$config['skin'] = 'elastic'; $config['skin'] = 'elastic';
$config['skin_logo'] = '/images/r_logo.png'; $config['skin_logo'] = '/images/r_logo.png';
// SYSTEM PARAMETERS
// Session cookie settings. // Session cookie settings.
$config['session_domain'] = ''; $config['session_domain'] = '';
$config['session_path'] = '/'; $config['session_path'] = '/';
$config['session_lifetime'] = 60; $config['session_lifetime'] = 60;
// Password charset.
// Use it if your authentication backend doesn't support UTF-8.
// Defaults to ISO-8859-1 for backward compatibility
$config['password_charset'] = 'UTF-8';
// Use this charset as fallback for message decoding // Use this charset as fallback for message decoding
$config['default_charset'] = 'UTF-8'; $config['default_charset'] = 'UTF-8';
// Use the system-wide mime.types file. // Use the system-wide mime.types file.
$config['mime_types'] = '/etc/mime.types'; $config['mime_types'] = '/etc/mime.types';
// Do not leak the Roundcube version. // Set User-Agent on outgoing emails.
$config['useragent'] = 'Roundcube Webmail'; $config['useragent'] = 'Roundcube Webmail';
// Do not save drafts to browser's localstorage // Do not save drafts to browser's localstorage.
$config['compose_save_localstorage'] = false; $config['compose_save_localstorage'] = false;
// Display these folders separately in the mailbox list. // Display these folders separately in the mailbox list.
...@@ -133,14 +96,6 @@ $config['junk_mbox'] = 'Spam'; ...@@ -133,14 +96,6 @@ $config['junk_mbox'] = 'Spam';
// Disable the build-in spell checker. // Disable the build-in spell checker.
$config['enable_spellcheck'] = false; $config['enable_spellcheck'] = false;
// IMAP protocol configuration, Dovecot-specific.
// Most of these are optimizations so Roundcube can skip auto-detection of
// some features.
$config['imap_timeout'] = 10;
$config['imap_vendor'] = 'dovecot';
$config['imap_force_caps'] = true;
$config['imap_dual_use_folders'] = true;
// List of active plugins (in plugins/ directory) // List of active plugins (in plugins/ directory)
$config['plugins'] = array( $config['plugins'] = array(
'archive', 'archive',
...@@ -152,11 +107,6 @@ $config['plugins'] = array( ...@@ -152,11 +107,6 @@ $config['plugins'] = array(
'zipdownload', 'zipdownload',
); );
// Logging configuration.
$config['log_driver'] = 'syslog';
$config['syslog_id'] = 'roundcube';
$config['syslog_facility'] = LOG_MAIL;
// Proxies to trust with the X-Forwarded-Proto header. To our Apache, all // Proxies to trust with the X-Forwarded-Proto header. To our Apache, all
// addresses look like localhost. This makes Roundcube detect HTTPS properly. // addresses look like localhost. This makes Roundcube detect HTTPS properly.
$config['proxy_whitelist'] = array( $config['proxy_whitelist'] = array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment