AjoutĀ : etc/roundcube/config.inc.php
[lhc/ateliers.git] / etc / roundcube / config.inc.php
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Local configuration for the Roundcube Webmail installation. |
6 | |
7 | This is a sample configuration file only containing the minimum |
8 | setup required for a functional installation. Copy more options |
9 | from defaults.inc.php to this file to override the defaults. |
10 | |
11 | This file is part of the Roundcube Webmail client |
12 | Copyright (C) 2005-2013, The Roundcube Dev Team |
13 | |
14 | Licensed under the GNU General Public License version 3 or |
15 | any later version with exceptions for skins & plugins. |
16 | See the README file for a full license statement. |
17 +-----------------------------------------------------------------------+
18 */
19
20 $http_host=$_SERVER['HTTP_HOST'];
21 if (substr($http_host, 0, strlen("roundcube.")) == "roundcube.") {
22 $http_host = substr($http_host, strlen("roundcube."));
23 }
24
25 $config = array();
26
27 /* Do not set db_dsnw here, use dpkg-reconfigure roundcube-core to configure database ! */
28 include_once("/etc/roundcube/debian-db-roundcube.php");
29
30 // The mail host chosen to perform the log-in.
31 // Leave blank to show a textbox at login, give a list of hosts
32 // to display a pulldown menu or set one host as string.
33 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
34 // Supported replacement variables:
35 // %n - hostname ($_SERVER['SERVER_NAME'])
36 // %t - hostname without the first part
37 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
38 // %s - domain name after the '@' from e-mail address provided at login screen
39 // For example %n = mail.domain.tld, %t = domain.tld
40 $config['default_host'] = array("localhost");
41
42 // SMTP server host (for sending mails).
43 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
44 // If left blank, the PHP mail() function is used
45 // Supported replacement variables:
46 // %h - user's IMAP hostname
47 // %n - hostname ($_SERVER['SERVER_NAME'])
48 // %t - hostname without the first part
49 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
50 // %z - IMAP domain (IMAP hostname without the first part)
51 // For example %n = mail.domain.tld, %t = domain.tld
52 $config['smtp_server'] = '';
53
54 // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
55 // deprecated SSL over SMTP (aka SMTPS))
56 $config['smtp_port'] = 465;
57
58 // SMTP username (if required) if you use %u as the username Roundcube
59 // will use the current username for login
60 $config['smtp_user'] = '';
61
62 // SMTP password (if required) if you use %p as the password Roundcube
63 // will use the current user's password for login
64 $config['smtp_pass'] = '';
65
66 // provide an URL where a user can get support for this Roundcube installation
67 // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
68 $config['support_url'] = '';
69
70 // Name your service. This is displayed on the login screen and in the window title
71 $config['product_name'] = 'Roundcube Webmail';
72
73 // this key is used to encrypt the users imap password which is stored
74 // in the session record (and the client cookie if remember password is enabled).
75 // please provide a string of exactly 24 chars.
76 // YOUR KEY MUST BE DIFFERENT THAN THE SAMPLE VALUE FOR SECURITY REASONS
77 include_once("/etc/roundcube/key.inc.php");
78
79 // List of (in plugins/ directory)
80 $config['plugins'] = array(
81 'archive',
82 'acl',
83 'jqueryui',
84 'recipient_to_contact',
85 'password',
86 'userinfo',
87 #'hide_blockquote',
88 #'markasjunk2',
89 'managesieve',
90 'chbox',
91 #'markasjunk',
92 #'junk_keyword',
93 #'message_label',
94 #'all_folder_search',
95 'show_additional_headers',
96 #'subscriptions_option',
97 #'sieverules',
98 'threading_as_default',
99 'thunderbird_labels',
100 );
101
102 // skin name: folder from skins/
103 $config['skin'] = 'larry';
104
105
106 $config['debug_level'] = 4;
107 $config['log_driver'] = 'syslog';
108 $config['log_dir'] = '/home/www/log/php5/fpm/roundcube/';
109 $config['syslog_facility'] = LOG_MAIL;
110 $config['temp_dir'] = 'temp/';
111 if (file_exists("/home/www/data/roundcube/images/logo-$http_host.png")) {
112 $config['skin_logo'] = "./images/logo-$http_host.png";
113 }
114 else {
115 $config['skin_logo'] = null;
116 }
117 $config['db_dsnw'] = "pgsql://roundcube:@unix(/run/postgresql)/roundcube";
118 $config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
119 $config['imap_debug'] = false;
120 $config['password_confirm_current'] = true;
121 $config['password_minimum_length'] = 12;
122 $config['password_driver'] = 'chpasswd';
123 $config['password_chpasswd_cmd'] = '/usr/local/bin/roundcube-chpasswd';
124 $config['password_require_nonalpha'] = true;
125 $config['recipient_to_contact_addressbooks'] = array('sql');
126 $config['username_domain'] = "$http_host";
127 $config['mail_domain'] = "$http_host";
128 //$config['list_cols'] = array('subject', 'status', 'junk_keyword', 'from', 'date', 'size', 'flag', 'attachment');