You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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