config.inc.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. <?php
  2. /**
  3. * Postfix Admin
  4. *
  5. * LICENSE
  6. * This source file is subject to the GPL license that is bundled with
  7. * this package in the file LICENSE.TXT.
  8. *
  9. * Further details on the project are available at http://postfixadmin.sf.net
  10. *
  11. * @license GNU GPL v2 or later.
  12. *
  13. * File: config.inc.php
  14. * Contains configuration options.
  15. */
  16. ################################################################################
  17. # #
  18. # PostfixAdmin default configuration #
  19. # #
  20. # This file contains the PostfixAdmin default configuration settings. #
  21. # #
  22. # Please do not edit this file. #
  23. # #
  24. # Instead, add the options you want to change/override to #
  25. # config.local.php (if it doesn't exist, create it). #
  26. # This will make version upgrades much easier. #
  27. # #
  28. ################################################################################
  29. global $CONF;
  30. /*****************************************************************
  31. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  32. * You have to set $CONF['configured'] = true; before the
  33. * application will run!
  34. * Doing this implies you have changed this file as required.
  35. * i.e. configuring database etc; specifying setup.php password etc.
  36. */
  37. $CONF['configured'] = true;
  38. // In order to setup Postfixadmin, you MUST specify a hashed password here.
  39. // To create the hash, visit setup.php in a browser and type a password into the field,
  40. // on submission it will be echoed out to you as a hashed value.
  41. $CONF['setup_password'] = '$2y$10$SgV0HBNIquL1WhgDDbC0UOU92HAC8j70h82qx43TOWXJ5ojowIKUC';
  42. // Language config
  43. // Language files are located in './languages', change as required..
  44. $CONF['default_language'] = 'en';
  45. // Hook to override or add translations in $PALANG
  46. // Set to the function name you want to use as hook function (see language_hook example function below)
  47. $CONF['language_hook'] = '';
  48. /*
  49. language_hook example function
  50. Called if $CONF['language_hook'] == '<name_of_the_function>'
  51. Allows to add or override $PALANG interface texts.
  52. If you add new texts, please always prefix them with 'x_' (for example
  53. $PALANG['x_mytext'] = 'foo') to avoid they clash with texts that might be
  54. added to languages/*.lang in future versions of PostfixAdmin.
  55. Please also make sure that all your added texts are included in all
  56. sections - that includes all 'case "XY":' sections and the 'default:'
  57. section (for users that don't have any of the languages specified
  58. in the 'case "XY":' section).
  59. Usually the 'default:' section should contain english text.
  60. If you modify an existing text/translation, please consider to report it
  61. to the bugtracker on http://sf.net/projects/postfixadmin so that all users
  62. can benefit from the corrected text/translation.
  63. Returns: modified $PALANG array
  64. */
  65. /*
  66. function language_hook($PALANG, $language) {
  67. switch ($language) {
  68. case "de":
  69. $PALANG['x_whatever'] = 'foo';
  70. break;
  71. case "fr":
  72. $PALANG['x_whatever'] = 'bar';
  73. break;
  74. default:
  75. $PALANG['x_whatever'] = 'foobar';
  76. }
  77. return $PALANG;
  78. }
  79. */
  80. // Database Config
  81. // mysql = MySQL 3.23 and 4.0, 4.1 or 5
  82. // mysqli = MySQL 4.1+ or MariaDB
  83. // pgsql = PostgreSQL
  84. // sqlite = SQLite 3
  85. $CONF['database_type'] = 'mysqli';
  86. $CONF['database_host'] = 'localhost';
  87. $CONF['database_user'] = 'vmailadmin';
  88. $CONF['database_password'] = 'STRONGPASSWORD';
  89. $CONF['database_name'] = 'vmailadmin';
  90. // Database SSL Config (PDO/MySQLi only)
  91. $CONF['database_use_ssl'] = false;
  92. $CONF['database_ssl_key'] = NULL;
  93. $CONF['database_ssl_cert'] = NULL;
  94. $CONF['database_ssl_ca'] = NULL;
  95. $CONF['database_ssl_ca_path'] = NULL;
  96. $CONF['database_ssl_cipher'] = NULL;
  97. $CONF['database_ssl_verify_server_cert'] = true;
  98. // If you need to specify a different port for a MYSQL database connection, use e.g.
  99. // $CONF['database_host'] = '172.30.33.66:3308';
  100. //
  101. // If you need to specify a different port for MySQLi(3306)/POSTGRESQL(5432) database connection
  102. // uncomment and change the following
  103. // $CONF['database_port'] = '5432';
  104. //
  105. // If you wish to connect using a local socket file (e.g /var/run/mysql.sock) set this to the socket path.
  106. // $CONF['database_socket'] = '/var/run/mysql/mysqld.sock';
  107. $CONF['database_socket'] = '';
  108. // If sqlite is used, specify the database file path:
  109. // $CONF['database_name'] = '/etc/postfix/sqlite/postfixadmin.db'
  110. // Here, if you need, you can customize table names.
  111. $CONF['database_prefix'] = '';
  112. $CONF['database_tables'] = array (
  113. 'admin' => 'admin',
  114. 'alias' => 'alias',
  115. 'alias_domain' => 'alias_domain',
  116. 'config' => 'config',
  117. 'domain' => 'domain',
  118. 'domain_admins' => 'domain_admins',
  119. 'fetchmail' => 'fetchmail',
  120. 'log' => 'log',
  121. 'mailbox' => 'mailbox',
  122. 'vacation' => 'vacation',
  123. 'vacation_notification' => 'vacation_notification',
  124. 'quota' => 'quota',
  125. 'quota2' => 'quota2',
  126. );
  127. // Site Admin
  128. // Define the Site Admin's email address below.
  129. // This will be used to send emails from to create mailboxes and
  130. // from Send Email / Broadcast message pages.
  131. // Leave blank to send email from the logged-in Admin's Email address.
  132. $CONF['admin_email'] = '';
  133. // Define the smtp password for admin_email.
  134. // This will be used to send emails from to create mailboxes and
  135. // from Send Email / Broadcast message pages.
  136. // Leave blank to send emails without authentification
  137. $CONF['admin_smtp_password'] = '';
  138. // Site admin name
  139. // This will be used as signature in notification messages
  140. $CONF['admin_name'] = 'Postmaster';
  141. // Mail Server
  142. // Hostname (FQDN) of your mail server.
  143. // This is used to send email to Postfix in order to create mailboxes.
  144. $CONF['smtp_server'] = 'localhost';
  145. $CONF['smtp_port'] = '25';
  146. // SMTP Client
  147. // Hostname (FQDN) of the server hosting Postfix Admin
  148. // Used in the HELO when sending emails from Postfix Admin
  149. $CONF['smtp_client'] = '';
  150. // Set 'YES' to use TLS when sending emails.
  151. $CONF['smtp_sendmail_tls'] = 'NO';
  152. // Encrypt
  153. // In what way do you want the passwords to be crypted?
  154. // md5crypt = internal postfix admin md5
  155. // md5 = md5 sum of the password
  156. // system = whatever you have set as your PHP system default
  157. // cleartext = clear text passwords (ouch!)
  158. // mysql_encrypt = useful for PAM integration
  159. // authlib = support for courier-authlib style passwords - also set $CONF['authlib_default_flavor']
  160. // dovecot:CRYPT-METHOD = use dovecotpw -s 'CRYPT-METHOD'. Example: dovecot:CRAM-MD5
  161. // php_crypt:CRYPT-METHOD:DIFFICULTY:PREFIX = use PHP built in crypt()-function. Example: php_crypt:SHA512:50000
  162. // - php_crypt CRYPT-METHOD: Supported values are DES, MD5, BLOWFISH, SHA256, SHA512
  163. // - php_crypt DIFFICULTY: Larger value is more secure, but uses more CPU and time for each login.
  164. // - php_crypt DIFFICULTY: Set this according to your CPU processing power.
  165. // - php_crypt DIFFICULTY: Supported values are BLOWFISH:4-31, SHA256:1000-999999999, SHA512:1000-999999999
  166. // - php_crypt DIFFICULTY: leave empty to use default values (BLOWFISH:10, SHA256:5000, SHA512:5000). Example: php_crypt:SHA512
  167. // IMPORTANT:
  168. // - don't use dovecot:* methods that include the username in the hash - you won't be able to login to PostfixAdmin in this case
  169. // - you'll need at least dovecot 2.1 for salted passwords ('doveadm pw' 2.0.x doesn't support the '-t' option)
  170. // - dovecot 2.0.0 - 2.0.7 is not supported
  171. // - php_crypt PREFIX: hash has specified prefix - example: php_crypt:SHA512::{SHA256-CRYPT}
  172. // sha512.b64 - {SHA512-CRYPT.B64} (base64 encoded sha512) (no dovecot dependency; should support migration from md5crypt)
  173. $CONF['encrypt'] = 'dovecot:CRAM-MD5';
  174. // In what flavor should courier-authlib style passwords be encrypted?
  175. // (only used if $CONF['encrypt'] == 'authlib')
  176. // md5 = {md5} + base64 encoded md5 hash
  177. // md5raw = {md5raw} + plain encoded md5 hash
  178. // SHA = {SHA} + base64-encoded sha1 hash
  179. // crypt = {crypt} + Standard UNIX DES-encrypted with 2-character salt
  180. $CONF['authlib_default_flavor'] = 'md5raw';
  181. // If you use the dovecot encryption method: where is the dovecotpw binary located?
  182. // for dovecot 1.x
  183. // $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
  184. // for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!)
  185. $CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
  186. if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see https://github.com/postfixadmin/postfixadmin/issues/171
  187. $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
  188. }
  189. // Password validation
  190. // New/changed passwords will be validated using all regular expressions in the array.
  191. // If a password doesn't match one of the regular expressions, the corresponding
  192. // error message from $PALANG (see languages/*.lang) will be displayed.
  193. // See http://de3.php.net/manual/en/reference.pcre.pattern.syntax.php for details
  194. // about the regular expression syntax.
  195. // If you need custom error messages, you can add them using $CONF['language_hook'].
  196. // If a $PALANG text contains a %s, you can add its value after the $PALANG key
  197. // (separated with a space).
  198. $CONF['password_validation'] = array(
  199. # '/regular expression/' => '$PALANG key (optional: + parameter)',
  200. '/.{5}/' => 'password_too_short 5', # minimum length 5 characters
  201. '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters
  202. '/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits
  203. /* support a 'callable' value which if it returns a non-empty string will be assumed to have failed, non-empty string should be a PALANG key */
  204. // 'length_check' => function($password) { if (strlen(trim($password)) < 3) { return 'password_too_short'; } },
  205. );
  206. // Generate Password
  207. // Generate a random password for a mailbox or admin and display it.
  208. // If you want to automagically generate passwords set this to 'YES'.
  209. $CONF['generate_password'] = 'NO';
  210. // Show Password
  211. // Always show password after adding a mailbox or admin.
  212. // If you want to always see what password was set set this to 'YES'.
  213. $CONF['show_password'] = 'NO';
  214. // Page Size
  215. // Set the number of entries that you would like to see
  216. // in one page.
  217. $CONF['page_size'] = '10';
  218. // Default Aliases
  219. // The default aliases that need to be created for all domains.
  220. // You can specify the target address in two ways:
  221. // a) a full mail address
  222. // b) only a localpart ('postmaster' => 'admin') - the alias target will point to the same domain
  223. $CONF['default_aliases'] = array (
  224. 'noreply' => 'noreply@<Domain Name>',
  225. 'everyone' => 'everyone@<Domain Name>',
  226. 'catchall' => 'catchall@<Domain Name>'
  227. );
  228. // Mailboxes
  229. // If you want to store the mailboxes per domain set this to 'YES'.
  230. // Examples:
  231. // YES: /usr/local/virtual/domain.tld/username@domain.tld
  232. // NO: /usr/local/virtual/username@domain.tld
  233. $CONF['domain_path'] = 'YES';
  234. // If you don't want to have the domain in your mailbox set this to 'NO'.
  235. // Examples:
  236. // YES: /usr/local/virtual/domain.tld/username@domain.tld
  237. // NO: /usr/local/virtual/domain.tld/username
  238. // Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES.
  239. $CONF['domain_in_mailbox'] = 'NO';
  240. // If you want to define your own function to generate a maildir path set this to the name of the function.
  241. // Notes:
  242. // - this configuration directive will override both domain_path and domain_in_mailbox
  243. // - the maildir_name_hook() function example is present below, commented out
  244. // - if the function does not exist the program will default to the above domain_path and domain_in_mailbox settings
  245. $CONF['maildir_name_hook'] = 'NO';
  246. /*
  247. maildir_name_hook example function
  248. Called when creating a mailbox if $CONF['maildir_name_hook'] == '<name_of_the_function>'
  249. - allows for customized maildir paths determined by a custom function
  250. - the example below will prepend a single-character directory to the
  251. beginning of the maildir, splitting domains more or less evenly over
  252. 36 directories for improved filesystem performance with large numbers
  253. of domains.
  254. Returns: maildir path
  255. ie. I/example.com/user/
  256. */
  257. /*
  258. function maildir_name_hook($domain, $user) {
  259. $chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  260. $dir_index = hexdec(substr(md5($domain), 28)) % strlen($chars);
  261. $dir = substr($chars, $dir_index, 1);
  262. return sprintf("%s/%s/%s/", $dir, $domain, $user);
  263. }
  264. */
  265. /*
  266. *_struct_hook - change, add or remove fields
  267. If you need additional fields or want to change or remove existing fields,
  268. you can write a hook function to modify $struct in the *Handler classes.
  269. The edit form will automatically be updated according to the modified
  270. $struct. The list page is not yet updated automatically.
  271. You can define one hook function per class, named like the primary database
  272. table of that class.
  273. The hook function is called with $struct as parameter and must return the
  274. modified $struct.
  275. Note: Adding a field to $struct adds the handling of this field in
  276. PostfixAdmin, but it does not create it in the database. You have to do
  277. that yourself.
  278. Please follow the naming policy for custom database fields and tables on
  279. https://sourceforge.net/p/postfixadmin/wiki/Custom_fields/
  280. to avoid clashes with future versions of PostfixAdmin.
  281. See initStruct() in the *Handler class for the default $struct.
  282. See pacol() in functions.inc.php for the available flags on each column.
  283. Example:
  284. function x_struct_admin_modify($struct) {
  285. $struct['superadmin']['editable'] = 0; # make the 'superadmin' flag read-only
  286. $struct['superadmin']['display_in_form'] = 0; # don't display the 'superadmin' flag in edit form
  287. $struct['x_newfield'] = pacol( [...] ); # additional field 'x_newfield'
  288. return $struct; # important!
  289. }
  290. $CONF['admin_struct_hook'] = 'x_struct_admin_modify';
  291. */
  292. $CONF['admin_struct_hook'] = '';
  293. $CONF['domain_struct_hook'] = '';
  294. $CONF['alias_struct_hook'] = '';
  295. $CONF['mailbox_struct_hook'] = '';
  296. $CONF['alias_domain_struct_hook'] = '';
  297. $CONF['fetchmail_struct_hook'] = '';
  298. // Default Domain Values
  299. // Specify your default values below. Quota in MB.
  300. $CONF['aliases'] = '10';
  301. $CONF['mailboxes'] = '10';
  302. $CONF['maxquota'] = '1024';
  303. $CONF['domain_quota_default'] = '2048';
  304. // Quota
  305. // When you want to enforce quota for your mailbox users set this to 'YES'.
  306. $CONF['quota'] = 'YES';
  307. // If you want to enforce domain-level quotas set this to 'YES'.
  308. $CONF['domain_quota'] = 'YES';
  309. // You can either use '1024000' or '1048576'
  310. $CONF['quota_multiplier'] = '1024000';
  311. // fill state threshold (in per cent) for medium level (displayed as orange)
  312. $CONF['quota_level_med_pct'] = 55;
  313. // fill state threshold (in per cent) for high level (displayed as red)
  314. $CONF['quota_level_high_pct'] = 90;
  315. // Transport
  316. // If you want to define additional transport options for a domain set this to 'YES'.
  317. // Read the transport file of the Postfix documentation.
  318. $CONF['transport'] = 'NO';
  319. // Transport options
  320. // If you want to define additional transport options put them in array below.
  321. $CONF['transport_options'] = array (
  322. 'virtual', // for virtual accounts
  323. 'local', // for system accounts
  324. 'relay' // for backup mx
  325. );
  326. // Transport default
  327. // You should define default transport. It must be in array above.
  328. $CONF['transport_default'] = 'virtual';
  329. //
  330. //
  331. // Virtual Vacation Stuff
  332. //
  333. //
  334. // If you want to use virtual vacation for you mailbox users set this to 'YES'.
  335. // NOTE: Make sure that you install the vacation module. (See VIRTUAL-VACATION/)
  336. $CONF['vacation'] = 'NO';
  337. // This is the autoreply domain that you will need to set in your Postfix
  338. // transport maps to handle virtual vacations. It does not need to be a
  339. // real domain (i.e. you don't need to setup DNS for it).
  340. // This domain must exclusively be used for vacation. Do NOT use it for "normal" mail addresses.
  341. $CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';
  342. // Vacation Control
  343. // If you want users to take control of vacation set this to 'YES'.
  344. $CONF['vacation_control'] ='YES';
  345. // Vacation Control for admins
  346. // Set to 'YES' if your domain admins should be able to edit user vacation.
  347. $CONF['vacation_control_admin'] = 'YES';
  348. // ReplyType options
  349. // If you want to define additional reply options put them in array below.
  350. // The array has the format seconds between replies => $PALANG text
  351. // Special values for seconds are:
  352. // 0 => only reply to the first mail while on vacation
  353. // 1 => reply on every mail
  354. $CONF['vacation_choice_of_reply'] = array (
  355. 0 => 'reply_once', // Sends only Once the message during Out of Office
  356. # considered annoying - only send a reply on every mail if you really need it
  357. # 1 => 'reply_every_mail', // Reply on every email
  358. 60*60 *24*7 => 'reply_once_per_week' // Reply if last autoreply was at least a week ago
  359. );
  360. //
  361. // End Vacation Stuff.
  362. //
  363. // Alias Control
  364. // Postfix Admin inserts an alias in the alias table for every mailbox it creates.
  365. // The reason for this is that when you want catch-all and normal mailboxes
  366. // to work you need to have the mailbox replicated in the alias table.
  367. // If you want to take control of these aliases as well set this to 'YES'.
  368. // If you don't want edit alias tab (user mode) set this to 'NO';
  369. $CONF['edit_alias'] = 'YES';
  370. // Alias control for superadmins
  371. $CONF['alias_control'] = 'YES';
  372. // Alias Control for domain admins
  373. $CONF['alias_control_admin'] = 'YES';
  374. // Special Alias Control
  375. // Set to 'NO' if your domain admins shouldn't be able to edit the default aliases
  376. // as defined in $CONF['default_aliases']
  377. $CONF['special_alias_control'] = 'NO';
  378. // Alias Goto Field Limit
  379. // Set the max number of entries that you would like to see
  380. // in one 'goto' field in overview, the rest will be hidden and "[and X more...]" will be added.
  381. // '0' means no limits.
  382. $CONF['alias_goto_limit'] = '0';
  383. // Alias Domains
  384. // Alias domains allow to "mirror" aliases and mailboxes to another domain. This makes
  385. // configuration easier if you need the same set of aliases on multiple domains, but
  386. // also requires postfix to do more database queries.
  387. // Note: If you update from 2.2.x or earlier, you will have to update your postfix configuration.
  388. // Set to 'NO' to disable alias domains.
  389. $CONF['alias_domain'] = 'YES';
  390. // Backup
  391. // If you don't want backup tab set this to 'NO';
  392. $CONF['backup'] = 'NO';
  393. // Send Mail
  394. // If you don't want sendmail tab set this to 'NO';
  395. $CONF['sendmail'] = 'YES';
  396. // Set this to YES if you want to allow non-super-admins to
  397. // send mails to their users
  398. $CONF['sendmail_all_admins'] = 'NO';
  399. // Logging
  400. // If you don't want logging set this to 'NO';
  401. $CONF['logging'] = 'YES';
  402. // Fetchmail
  403. // If you don't want fetchmail tab set this to 'NO';
  404. $CONF['fetchmail'] = 'YES';
  405. // fetchmail_extra_options allows users to specify any fetchmail options and any MDA
  406. // (it will even accept 'rm -rf /' as MDA!)
  407. // This should be set to NO, except if you *really* trust *all* your users.
  408. $CONF['fetchmail_extra_options'] = 'NO';
  409. // Header
  410. $CONF['show_header_text'] = 'NO';
  411. $CONF['header_text'] = ':: MyHosted Mail ::';
  412. // Footer
  413. // Below information will be on all pages.
  414. // If you don't want the footer information to appear set this to 'NO'.
  415. $CONF['show_footer_text'] = 'YES';
  416. $CONF['footer_text'] = 'Return to MyHosted Mailserver Home Page';
  417. $CONF['footer_link'] = '%n';
  418. // MOTD ("Motto of the day")
  419. // You can display a MOTD below the menu on all pages.
  420. // This can be configured seperately for users, domain admins and superadmins
  421. $CONF['motd_user'] = '';
  422. $CONF['motd_admin'] = '';
  423. $CONF['motd_superadmin'] = '';
  424. // Welcome Message
  425. // This message is send to every newly created mailbox.
  426. // Change the text between EOM.
  427. $CONF['welcome_text'] = <<<EOM
  428. Hi,
  429. Welcome to your MyHosted Mail new account.
  430. EOM;
  431. // When creating mailboxes or aliases, check that the domain-part of the
  432. // address is legal by performing a name server look-up.
  433. $CONF['emailcheck_resolve_domain']='YES';
  434. // Optional:
  435. // Analyze alias gotos and display a colored block in the first column
  436. // indicating if an alias or mailbox appears to deliver to a non-existent
  437. // account. Also, display indications, for POP/IMAP mailboxes and
  438. // for custom destinations (such as mailboxes that forward to a UNIX shell
  439. // account or mail that is sent to a MS exchange server, or any other
  440. // domain or subdomain you use)
  441. // See http://www.w3schools.com/html/html_colornames.asp for a list of
  442. // color names available on most browsers
  443. //set to YES to enable this feature
  444. $CONF['show_status']='YES';
  445. //display a guide to what these colors mean
  446. $CONF['show_status_key']='YES';
  447. // 'show_status_text' will be displayed with the background colors
  448. // associated with each status, you can customize it here
  449. $CONF['show_status_text']='&nbsp;&nbsp;';
  450. // show_undeliverable is useful if most accounts are delivered to this
  451. // postfix system. If many aliases and mailboxes are forwarded
  452. // elsewhere, you will probably want to disable this.
  453. $CONF['show_undeliverable']='YES';
  454. $CONF['show_undeliverable_color']='tomato';
  455. // mails to these domains will never be flagged as undeliverable
  456. $CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext");
  457. // show mailboxes with expired password; requires password_expiration to be enabled
  458. $CONF['show_expired']='YES';
  459. $CONF['show_expired_color']='orange';
  460. // show vacation enabled mailboxes
  461. $CONF['show_vacation']='YES';
  462. $CONF['show_vacation_color']='turquoise';
  463. // show disabled accounts
  464. $CONF['show_disabled']='YES';
  465. $CONF['show_disabled_color']='grey';
  466. // show POP/IMAP mailboxes
  467. $CONF['show_popimap']='YES';
  468. $CONF['show_popimap_color']='darkgrey';
  469. // you can assign special colors to some domains. To do this,
  470. // - add the domain to show_custom_domains
  471. // - add the corresponding color to show_custom_colors
  472. $CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext");
  473. $CONF['show_custom_colors']=array("lightgreen","lightblue");
  474. // If you use a recipient_delimiter in your postfix config, you can also honor it when aliases are checked.
  475. // Example: $CONF['recipient_delimiter'] = "+";
  476. // Set to "" to disable this check.
  477. $CONF['recipient_delimiter'] = "";
  478. // Optional:
  479. // Script to run after creation of mailboxes.
  480. // Note that this may fail if PHP is run in "safe mode", or if
  481. // operating system features (such as SELinux) or limitations
  482. // prevent the web-server from executing external scripts.
  483. // Parameters: (1) username (2) domain (3) maildir (4) quota
  484. // $CONF['mailbox_postcreation_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postcreation.sh';
  485. $CONF['mailbox_postcreation_script'] = '';
  486. // Optional:
  487. // Script to run after alteration of mailboxes.
  488. // Note that this may fail if PHP is run in "safe mode", or if
  489. // operating system features (such as SELinux) or limitations
  490. // prevent the web-server from executing external scripts.
  491. // Parameters: (1) username (2) domain (3) maildir (4) quota
  492. // $CONF['mailbox_postedit_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postedit.sh';
  493. $CONF['mailbox_postedit_script'] = '';
  494. // Optional:
  495. // Script to run after deletion of mailboxes.
  496. // Note that this may fail if PHP is run in "safe mode", or if
  497. // operating system features (such as SELinux) or limitations
  498. // prevent the web-server from executing external scripts.
  499. // Parameters: (1) username (2) domain
  500. // $CONF['mailbox_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postdeletion.sh';
  501. $CONF['mailbox_postdeletion_script'] = '';
  502. // Optional:
  503. // Script to run after creation of domains.
  504. // Note that this may fail if PHP is run in "safe mode", or if
  505. // operating system features (such as SELinux) or limitations
  506. // prevent the web-server from executing external scripts.
  507. // Parameters: (1) domain
  508. //$CONF['domain_postcreation_script']='sudo -u courier /usr/local/bin/postfixadmin-domain-postcreation.sh';
  509. $CONF['domain_postcreation_script'] = '';
  510. // Optional:
  511. // Script to run after deletion of domains.
  512. // Note that this may fail if PHP is run in "safe mode", or if
  513. // operating system features (such as SELinux) or limitations
  514. // prevent the web-server from executing external scripts.
  515. // Parameters: (1) domain
  516. // $CONF['domain_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-domain-postdeletion.sh';
  517. $CONF['domain_postdeletion_script'] = '';
  518. // Optional:
  519. // Sub-folders which should automatically be created for new users.
  520. // The sub-folders will also be subscribed to automatically.
  521. // Will only work with IMAP server which implement sub-folders.
  522. // Will not work with POP3.
  523. // If you define create_mailbox_subdirs, then the
  524. // create_mailbox_subdirs_host must also be defined.
  525. // Note: requires imap extension within PHP
  526. // $CONF['create_mailbox_subdirs']=array('Spam');
  527. $CONF['create_mailbox_subdirs'] = array();
  528. $CONF['create_mailbox_subdirs_host']='localhost';
  529. //
  530. // Specify '' for Dovecot and 'INBOX.' for Courier.
  531. $CONF['create_mailbox_subdirs_prefix']='INBOX.';
  532. // Optional:
  533. // Show used quotas from Dovecot dictionary backend in virtual
  534. // mailbox listing.
  535. // See: DOCUMENTATION/DOVECOT.txt
  536. // http://wiki.dovecot.org/Quota/Dict
  537. //
  538. $CONF['used_quotas'] = 'YES';
  539. // if you use dovecot >= 1.2, set this to yes.
  540. // Note about dovecot config: table "quota" is for 1.0 & 1.1, table "quota2" is for dovecot 1.2 and newer
  541. $CONF['new_quota_table'] = 'YES';
  542. //
  543. // Normally, the TCP port number does not have to be specified.
  544. // $CONF['create_mailbox_subdirs_hostport']=143;
  545. //
  546. // If you have trouble connecting to the IMAP-server, then specify
  547. // a value for $CONF['create_mailbox_subdirs_hostoptions']. These
  548. // are some examples to experiment with:
  549. // $CONF['create_mailbox_subdirs_hostoptions']=array('notls');
  550. // $CONF['create_mailbox_subdirs_hostoptions']=array('novalidate-cert','norsh');
  551. // See also the "Optional flags for names" table at
  552. // http://www.php.net/manual/en/function.imap-open.php
  553. $CONF['create_mailbox_subdirs_hostoptions'] = array();
  554. // Optional:
  555. // Allows a user to reset his forgotten password with a code sent by email/SMS
  556. $CONF['forgotten_user_password_reset'] = true;
  557. // Allows an admin to reset his forgotten password with a code sent by email/SMS
  558. $CONF['forgotten_admin_password_reset'] = false;
  559. // Name of the function to send a SMS
  560. // Please use a name that begins with "x_" to prevent collisions
  561. // This function must accept 2 parameters: phone number and message,
  562. // and return true on success or false on failure
  563. // Note: if no sms_send_function is defined, the input field for the mobile
  564. // number won't be displayed
  565. $CONF['sms_send_function'] = '';
  566. /*
  567. // Example of send SMS function using Clickatell HTTP API
  568. function x_send_sms_clickatell($to, $message) {
  569. $clickatell_api_id = 'CHANGEME';
  570. $clickatell_user = 'CHANGEME';
  571. $clickatell_password = 'CHANGEME';
  572. $clickatell_sender = 'CHANGEME';
  573. $url = 'https://api.clickatell.com/http/sendmsg?api_id=%s&user=%s&password=%s&to=%s&from=%s&text=%s';
  574. $url = sprintf($url, $clickatell_api_id, $clickatell_user, $clickatell_password, $to, $clickatell_sender, urlencode($message));
  575. $result = file_get_contents($url);
  576. return $result !== false;
  577. }
  578. */
  579. // Theme Config
  580. $CONF['theme'] = 'default';
  581. // Specify your own favicon, logo and CSS file
  582. $CONF['theme_favicon'] = 'images/favicon.ico';
  583. $CONF['theme_logo'] = 'images/logo-default.png';
  584. $CONF['theme_css'] = 'css/bootstrap.css';
  585. // If you want to customize some styles without editing the $CONF['theme_css'] file,
  586. // you can add a custom CSS file. It will be included after $CONF['theme_css'].
  587. $CONF['theme_custom_css'] = '';
  588. // XMLRPC Interface.
  589. // This should be only of use if you wish to use e.g the
  590. // Postfixadmin-Squirrelmail package
  591. // change to boolean true to enable xmlrpc
  592. $CONF['xmlrpc_enabled'] = false;
  593. //Account expiration info
  594. //If enabled, mailbox passwords have a password_expiry field set, which is updated each time the password is changed, based on the parent domain's password_expiry (days) value.
  595. //More details in README.password_expiration
  596. $CONF['password_expiration'] = 'YES';
  597. $CONF['version'] = '3.3.8';
  598. // If you want to keep most settings at default values and/or want to ensure
  599. // that future updates work without problems, you can use a separate config
  600. // file (config.local.php) instead of editing this file and override some
  601. // settings there.
  602. if (file_exists(dirname(__FILE__) . '/config.local.php')) {
  603. require_once(dirname(__FILE__) . '/config.local.php');
  604. }
  605. //
  606. // END OF CONFIG FILE
  607. //
  608. /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */