-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroundcubemail.config.php
More file actions
46 lines (44 loc) · 1.42 KB
/
roundcubemail.config.php
File metadata and controls
46 lines (44 loc) · 1.42 KB
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
<?php
require '/username-password.php';
$config['db_dsnw'] = 'mysql://mail:mail@mysql/roundcubemail';
$config['db_dsnr'] = '';
if ($environment == 'development') {
$config['default_host'] = 'ssl://greenmail:3993';
$config['default_port'] = '3993';
$config['smtp_server'] = 'greenmail';
$config['smtp_port'] = '3025';
$config['smtp_user'] = 'greenmail-user';
$config['smtp_pass'] = 'EzUVrHxLVrF2';
$config['ssl_verify_peer'] = false;
$config['ssl_verify_host'] = false;
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
}
elseif ($environment == 'production') {
$config['default_host'] = 'ssl://imap.one.com:993/imap/ssl';
$config['default_port'] = '993';
$config['smtp_user'] = $smtpUsername;
$config['smtp_pass'] = $smtpPassword;
}
else {
echo 'Unknown environment: ' . $environment;
exit;
}
$config['smtp_server'] = 'tls://' . $smtpServer;
$config['smtp_port'] = $smtpPort;
$config['temp_dir'] = '/tmp/roundcube-temp';
$config['plugins'] = ['archive', 'zipdownload'];
$config['zipdownload_selection'] = true;
$config['log_driver'] = 'stdout';