2016-03-28 22:14:19 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
+-----------------------------------------------------------------------+
|
2021-02-25 23:43:48 +01:00
|
|
|
| Local configuration for the Roundcube Webmail installation. |
|
2016-03-28 22:14:19 +02:00
|
|
|
| |
|
2021-02-25 23:43:48 +01:00
|
|
|
| This is a sample configuration file only containing the minimum |
|
|
|
|
| setup required for a functional installation. Copy more options |
|
|
|
|
| from defaults.inc.php to this file to override the defaults. |
|
2016-03-28 22:14:19 +02:00
|
|
|
| |
|
|
|
|
| This file is part of the Roundcube Webmail client |
|
2021-02-25 23:43:48 +01:00
|
|
|
| Copyright (C) The Roundcube Dev Team |
|
2016-03-28 22:14:19 +02:00
|
|
|
| |
|
|
|
|
| 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. |
|
|
|
|
+-----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2016-05-16 22:03:52 +02:00
|
|
|
// Retrieve YunoHost main domain
|
|
|
|
$main_domain = exec('cat /etc/yunohost/current_host');
|
|
|
|
|
2016-03-28 22:14:19 +02:00
|
|
|
$config = array();
|
|
|
|
|
|
|
|
// Database connection string (DSN) for read+write operations
|
|
|
|
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
|
2021-02-25 23:43:48 +01:00
|
|
|
// Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle
|
2016-03-28 22:14:19 +02:00
|
|
|
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
|
2021-02-25 23:43:48 +01:00
|
|
|
// NOTE: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646'
|
|
|
|
// or (Windows): 'sqlite:///C:/full/path/to/sqlite.db'
|
2021-04-21 23:09:56 +02:00
|
|
|
$config['db_dsnw'] = 'mysql://__DB_NAME__:__DB_PWD__@localhost/__DB_NAME__';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
2021-02-25 23:43:48 +01:00
|
|
|
// The IMAP host chosen to perform the log-in.
|
2016-03-28 22:14:19 +02:00
|
|
|
// Leave blank to show a textbox at login, give a list of hosts
|
|
|
|
// to display a pulldown menu or set one host as string.
|
2021-02-25 23:43:48 +01:00
|
|
|
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
|
|
|
|
// prefix tls:// to use STARTTLS.
|
2016-03-28 22:14:19 +02:00
|
|
|
// 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
|
2021-02-25 23:43:48 +01:00
|
|
|
$config['default_host'] = '%t';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
|
|
|
// SMTP server host (for sending mails).
|
2021-02-25 23:43:48 +01:00
|
|
|
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
|
|
|
|
// prefix tls:// to use STARTTLS.
|
2016-03-28 22:14:19 +02:00
|
|
|
// Supported replacement variables:
|
|
|
|
// %h - user's IMAP hostname
|
|
|
|
// %n - hostname ($_SERVER['SERVER_NAME'])
|
|
|
|
// %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
|
2021-02-25 23:43:48 +01:00
|
|
|
// To specify differnt SMTP servers for different IMAP hosts provide an array
|
|
|
|
// of IMAP host (no prefix or port) and SMTP server e.g. ['imap.example.com' => 'smtp.example.net']
|
2016-05-16 22:03:52 +02:00
|
|
|
$config['smtp_server'] = 'tls://' . $main_domain;
|
2016-03-28 22:14:19 +02:00
|
|
|
|
2021-02-25 23:43:48 +01:00
|
|
|
// SMTP port. Use 25 for cleartext, 465 for Implicit TLS, or 587 for STARTTLS (default)
|
2016-05-16 22:03:52 +02:00
|
|
|
$config['smtp_port'] = 587;
|
2016-03-28 22:14:19 +02:00
|
|
|
|
|
|
|
// SMTP username (if required) if you use %u as the username Roundcube
|
|
|
|
// will use the current username for login
|
2016-05-16 22:03:52 +02:00
|
|
|
$config['smtp_user'] = '%u';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
|
|
|
// SMTP password (if required) if you use %p as the password Roundcube
|
|
|
|
// will use the current user's password for login
|
2016-05-16 22:03:52 +02:00
|
|
|
$config['smtp_pass'] = '%p';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
2016-05-21 22:37:48 +02:00
|
|
|
// SMTP socket context options
|
|
|
|
// See http://php.net/manual/en/context.ssl.php
|
|
|
|
// The server certificate validation is disabled, since the server is local
|
|
|
|
// and the communication should be safe. Note that it can be enabled as
|
|
|
|
// needed, just uncomment lines and set 'verify_peer' to true.
|
|
|
|
$config['smtp_conn_options'] = array(
|
|
|
|
'ssl' => array(
|
|
|
|
'verify_peer' => false,
|
|
|
|
// 'verify_depth' => 3,
|
|
|
|
// 'cafile' => '/etc/yunohost/certs/' . $main_domain . '/ca.pem',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-03-28 22:14:19 +02:00
|
|
|
// provide an URL where a user can get support for this Roundcube installation
|
|
|
|
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
|
2020-12-09 14:24:28 +01:00
|
|
|
$config['support_url'] = 'https://forum.yunohost.org/t/roundcube-a-webmail/3965';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
|
|
|
// Name your service. This is displayed on the login screen and in the window title
|
|
|
|
$config['product_name'] = 'YunoHost Webmail';
|
|
|
|
|
2021-02-25 23:43:48 +01:00
|
|
|
// This key is used to encrypt the users imap password which is stored
|
|
|
|
// in the session record. For the default cipher method it must be
|
|
|
|
// exactly 24 characters long.
|
2016-03-28 22:14:19 +02:00
|
|
|
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
|
2019-03-03 18:12:41 +01:00
|
|
|
$config['des_key'] = '__DESKEY__';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
|
|
|
// skin name: folder from skins/
|
2020-11-09 14:45:02 +01:00
|
|
|
$config['skin'] = 'elastic';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
2020-11-09 15:09:23 +01:00
|
|
|
// ----------------------------------
|
|
|
|
// USER INTERFACE
|
|
|
|
// ----------------------------------
|
|
|
|
|
|
|
|
// the default locale setting (leave empty for auto-detection)
|
|
|
|
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
|
2020-11-09 15:15:13 +01:00
|
|
|
$config['language'] = '__LANGUAGE__';
|
2020-11-09 15:09:23 +01:00
|
|
|
|
|
|
|
// use this format for date display (date or strftime format)
|
|
|
|
$config['date_format'] = 'd-m-Y';
|
|
|
|
|
2020-11-09 16:53:23 +01:00
|
|
|
// Make use of the built-in spell checker. It is based on GoogieSpell.
|
|
|
|
$config['enable_spellcheck'] = false;
|
|
|
|
|
2020-11-09 15:09:23 +01:00
|
|
|
|
2016-03-28 22:14:19 +02:00
|
|
|
// Enable YunoHost users search in the address book.
|
|
|
|
$config['ldap_public']['yunohost'] = array(
|
2016-03-30 14:57:11 +02:00
|
|
|
'name' => 'YunoHost Users',
|
|
|
|
'hosts' => array('localhost'),
|
|
|
|
'port' => 389,
|
|
|
|
'user_specific' => false,
|
|
|
|
'base_dn' => 'ou=users,dc=yunohost,dc=org',
|
|
|
|
'scope' => 'list',
|
|
|
|
'filter' => '(objectClass=mailAccount)',
|
|
|
|
'hidden' => false,
|
|
|
|
'searchonly' => true,
|
|
|
|
'fieldmap' => array(
|
2021-02-25 23:43:48 +01:00
|
|
|
'name' => 'uid',
|
|
|
|
'surname' => 'sn',
|
|
|
|
'firstname' => 'givenName',
|
|
|
|
'email' => 'mail:*',
|
2016-03-30 14:57:11 +02:00
|
|
|
),
|
2016-03-28 22:14:19 +02:00
|
|
|
);
|
|
|
|
|
2016-03-30 14:38:37 +02:00
|
|
|
// List of active plugins (in plugins/ directory)
|
|
|
|
$config['plugins'] = array(
|
2016-03-30 14:57:11 +02:00
|
|
|
'archive',
|
|
|
|
'zipdownload',
|
|
|
|
// additionnal plugins
|
|
|
|
'http_authentication',
|
|
|
|
'managesieve',
|
|
|
|
'markasjunk',
|
|
|
|
'new_user_dialog',
|
|
|
|
'new_user_identity',
|
|
|
|
// installed plugins
|
2016-03-30 14:38:37 +02:00
|
|
|
);
|
|
|
|
|
2016-03-28 22:14:19 +02:00
|
|
|
// ----------------------------------
|
|
|
|
// PLUGINS
|
|
|
|
// ----------------------------------
|
|
|
|
|
|
|
|
// -- new_user_identity
|
|
|
|
// The id of the address book to use to automatically set a
|
|
|
|
// user's full name in their new identity.
|
|
|
|
$config['new_user_identity_addressbook'] = 'yunohost';
|
|
|
|
|
|
|
|
// -- http_authentication
|
|
|
|
// Redirect the client to this URL after logout.
|
2016-05-16 22:03:52 +02:00
|
|
|
$config['logout_url'] = 'https://' . $main_domain . '/yunohost/sso/?action=logout';
|
2016-03-28 22:14:19 +02:00
|
|
|
|
2016-06-09 22:15:45 +02:00
|
|
|
// -- managesieve
|
|
|
|
// Enables separate management interface for vacation responses (out-of-office)
|
|
|
|
$config['managesieve_vacation'] = 1;
|
|
|
|
|
2016-03-28 22:14:19 +02:00
|
|
|
// -- ldapAliasSync
|
|
|
|
$config['ldapAliasSync'] = array(
|
2016-03-30 14:57:11 +02:00
|
|
|
// Mail parameters
|
|
|
|
'mail' => array(
|
2016-03-30 16:50:00 +02:00
|
|
|
'dovecot_separator' => '+',
|
2016-03-30 14:57:11 +02:00
|
|
|
),
|
|
|
|
// LDAP parameters
|
|
|
|
'ldap' => array(
|
|
|
|
'bind_dn' => '',
|
|
|
|
),
|
|
|
|
# 'user_search' holds all config variables for the user search
|
|
|
|
'user_search' => array(
|
|
|
|
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
|
|
|
'filter' => '(objectClass=mailAccount)',
|
|
|
|
'mail_by' => 'attribute',
|
|
|
|
'attr_mail' => 'mail',
|
|
|
|
'attr_name' => 'cn',
|
|
|
|
),
|
|
|
|
# 'alias_search' holds all config variables for the alias search
|
|
|
|
'alias_search' => array(
|
|
|
|
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
|
|
|
'filter' => '(objectClass=mailAccount)',
|
|
|
|
'mail_by' => 'attribute',
|
|
|
|
'attr_mail' => 'mailalias',
|
|
|
|
'attr_name' => 'cn',
|
|
|
|
),
|
2016-03-28 22:14:19 +02:00
|
|
|
);
|
2016-03-30 14:57:11 +02:00
|
|
|
|
|
|
|
// ----------------------------------
|
|
|
|
// LOCAL CONFIGURATION
|
|
|
|
// ----------------------------------
|
|
|
|
|
|
|
|
$local_config = dirname(__FILE__) . '/local.inc.php';
|
|
|
|
if (file_exists($local_config)) {
|
|
|
|
include $local_config;
|
|
|
|
}
|