config.inc.php 23 KB

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