1+ <?php
2+ /* Local configuration for Roundcube Webmail */
3+
4+ //rewrite below this line
5+ $ config ['db_dsnw ' ] = 'mysql://roundcube:%password%@localhost/roundcube ' ;
6+
7+ // Log sent messages to <log_dir>/sendmail or to syslog
8+ $ config ['smtp_log ' ] = false ;
9+
10+ // Log IMAP conversation to <log_dir>/imap or to syslog
11+ $ config ['imap_debug ' ] = true ;
12+
13+ // Log SMTP conversation to <log_dir>/smtp.log or to syslog
14+ $ config ['smtp_debug ' ] = true ;
15+
16+ // ----------------------------------
17+ // IMAP
18+ // ----------------------------------
19+ // The IMAP host chosen to perform the log-in.
20+ // Leave blank to show a textbox at login, give a list of hosts
21+ // to display a pulldown menu or set one host as string.
22+ // Enter hostname with prefix ssl:// to use Implicit TLS, or use
23+ // prefix tls:// to use STARTTLS.
24+ // Supported replacement variables:
25+ // %n - hostname ($_SERVER['SERVER_NAME'])
26+ // %t - hostname without the first part
27+ // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
28+ // %s - domain name after the '@' from e-mail address provided at login screen
29+ // For example %n = mail.domain.tld, %t = domain.tld
30+ // WARNING: After hostname change update of mail_host column in users table is
31+ // required to match old user data records with the new host.
32+ $ config ['imap_host ' ] = 'localhost:143 ' ;
33+
34+ // IMAP socket context options
35+ // See http://php.net/manual/en/context.ssl.php
36+ // The example below enables server certificate validation
37+ //$config['imap_conn_options'] = array(
38+ // 'ssl' => array(
39+ // 'verify_peer' => true,
40+ // 'verify_depth' => 3,
41+ // 'cafile' => '/etc/openssl/certs/ca.crt',
42+ // ),
43+ // );
44+ // Note: These can be also specified as an array of options indexed by hostname
45+ $ config ['imap_conn_options ' ] = array (
46+ 'ssl ' =>
47+ array (
48+ 'verify_peer ' => false ,
49+ 'verify_peer_name ' => false ,
50+ 'verify_depth ' => 3 ,
51+ 'cafile ' => '/etc/ssl/certs/ca-certificates.crt ' ,
52+ ),
53+ );
54+
55+ // SMTP socket context options
56+ // See http://php.net/manual/en/context.ssl.php
57+ // The example below enables server certificate validation, and
58+ // requires 'smtp_timeout' to be non zero.
59+ // $config['smtp_conn_options'] = array(
60+ // 'ssl' => array(
61+ // 'verify_peer' => true,
62+ // 'verify_depth' => 3,
63+ // 'cafile' => '/etc/openssl/certs/ca.crt',
64+ // ),
65+ // );
66+ // Note: These can be also specified as an array of options indexed by hostname
67+ $ config ['smtp_conn_options ' ] = array (
68+ 'ssl ' =>
69+ array (
70+ 'verify_peer ' => false ,
71+ 'verify_peer_name ' => false ,
72+ 'verify_depth ' => 3 ,
73+ 'cafile ' => '/etc/ssl/certs/ca-certificates.crt ' ,
74+ ),
75+ );
76+
77+ // provide an URL where a user can get support for this Roundcube installation
78+ // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
79+ $ config ['support_url ' ] = '' ;
80+
81+ // use this folder to store log files
82+ // must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
83+ // This is used by the 'file' log driver.
84+ $ config ['log_dir ' ] = '/var/log/roundcube/ ' ;
85+
86+ // This key is used for encrypting purposes, like storing of imap password
87+ // in the session. For historical reasons it's called DES_key, but it's used
88+ // with any configured cipher_method (see below).
89+ // For the default cipher_method a required key length is 24 characters.
90+ $ config ['des_key ' ] = '%des_key% ' ;
91+
92+ // Maximum number of recipients per message (including To, Cc, Bcc).
93+ // Default: 0 (no limit)
94+ $ config ['max_recipients ' ] = 100 ;
95+
96+ // List of active plugins (in plugins/ directory)
97+ $ config ['plugins ' ] = array ('password ' , 'newmail_notifier ' , 'zipdownload ' , 'archive ' );
98+
99+ $ config ['default_user ' ] = '%u ' ;
100+
101+ $ config ['default_pass ' ] = '%p ' ;
102+
103+ $ config ['smtp_host ' ] = 'localhost:587 ' ;
104+
105+ // Log session authentication errors to <log_dir>/session or to syslog
106+ $ config ['log_session ' ] = true ;
107+ ?>
0 commit comments