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 }}';
|
2022-11-13 15:16:44 +02:00
|
|
|
$config['temp_dir'] = '/dev/shm/';
|
2022-11-18 14:25:02 +02:00
|
|
|
$config['des_key'] = '{{ ROUNDCUBE_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';
|
2023-03-17 12:37:46 +02:00
|
|
|
$config['session_lifetime'] = {{ (((PERMANENT_SESSION_LIFETIME | default(10800)) | int)/3600) | int }};
|
2023-01-28 17:59:09 +02:00
|
|
|
$config['request_path'] = '{{ WEB_WEBMAIL or "none" }}';
|
2023-01-28 18:22:52 +02:00
|
|
|
$config['trusted_host_patterns'] = [ {{ HOSTNAMES.split(",") | map("tojson") | join(',') }}];
|
2018-06-27 18:40:04 +02:00
|
|
|
|
2016-02-21 17:24:11 +02:00
|
|
|
// Mail servers
|
2022-11-10 17:51:22 +02:00
|
|
|
$config['imap_host'] = '{{ FRONT_ADDRESS or "front" }}:10143';
|
|
|
|
$config['smtp_host'] = '{{ FRONT_ADDRESS or "front" }}: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
|
2023-01-04 12:01:50 +02:00
|
|
|
$config['managesieve_host'] = '{{ FRONT_ADDRESS or "front" }}:14190';
|
2023-02-05 15:48:08 +02:00
|
|
|
$config['managesieve_mbox_encoding'] = 'UTF8';
|
2016-10-18 23:03:43 +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
|
|
|
|
2022-12-20 13:30:03 +02:00
|
|
|
// configure mailu button
|
2022-12-20 13:54:31 +02:00
|
|
|
$config['show_mailu_button'] = {{ 'true' if ADMIN and WEB_ADMIN else 'false' }};
|
2022-12-20 13:30:03 +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
|
|
|
|
2023-02-07 09:45:54 +02:00
|
|
|
// zero quota is unlimited
|
|
|
|
$config['quota_zero_as_unlimited'] = true;
|
|
|
|
|
2021-12-18 18:43:21 +02:00
|
|
|
// includes
|
|
|
|
{%- for inc in INCLUDES %}
|
2022-01-28 17:02:27 +02:00
|
|
|
include('/overrides/{{ inc }}');
|
2021-12-18 18:43:21 +02:00
|
|
|
{%- endfor %}
|
|
|
|
|