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

Currently displaying revision 6f209d6aa7941a0066b0bf4d523dfc6e , Show latest

225
 
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 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
            'pt' => 'Português',
121
            'ru' => 'Русский',
122
            'sv' => 'Svenska'
123
        );
124
125
    $config['undo_timeout'] = 10;
126
    $config['upload_progress'] = 2;
127
    $config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
128
    $config['preview_pane'] = true;
129
    $config['preview_pane_mark_read'] = 0;
130
131
    // Bottom posting for reply mode
132
    $config['reply_mode'] = 0;
133
    $config['sig_above'] = false;
134
    $config['mdn_requests'] = 0;
135
    $config['mdn_default'] = false;
136
    $config['dsn_default'] = false;
137
    $config['reply_same_folder'] = false;
138
139
    $config['performance_stats'] = true;
140
141
    $config['archive_mbox'] = 'Archive';
142
    $config['drafts_mbox'] = 'Drafts';
143
    $config['junk_mbox'] = 'INBOX.Spam';
144
    $config['sent_mbox'] = 'Sent';
145
    $config['trash_mbox'] = 'Trash';
146
147
    $config['create_default_folders'] = true;
148
    $config['protect_default_folders'] = true;
149
150
    $config['default_folders'] = Array(
151
        'INBOX',
152
        'Archive',
153
        'Drafts',
154
        'Sent',
155
        'INBOX.Spam',
156
        'Trash'
157
    );
158
159
    $config['skin_include_php'] = false;
160
    $config['mime_magic'] = null;
161
    $config['im_identify_path'] = '/usr/bin/identify';
162
    $config['im_convert_path'] = '/usr/bin/convert';
163
    $config['log_dir'] = 'logs/';
164
    $config['temp_dir'] = '/tmp';
165
166
    $config['log_driver'] = 'file';
167
    $config['log_date_format'] = 'Y-M-d H:i:s O';
168
    $config['syslog_id'] = 'roundcube';
169
    $config['syslog_facility'] = LOG_USER;
170
    $config['smtp_log'] = true;
171
    $config['log_logins'] = true;
172
    $config['log_session'] = true;
173
    $config['debug_level'] = 1;
174
    $config['devel_mode'] = false;
175
    $config['sql_debug'] = false;
176
    $config['memcache_debug'] = false;
177
    $config['imap_debug'] = false;
178
    $config['ldap_debug'] = false;
179
    $config['smtp_debug'] = false;
180
181
    $config['fileapi_backend'] = "kolab";
182
    $config['fileapi_plugins'] = Array('kolab_folders');
183
    $config['fileapi_manticore'] = false;
184
    $config['fileapi_wopi_office'] = false;
185
186
    $config['imap_conn_options'] = Array(
187
        'ssl' => Array(
188
            'verify_peer' => FALSE,
189
            'verify_peer_name' => FALSE
190
        )
191
    );
192
193
    $config['smtp_conn_options'] = Array(
194
        'ssl' => Array(
195
            'verify_peer' => FALSE,
196
            'verify_peer_name' => FALSE
197
        )
198
    );
199
200
    if (file_exists(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/'. basename(__FILE__))) {
201
        @include_once(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/'. basename(__FILE__));
202
    }
203
204
    // Additional options for Plesk Premium Email - Free
205
    if (file_exists(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/freemium.inc.php')) {
206
        @include_once(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/freemium.inc.php');
207
    }
208
209
    // Integration between Plesk Premium Email and Collabora Online extensions
210
    if (file_exists(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/collabora.inc.php')) {
211
        @include_once(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/collabora.inc.php');
212
    }
213
214
    // Integration between Plesk Premium Email and Mattermost extensions
215
    if (file_exists(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/mattermost.inc.php')) {
216
        @include_once(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/mattermost.inc.php');
217
    }
218
219
    // Integration between Plesk Premium Email and Seafile extensions
220
    if (file_exists(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/seafile.inc.php')) {
221
        @include_once(RCUBE_CONFIG_DIR .'/'. $_SERVER['HTTP_HOST'] .'/seafile.inc.php');
222
    }
223
224
    @include('/etc/roundcubemail/licensing.inc.php');
225