-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.inc.example.php
206 lines (160 loc) · 5.53 KB
/
config.inc.example.php
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php
/*
* Phamm - http://www.phamm.org - <team AT phamm DOT org>
* Copyright (C) 2004-2016 Alessandro De Zorzi and Mirko Grava
* Project sponsored by RHX Srl - www.rhx.it
*
* Phamm is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Phamm is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* The main Phamm config file
*
* @package Phamm
* @subpackage configuration
* @author Alessandro De Zorzi <adezorzi AT rhx DOT it>
**/
// *============================*
// *=== LDAP Server Settings ===*
// *============================*
// The server address (To use ldapssl change to ldaps://localhost)
define ('LDAP_HOST_NAME','localhost');
// The protocol version [2,3]
define ('LDAP_PROTOCOL_VERSION','3');
// The server port (To use ldapssl change to 636)
define ('LDAP_PORT','389');
// Set LDAP_TLS to 1 if you want to use TLS
define ('LDAP_TLS',0);
// The container
define ('SUFFIX','dc=example,dc=tld');
// The admin bind dn (could be rootdn)
define ('BINDDN','cn=admin,dc=example,dc=tld');
// Another additional bind dn (optional)
define ('BINDDN_EXTRA','cn=adminplus,dc=example,dc=tld');
// The Phamm container
define ('LDAP_BASE','o=hosting,dc=example,dc=tld');
// *============================*
// *=== Layout Settings ===*
// *============================*
// Page title
define('ORG_TITLE','vMailpanel');
// URL
define('ORG_URL','https://github.com/wolfman68/vMailpanel');
// Logo
define('ORG_LOGO', './img/logo.jpg');
// CSS Style
$style = 'vmail';
// Default language
define ('DEFAULT_LANGUAGE','en_GB');
// The languages available
$supported_languages = array();
$supported_languages["de_DE"] = "Deutsch";
$supported_languages["en_GB"] = "English";
$supported_languages["es_ES"] = "Español";
$supported_languages["fr_FR"] = "French";
$supported_languages["hu_HU"] = "Hungarian";
$supported_languages["it_IT"] = "Italiano";
$supported_languages["pl_PL"] = "Polish";
$supported_languages["ru_RU"] = "Russian";
$supported_languages["vi_VN"] = "Tiếng Việt"; // Vietnamese
$supported_languages["da_DK"] = "Dansk"; // Danish
$supported_languages["pt_BR"] = "Portuguese";
// $supported_languages["ll_CC"] = "Your language here";
// This TLDs menu
$tld = array();
$tld[] = ".com";
$tld[] = ".org";
$tld[] = ".net";
// $tld[] = ".biz";
// $tld[] = ".info";
// $tld[] = ".eu";
// $tld[] = ".it";
// $tld[] = ".fr";
// $tld[] = ".de";
// *============================*
// *=== Plugins Settings ===*
// *============================*
// The default plugin
define ('DEFAULT_PLUGIN','mail');
// This array contains the active plugins
// NOTE the display order reflect this order
$plugins = array();
$plugins[] = "mail";
$plugins[] = "alias";
//$plugins[] = "dns";
//$plugins[] = "ftp";
//$plugins[] = "proxy";
//$plugins[] = "radius";
//$plugins[] = "radius_stats";
//$plugins[] = "rates";
//$plugins[] = "person";
//$plugins[] = "jabber";
//$plugins[] = "davical";
// Account can be mail OR alias
$plugins_exclusion = array("mail","alias");
// *============================*
// *=== System Settings ===*
// *============================*
// Phamm Version (+ indicate a SVN version)
define ('VERSION','0.9');
// Useful if you want hide the version [0,1]
define ('HIDE_VERSION',0);
// Useful if you wish force SSL through PHP [0,1]
define ('FORCE_SSL',0);
// Min password length
define ('PASSWORD_MIN_LENGHT',3);
// Seconds after refresh page
define ('REFRESH_TIME',1);
// A Domain administrator (example: postmaster)
define ('PHAMM_DOMAIN_ADMIN_NAME','postmaster');
// Welcome message
define ('SEND_WELCOME',0);
$welcome_msg = '../welcome_message.txt';
$welcome_subject = 'Welcome!';
# $welcome_sender = 'postmaster@localhost';
# $welcome_bcc = 'postmaster@localhost';
// *============================*
// *=== Advanced Settings ===*
// *============================*
// Debug level [0,1]
define ('DEBUG',0);
// PHP Error Level [0,1,2,10]
define ('ERROR_LEVEL',2);
// Log level 0->don't log [0,1,2]
define ('PHAMM_LOG',0);
// Log file path
define ('LOG_FILE','/var/log/phamm.log');
// Standard LDAP encryption type [CRYPT,MD5,CLEAR]
define ('ENC_TYPE','MD5');
// Standard Crypt salt [RANDOM, PASSWORD, SALT]
// RANDOM - Choose a random salt
// PASSWORD - Guess salt by password
// Anything else - Use this phrase as a salt
define ('CRYPT_SALT', 'RANDOM');
// salt string length, must greater than or equal to PASSWORD_MIN_LENGHT
define ('SALT_LENGTH', 3);
// Phamm autogenerate UID from e-mail
// set char used instead @ (default=.)
// i.e. [email protected] produce UID=info.example.com
define ('CHR_UID_ACCOUNT','.');
// Permit login without @domain (use it with carefull)
// define ('DEFAULT_DOMAIN','example.tld');
// If you wish skip count for max* attributes for certain mail account
// Use * to skip for all account
// Examples:
// '*' will be interpreted as '*@*'
// 'www' will be interpreted as 'www@*'
// $skip_max_count_prefix = array('www');
// Delete account immediately (if unset or false, Phamm simply change attribute delete=TRUE)
define ('DELETE_ACCOUNT_IMMEDIATELY', false);