File plesk.config.inc.php of Package roundcubemail-selfcontained (Revision 472d161b55345891b221e5958122f4bc)

Currently displaying revision 472d161b55345891b221e5958122f4bc , Show latest

224
 
1
<?php
2
    include_once("/usr/share/psa-roundcube/config/config.inc.php");
3
4
    $components = explode('.', $_SERVER["HTTP_HOST"] ?? "");
5
6
    if (count($components) > 2) {
7
        array_shift($components);
8
    }
9
10
    $domain = implode('.', $components);
11
12
    $config['session_domain'] = $_SERVER["HTTP_HOST"] ?? "";
13
    $config['username_domain'] = $domain;
14
15
    $config['support_url'] = "https://www.plesk.com/support/";
16
17
    $config['product_name'] = "Plesk Premium Email, powered by Kolab";
18
19
    $config['imap_host'] = "localhost:9143";
20
    // CRAM-MD5 and DIGEST-MD5 are not compatible with encrypted passwords in plesk
21
    $config['imap_auth_type'] = 'PLAIN';
22
23
    $config['smtp_host'] = "localhost:25";
24
    $config['smtp_user'] = '%u';
25
    $config['smtp_pass'] = '%p';
26
    $config['smtp_helo_host'] = $_SERVER["HTTP_HOST"] ?? "";
27
28
    $config['use_secure_urls'] = true;
29
    $config['force_https'] = true;
30
31
    $config['assets_path'] = "/assets/";
32
33
    $config['assets_dir'] = "/usr/share/roundcubemail/public_html/assets/";
34
35
    $config['imap_cache'] = "db";
36
    $config['imap_cache_ttl'] = "10d";
37
38
    $config['message_cache'] = null;
39
40
    $config['session_storage'] = "db";
41
42
    $config['skin'] = "plesk";
43
44
    $config['auto_create_user'] = true;
45
46
    $config['enable_installer'] = false;
47
48
    $config['plugins'] = Array(
49
            'acl',
50
            'archive',
51
            'calendar',
52
            'jqueryui',
53
            'kolab_activesync',
54
            'kolab_addressbook',
55
            'kolab_config',
56
            //'kolab_delegation',
57
            'kolab_files',
58
            'kolab_folders',
59
            'kolab_notes',
60
            'kolab_tags',
61
            'libkolab',
62
            'libcalendaring',
63
            'managesieve',
64
            'markasjunk',
65
            'newmail_notifier',
66
            'odfviewer',
67
            'password',
68
            'pdfviewer',
69
            'tasklist',
70
            'contextmenu',
71
        );
72
73
    $config['kolabdav_plugins'] = Array(
74
            'libcalendaring',
75
            'libkolab'
76
        );
77
78
    $config['skip_deleted'] = true;
79
80
    $config['read_when_deleted'] = true;
81
    $config['flag_for_deletion'] = true;
82
    $config['delete_always'] = true;
83
84
    $config['session_lifetime'] = 180;
85
    $config['password_charset'] = 'UTF-8';
86
    $config['useragent'] = 'Kolab 16/Roundcube ' . RCUBE_VERSION;
87
    $config['refresh_interval'] = 300;
88
    $config['check_all_folders'] = false;
89
    $config['dont_override'] = Array(
90
        'check_all_folders',
91
        'refresh_interval',
92
        'skin',
93
        'acl_advanced_mode'
94
    );
95
96
    $config['message_sort_col'] = 'date';
97
    $config['default_list_mode'] = 'threads';
98
    $config['autoexpand_threads'] = 2;
99
100
    $config['message_sort_col'] = 'date';
101
    $config['default_list_mode'] = 'threads';
102
    $config['autoexpand_threads'] = 2;
103
104
    $config['spellcheck_engine'] = 'pspell';
105
    $config['spellcheck_dictionary'] = true;
106
    $config['spellcheck_ignore_caps'] = true;
107
    $config['spellcheck_ignore_nums'] = true;
108
    $config['spellcheck_ignore_syms'] = true;
109
    $config['spellcheck_languages'] = array(
110
            'da' => 'Dansk',
111
            'de' => 'Deutsch',
112
            'en' => 'English',
113
            'es' => 'Español',
114
            'fr' => 'Français',
115
            'it' => 'Italiano',
116
            'nl' => 'Nederlands',
117
            'pt' => 'Português',
118
            'ru' => 'Русский',
119
            'sv' => 'Svenska'
120
        );
121
122
    $config['undo_timeout'] = 10;
123
    $config['upload_progress'] = 2;
124
    $config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
125
    $config['preview_pane'] = true;
126
    $config['preview_pane_mark_read'] = 0;
127
128
    // Bottom posting for reply mode
129
    $config['reply_mode'] = 0;
130
    $config['sig_above'] = false;
131
    $config['mdn_requests'] = 0;
132
    $config['mdn_default'] = false;
133
    $config['dsn_default'] = false;
134
    $config['reply_same_folder'] = false;
135
136
    $config['performance_stats'] = true;
137
138
    $config['archive_mbox'] = 'Archive';
139
    $config['drafts_mbox'] = 'Drafts';
140
    $config['junk_mbox'] = 'INBOX.Spam';
141
    $config['sent_mbox'] = 'Sent';
142
    $config['trash_mbox'] = 'Trash';
143
144
    $config['create_default_folders'] = true;
145
    $config['protect_default_folders'] = true;
146
147
    $config['default_folders'] = Array(
148
        'INBOX',
149
        'Archive',
150
        'Drafts',
151
        'Sent',
152
        'INBOX.Spam',
153
        'Trash'
154
    );
155
156
    $config['skin_include_php'] = false;
157
    $config['mime_magic'] = null;
158
    $config['im_identify_path'] = '/usr/bin/identify';
159
    $config['im_convert_path'] = '/usr/bin/convert';
160
    $config['log_dir'] = 'logs/';
161
    $config['temp_dir'] = '/tmp';
162
163
    $config['log_driver'] = 'file';
164
    $config['log_date_format'] = 'Y-M-d H:i:s O';
165
    $config['syslog_id'] = 'roundcube';
166
    $config['syslog_facility'] = LOG_USER;
167
    $config['smtp_log'] = true;
168
    $config['log_logins'] = true;
169
    $config['log_session'] = true;
170
    $config['debug_level'] = 1;
171
    $config['devel_mode'] = false;
172
    $config['sql_debug'] = false;
173
    $config['memcache_debug'] = false;
174
    $config['imap_debug'] = false;
175
    $config['ldap_debug'] = false;
176
    $config['smtp_debug'] = false;
177
178
    $config['fileapi_backend'] = "kolab";
179
    $config['fileapi_plugins'] = Array('kolab_folders');
180
    $config['fileapi_manticore'] = false;
181
    $config['fileapi_wopi_office'] = false;
182
183
    $config['imap_conn_options'] = Array(
184
        'ssl' => Array(
185
            'verify_peer' => FALSE,
186
            'verify_peer_name' => FALSE
187
        )
188
    );
189
190
    $config['smtp_conn_options'] = Array(
191
        'ssl' => Array(
192
            'verify_peer' => FALSE,
193
            'verify_peer_name' => FALSE
194
        )
195
    );
196
197
    @include('/etc/roundcubemail/kolab_syncroton.inc.php');
198
199
    if (file_exists(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/'. basename(__FILE__))) {
200
        @include_once(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/'. basename(__FILE__));
201
    }
202
203
    // Additional options for Plesk Premium Email - Free
204
    if (file_exists(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/freemium.inc.php')) {
205
        @include_once(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/freemium.inc.php');
206
    }
207
208
    // Integration between Plesk Premium Email and Collabora Online extensions
209
    if (file_exists(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/collabora.inc.php')) {
210
        @include_once(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/collabora.inc.php');
211
    }
212
213
    // Integration between Plesk Premium Email and Mattermost extensions
214
    if (file_exists(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/mattermost.inc.php')) {
215
        @include_once(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/mattermost.inc.php');
216
    }
217
218
    // Integration between Plesk Premium Email and Seafile extensions
219
    if (file_exists(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/seafile.inc.php')) {
220
        @include_once(RCUBE_CONFIG_DIR .'/'. ($_SERVER['HTTP_HOST'] ?? "") .'/seafile.inc.php');
221
    }
222
223
    @include('/etc/roundcubemail/licensing.inc.php');
224