2016-02-20 22:55:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$config = array();
|
|
|
|
|
2016-02-21 16:39:15 +02:00
|
|
|
// Generals
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['db_dsnw'] = '{{ DB_DSNW }}';
|
2017-12-19 20:50:38 +02:00
|
|
|
$config['temp_dir'] = '/tmp/';
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['des_key'] = '{{ SECRET_KEY }}';
|
2018-09-19 01:36:22 +02:00
|
|
|
$config['cipher_method'] = 'AES-256-CBC';
|
2019-01-06 23:34:09 +02:00
|
|
|
$config['identities_level'] = 0;
|
2016-02-21 16:39:15 +02:00
|
|
|
$config['reply_all_mode'] = 1;
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['log_driver'] = 'stdout';
|
|
|
|
$config['zipdownload_selection'] = true;
|
|
|
|
$config['enable_spellcheck'] = true;
|
|
|
|
$config['spellcheck_engine'] = 'pspell';
|
2018-06-27 18:40:04 +02:00
|
|
|
|
2016-02-21 17:24:11 +02:00
|
|
|
// Mail servers
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['default_host'] = '{{ FRONT_ADDRESS or "front" }}';
|
2017-10-22 11:31:32 +02:00
|
|
|
$config['default_port'] = 10143;
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['smtp_server'] = '{{ FRONT_ADDRESS or "front" }}';
|
2017-10-22 11:31:32 +02:00
|
|
|
$config['smtp_port'] = 10025;
|
2016-02-24 08:44:49 +02:00
|
|
|
$config['smtp_user'] = '%u';
|
|
|
|
$config['smtp_pass'] = '%p';
|
|
|
|
|
2016-10-18 23:03:43 +02:00
|
|
|
// Sieve script management
|
2021-12-17 16:54:05 +02:00
|
|
|
$config['managesieve_host'] = '{{ IMAP_ADDRESS or "imap" }}';
|
2017-11-10 16:54:41 +02:00
|
|
|
$config['managesieve_usetls'] = false;
|
2016-10-18 23:03:43 +02:00
|
|
|
|
2016-02-24 08:44:49 +02:00
|
|
|
// We access the IMAP and SMTP servers locally with internal names, SSL
|
|
|
|
// will obviously fail but this sounds better than allowing insecure login
|
|
|
|
// from the outter world
|
|
|
|
$ssl_no_check = array(
|
|
|
|
'ssl' => array(
|
|
|
|
'verify_peer' => false,
|
|
|
|
'verify_peer_name' => false,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$config['imap_conn_options'] = $ssl_no_check;
|
|
|
|
$config['smtp_conn_options'] = $ssl_no_check;
|
2016-10-18 23:03:43 +02:00
|
|
|
$config['managesieve_conn_options'] = $ssl_no_check;
|
2016-02-21 17:24:11 +02:00
|
|
|
|
2021-12-17 16:54:05 +02:00
|
|
|
// roundcube customization
|
|
|
|
$config['product_name'] = 'Mailu Webmail';
|
|
|
|
{%- if ADMIN and WEB_ADMIN %}
|
|
|
|
$config['support_url'] = '../..{{ WEB_ADMIN }}';
|
|
|
|
{%- endif %}
|
|
|
|
$config['plugins'] = array({{ PLUGINS }});
|
|
|
|
|
2016-02-20 22:55:22 +02:00
|
|
|
// skin name: folder from skins/
|
2019-11-21 22:12:21 +02:00
|
|
|
$config['skin'] = 'elastic';
|
2018-03-05 22:32:31 +02:00
|
|
|
|
2021-12-17 16:54:05 +02:00
|
|
|
// configure mailu sso plugin
|
|
|
|
$config['sso_logout_url'] = '/sso/logout';
|
|
|
|
|
|
|
|
// configure enigma gpg plugin
|
2018-03-05 22:32:31 +02:00
|
|
|
$config['enigma_pgp_homedir'] = '/data/gpg';
|
2020-03-01 14:56:33 +02:00
|
|
|
|
2021-12-18 18:43:21 +02:00
|
|
|
// set From header for DKIM signed message delivery reports
|
2020-03-01 14:56:33 +02:00
|
|
|
$config['mdn_use_from'] = true;
|
2021-12-17 16:54:05 +02:00
|
|
|
|
2021-12-18 18:43:21 +02:00
|
|
|
// includes
|
|
|
|
{%- for inc in INCLUDES %}
|
|
|
|
include('{{ inc }}');
|
|
|
|
{%- endfor %}
|
|
|
|
|