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.

config.inc.php 23KB

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