blse2-public/package-postfix_access/templates/config.inc.php.j2

112 lines
4.2 KiB
Django/Jinja

<?php
/* Local configuration for Roundcube Webmail */
/* {{ ansible_managed }} */
$config['imap_auth_type'] = 'LOGIN';
$config['imap_delimiter'] = '/';
// ----------------------------------
// SMTP
// ----------------------------------
$config['smtp_server'] = '{{ smtp_host }}';
$config['smtp_auth_type'] = 'LOGIN';
$config['support_url'] = '{{ support_url }}';
array(
"elastic:login[small]" => "/images/logo_login_small.png",
"elastic:login" => "/images/logo_login.png",
"elastic:*[small]" => "/images/logo_small.png",
"larry:*" => "/images/larry.png",
"login" => "/images/logo_login.png",
"[print]" => "/images/logo_print.png",
);
$config['skin_logo'] = 'images/{{ logo_filename }}';
$config['des_key'] = '{{ roundcube_deskey }}';
// ----------------------------------
// PLUGINS
// ----------------------------------
$config['plugins'] = array('managesieve');
$config['create_default_folders'] = true;
$config['quota_zero_as_unlimited'] = true;
$config['ldap_public'] = array (
'global_ldap_abook' =>
array (
'name' => 'Global LDAP Address Book',
'hosts' =>
array (
0 => '{{ ldap_host }}',
),
'port' => {{ ldap_port }},
'use_tls' => false,
'ldap_version' => '3',
'network_timeout' => 10,
'user_specific' => true,
'base_dn' => '{{ ldap_basedn }}',
'bind_dn' => 'mail=%u@%d,ou=Users,domainName=%d,{{ ldap_basedn }}',
'hidden' => false,
'searchonly' => false,
'writable' => false,
'search_fields' =>
array (
0 => 'mail',
1 => 'cn',
2 => 'sn',
3 => 'givenName',
4 => 'street',
5 => 'telephoneNumber',
6 => 'mobile',
7 => 'stree',
8 => 'postalCode',
),
'fieldmap' =>
array (
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'title' => 'title',
'email' => 'mail:*',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'street' => 'street',
'zipcode' => 'postalCode',
'locality' => 'l',
'department' => 'departmentNumber',
'notes' => 'description',
'phone:workfax' => 'facsimileTelephoneNumber',
'photo' => 'jpegPhoto',
),
'sort' => 'cn',
'scope' => 'sub',
'filter' => '(&(enabledService=mail)(enabledService=deliver)(enabledService=displayedInGlobalAddressBook)(|(objectClass=mailList)(objectClass=mailAlias)(objectClass=mailUser)))',
'fuzzy_search' => true,
'vlv' => false,
'sizelimit' => '0',
'timelimit' => '0',
'referrals' => false,
'group_filters' =>
array (
'departments' =>
array (
'name' => 'Mailing Lists',
'scope' => 'sub',
'base_dn' => '{{ ldap_basedn }}',
'filter' => '(&(objectclass=mailList)(accountStatus=active)(enabledService=displayedInGlobalAddressBook))',
'name_attr' => 'cn',
'email' => 'mail',
),
),
),
);
$config['autocomplete_addressbooks'] = array('sql', 'global_ldap_abook');
$config['skin'] = 'elastic';
$config['addressbook_sort_col'] = 'name';
$config['draft_autosave'] = 60;
$config['check_all_folders'] = true;
$config['autoexpand_threads'] = 2;
include_once("/etc/roundcube/debian-db-roundcube.php");