File plesk.config.inc.php of Package roundcubemail (Revision 53)

Currently displaying revision 53 , Show latest

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