summaryrefslogtreecommitdiffstats
path: root/share/templates/roundcubemail/config.inc.php.tpl
blob: 94fdf021518674b11718b8e9411995882bb9ec9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?php
    \$config = array();

    \$config['db_dsnw'] = '$mysql_uri';

    \$config['session_domain'] = '';
    \$config['des_key'] = "$des_key";
    \$config['username_domain'] = '$primary_domain';

    \$config['mail_domain'] = '';

    // IMAP Server Settings
    \$config['default_host'] = 'tls://localhost';
    \$config['default_port'] = 143;
    \$config['imap_delimiter'] = '/';
    \$config['imap_force_lsub'] = true;

    // Caching and storage settings
    \$config['imap_cache'] = 'db';
    \$config['imap_cache_ttl'] = '10d';
    \$config['messages_cache'] = 'db';
    \$config['message_cache_ttl'] = '10d';
    \$config['session_storage'] = 'db';

    // SMTP Server Settings
    \$config['smtp_server'] = 'tls://localhost';
    \$config['smtp_port'] = 587;
    \$config['smtp_user'] = '%u';
    \$config['smtp_pass'] = '%p';
    \$config['smtp_helo_host'] = \$_SERVER["HTTP_HOST"];

    // LDAP Settings
    \$config['ldap_cache'] = 'db';
    \$config['ldap_cache_ttl'] = '1h';

    // Kolab specific defaults
    \$config['product_name'] = 'Kolab Groupware';
    \$config['skin_logo'] = 'skins/kolab/images/kolab_logo.png';
    \$config['quota_zero_as_unlimited'] = false;
    \$config['login_lc'] = 2;
    \$config['auto_create_user'] = true;
    \$config['enable_installer'] = false;
    // The SMTP server does not allow empty identities
    \$config['mdn_use_from'] = true;

    // Plugins
    \$config['plugins'] = array(
            'acl',
            'archive',
            'calendar',
            'jqueryui',
            'kolab_activesync',
            'kolab_addressbook',
            'kolab_auth',
            'kolab_config',
            'kolab_folders',
            'libkolab',
            'libcalendaring',
            'managesieve',
            'newmail_notifier',
            'odfviewer',
            'password',
            'redundant_attachments',
            'tasklist',
            'threading_as_default',
            // contextmenu must be after kolab_addressbook (#444)
            'contextmenu',
        );


    // Do not show deleted messages, mark deleted messages as read,
    // and flag them as deleted instead of moving them to the Trash
    // folder.
    \$config['skip_deleted'] = true;
    \$config['read_when_deleted'] = true;
    \$config['flag_for_deletion'] = true;
    \$config['delete_always'] = true;

    \$config['session_lifetime'] = 180;
    \$config['password_charset'] = 'UTF-8';
    \$config['useragent'] = 'Kolab 3.1/Roundcube ' . RCUBE_VERSION;
    \$config['dont_override'] = Array('skin');

    \$config['message_sort_col'] = 'date';

    \$config['spellcheck_dictionary'] = true;
    \$config['spellcheck_ignore_caps'] = true;
    \$config['spellcheck_ignore_nums'] = true;
    \$config['spellcheck_ignore_syms'] = true;

    \$config['undo_timeout'] = 10;
    \$config['upload_progress'] = 2;
    \$config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
    \$config['preview_pane'] = true;
    \$config['preview_pane_mark_read'] = 0;

    \$config['autoexpand_threads'] = 2;
    \$config['top_posting'] = 0;
    \$config['sig_above'] = false;
    \$config['mdn_requests'] = 0;
    \$config['mdn_default'] = false;
    \$config['dsn_default'] = false;
    \$config['reply_same_folder'] = false;

    if (file_exists(RCUBE_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/' . basename(__FILE__))) {
        include_once(RCUBE_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/' . basename(__FILE__));
    }

    // Re-apply mandatory settings here.

    \$config['debug_level'] = 0;
    \$config['devel_mode'] = false;
    \$config['log_driver'] = 'file';
    \$config['log_date_format'] = 'd-M-Y H:i:s,u O';
    \$config['syslog_id'] = 'roundcube';
    \$config['syslog_facility'] = LOG_USER;
    \$config['smtp_log'] = true;
    \$config['log_logins'] = true;
    \$config['log_session'] = true;
    \$config['sql_debug'] = true;
    \$config['memcache_debug'] = true;
    \$config['imap_debug'] = true;
    \$config['ldap_debug'] = true;
    \$config['smtp_debug'] = true;

    \$config['skin'] = 'larry';
    \$config['skin_include_php'] = false;
    \$config['mime_magic'] = null;
    \$config['im_identify_path'] = '/usr/bin/identify';
    \$config['im_convert_path'] = '/usr/bin/convert';
    \$config['log_dir'] = 'logs/';
    \$config['temp_dir'] = '/var/lib/roundcubemail/';

    \$config['archive_mbox'] = 'Archive';

    \$config['address_book_type'] = 'ldap';
    \$config['autocomplete_min_length'] = 3;
    \$config['autocomplete_threads'] = 0;
    \$config['autocomplete_max'] = 15;
    \$config['ldap_public'] = array(
            'kolab_addressbook' => array(
                    'name'                      => 'Global Address Book',
                    'hosts'                     => Array('localhost'),
                    'port'                      => 389,
                    'use_tls'                   => false,
                    'base_dn'                   => '$ldap_user_base_dn',
                    'user_specific'             => true,
                    'bind_dn'                   => '%dn',
                    'bind_pass'                 => '',
                    'search_base_dn'            => '$ldap_user_base_dn',
                    'search_bind_dn'            => '$ldap_service_bind_dn',
                    'search_bind_pw'            => '$ldap_service_bind_pw',
                    'search_filter'             => '(&(objectClass=inetOrgPerson)(mail=%fu))',
                    'writable'                  => false,
                    'LDAP_Object_Classes'       => array("top", "inetOrgPerson"),
                    'required_fields'           => array("cn", "sn", "mail"),
                    'LDAP_rdn'                  => 'uid',
                    'ldap_version'              => 3,       // using LDAPv3
                    'search_fields'             => array('displayname', 'mail'),
                    'sort'                      => array('displayname', 'sn', 'givenname', 'cn'),
                    'scope'                     => 'sub',
                    'filter'                    => '(objectClass=inetOrgPerson)',
                    'vlv'                       => false,
                    'vlv_search'                => false,
                    'fuzzy_search'              => true,
                    'sizelimit'                 => '0',
                    'timelimit'                 => '0',
                    'fieldmap'                  => Array(
                            // Roundcube        => LDAP
                            'name'              => 'displayName',
                            'surname'           => 'sn',
                            'firstname'         => 'givenName',
                            'middlename'        => 'initials',
                            'prefix'            => 'title',
                            'email:primary'     => 'mail',
                            'email:alias'       => 'alias',
                            'email:personal'    => 'mailalternateaddress',
                            'phone:main'        => 'telephoneNumber',
                            'phone:work'        => 'alternateTelephoneNumber',
                            'phone:mobile'      => 'mobile',
                            'phone:work2'       => 'blackberry',
                            'jobtitle'          => 'title',
                            'manager'           => 'manager',
                            'assistant'         => 'secretary',
                            'photo'             => 'jpegphoto'
                        ),
                    'groups'                    => Array(
                            'base_dn'           => '$ldap_group_base_dn',
                            'filter'            => '(&' . '$ldap_group_filter' . '(mail=*))',
                            'object_classes'    => Array("top", "groupOfUniqueNames"),
                            'member_attr'       => 'uniqueMember',
                        ),
                ),
        );

    \$config['autocomplete_addressbooks'] = Array(
            'kolab_addressbook'
        );

    \$config['autocomplete_single'] = true;

    \$config['htmleditor'] = 0;

?>