2016-03-28 22:14:19 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
+-----------------------------------------------------------------------+
|
|
|
|
| YunoHost configuration for the Roundcube Webmail installation. |
|
|
|
|
| |
|
|
|
|
| This is based on the sample configuration file which is shipped with |
|
|
|
|
| Roundcube and adapted to works with YunoHost. It comes with some |
|
|
|
|
| additionnal activated plugins for a better integration and |
|
|
|
|
| experience. |
|
|
|
|
| |
|
|
|
|
| You can override and extend this configuration in local.inc.php. |
|
|
|
|
| |
|
|
|
|
| DO NOT EDIT THIS FILE BY HAND, IT WILL BE OVERWRITTEN AT UPGRADES. |
|
|
|
|
| |
|
|
|
|
| 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();
|
|
|
|
|
|
|
|
// Database connection string (DSN) for read+write operations
|
|
|
|
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
|
|
|
|
// 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
|
|
|
|
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
|
|
|
|
$config['db_dsnw'] = 'mysql://#DBUSER#:#DBPASS#@localhost/#DBNAME#';
|
|
|
|
|
|
|
|
// 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
|
|
|
|
$config['default_host'] = 'localhost';
|
|
|
|
|
|
|
|
// SMTP server host (for sending mails).
|
|
|
|
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
|
|
|
|
// If left blank, the PHP mail() function is used
|
|
|
|
// 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
|
|
|
|
$config['smtp_server'] = '';
|
|
|
|
|
|
|
|
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
|
|
|
|
// deprecated SSL over SMTP (aka SMTPS))
|
|
|
|
$config['smtp_port'] = 25;
|
|
|
|
|
|
|
|
// SMTP username (if required) if you use %u as the username Roundcube
|
|
|
|
// will use the current username for login
|
|
|
|
$config['smtp_user'] = '';
|
|
|
|
|
|
|
|
// SMTP password (if required) if you use %p as the password Roundcube
|
|
|
|
// will use the current user's password for login
|
|
|
|
$config['smtp_pass'] = '';
|
|
|
|
|
|
|
|
// provide an URL where a user can get support for this Roundcube installation
|
|
|
|
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
|
|
|
|
$config['support_url'] = 'https://dev.yunohost.org/projects/apps/issues?set_filter=1&f[]=category_id&op[category_id]=%3D&v[category_id][]=20';
|
|
|
|
|
|
|
|
// Name your service. This is displayed on the login screen and in the window title
|
|
|
|
$config['product_name'] = 'YunoHost Webmail';
|
|
|
|
|
|
|
|
// this key is used to encrypt the users imap password which is stored
|
|
|
|
// in the session record (and the client cookie if remember password is enabled).
|
|
|
|
// please provide a string of exactly 24 chars.
|
|
|
|
// YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
|
|
|
|
$config['des_key'] = '#DESKEY#';
|
|
|
|
|
|
|
|
// skin name: folder from skins/
|
|
|
|
$config['skin'] = 'larry';
|
|
|
|
|
|
|
|
// 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(
|
|
|
|
'name' => 'uid',
|
|
|
|
'surname' => 'sn',
|
|
|
|
'firstname' => 'givenName',
|
|
|
|
'email' => 'mail:*',
|
|
|
|
),
|
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.
|
|
|
|
$main_domain = exec('cat /etc/yunohost/current_host');
|
|
|
|
$config['logout_url'] = 'https://'.$main_domain.'/yunohost/sso/?action=logout';
|
|
|
|
|
|
|
|
// -- 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;
|
|
|
|
}
|