PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
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.

250 lines
8.6 KiB

  1. <?php
  2. //
  3. // Postfix Admin
  4. // by Mischa Peters <mischa at high5 dot net>
  5. // Copyright (c) 2002 - 2005 High5!
  6. // Licensed under GPL for more info check GPL-LICENSE.TXT
  7. //
  8. // File: config.inc.php
  9. //
  10. if (ereg ("config.inc.php", $_SERVER['PHP_SELF']))
  11. {
  12. header ("Location: login.php");
  13. exit;
  14. }
  15. // Postfix Admin Path
  16. // Set the location of your Postfix Admin installation here.
  17. // You must enter complete url (http://domain.tld/) and full path (/var/www/postfixadmin)
  18. $CONF['postfix_admin_url'] = '';
  19. $CONF['postfix_admin_path'] = '';
  20. // Language config
  21. // Language files are located in './languages'.
  22. $CONF['default_language'] = 'en';
  23. // Database Config
  24. // mysql = MySQL 3.23 and 4.0
  25. // mysqli = MySQL 4.1
  26. // pgsql = PostgreSQL
  27. $CONF['database_type'] = 'mysql';
  28. $CONF['database_host'] = 'localhost';
  29. $CONF['database_user'] = 'postfixadmin';
  30. $CONF['database_password'] = 'postfixadmin';
  31. $CONF['database_name'] = 'postfix';
  32. $CONF['database_prefix'] = '';
  33. // Here, if you need, you can customize table names.
  34. $CONF['database_prefix'] = '';
  35. $CONF['database_tables'] = array (
  36. 'admin' => 'admin',
  37. 'alias' => 'alias',
  38. 'domain' => 'domain',
  39. 'domain_admins' => 'domain_admins',
  40. 'log' => 'log',
  41. 'mailbox' => 'mailbox',
  42. 'vacation' => 'vacation'
  43. );
  44. // Site Admin
  45. // Define the Site Admins email address below.
  46. // This will be used to send emails from to create mailboxes.
  47. $CONF['admin_email'] = 'postmaster@change-this-to-your.domain.tld';
  48. // Mail Server
  49. // Hostname (FQDN) of your mail server.
  50. // This is used to send email to Postfix in order to create mailboxes.
  51. $CONF['smtp_server'] = 'localhost';
  52. $CONF['smtp_port'] = '25';
  53. // Encrypt
  54. // In what way do you want the passwords to be crypted?
  55. // md5crypt = internal postfix admin md5
  56. // system = whatever you have set as your PHP system default
  57. // cleartext = clear text passwords (ouch!)
  58. $CONF['encrypt'] = 'md5crypt';
  59. // Generate Password
  60. // Generate a random password for a mailbox or admin and display it.
  61. // If you want to automagically generate paswords set this to 'YES'.
  62. $CONF['generate_password'] = 'NO';
  63. // Show Password
  64. // Always show password after adding a mailbox or admin.
  65. // If you want to always see what password was set set this to 'YES'.
  66. $CONF['show_password'] = 'NO';
  67. // Page Size
  68. // Set the number of entries that you would like to see
  69. // in one page.
  70. $CONF['page_size'] = '10';
  71. // Default Aliases
  72. // The default aliases that need to be created for all domains.
  73. $CONF['default_aliases'] = array (
  74. 'abuse' => 'abuse@change-this-to-your.domain.tld',
  75. 'hostmaster' => 'hostmaster@change-this-to-your.domain.tld',
  76. 'postmaster' => 'postmaster@change-this-to-your.domain.tld',
  77. 'webmaster' => 'webmaster@change-this-to-your.domain.tld'
  78. );
  79. // Mailboxes
  80. // If you want to store the mailboxes per domain set this to 'YES'.
  81. // Example: /usr/local/virtual/domain.tld/username@domain.tld
  82. $CONF['domain_path'] = 'NO';
  83. // If you don't want to have the domain in your mailbox set this to 'NO'.
  84. // Example: /usr/local/virtual/domain.tld/username
  85. $CONF['domain_in_mailbox'] = 'YES';
  86. // Default Domain Values
  87. // Specify your default values below. Quota in MB.
  88. $CONF['aliases'] = '10';
  89. $CONF['mailboxes'] = '10';
  90. $CONF['maxquota'] = '10';
  91. // Quota
  92. // When you want to enforce quota for your mailbox users set this to 'YES'.
  93. $CONF['quota'] = 'NO';
  94. // You can either use '1024000' or '1048576'
  95. $CONF['quota_multiplier'] = '1024000';
  96. // Transport
  97. // If you want to define additional transport options for a domain set this to 'YES'.
  98. // Read the transport file of the Postfix documentation.
  99. $CONF['transport'] = 'NO';
  100. // Transport options
  101. // If you want to define additional transport options put them in array below.
  102. $CONF['transport_options'] = array (
  103. 'virtual', // for virtual accounts
  104. 'local', // for system accounts
  105. 'relay' // for backup mx
  106. );
  107. // Transport default
  108. // You should define default transport. It must be in array above.
  109. $CONF['transport_default'] = 'virtual';
  110. // Virtual Vacation
  111. // If you want to use virtual vacation for you mailbox users set this to 'YES'.
  112. // NOTE: Make sure that you install the vacation module. http://high5.net/postfixadmin/
  113. $CONF['vacation'] = 'NO';
  114. // This is the autoreply domain that you will need to set in your Postfix
  115. // transport maps to handle virtual vacations. It does not need to be a
  116. // real domain (i.e. you don't need to setup DNS for it).
  117. $CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';
  118. // Vacation Control
  119. // If you want users to take control of vacation set this to 'YES'.
  120. // TODO: not implemented
  121. $CONF['vacation_control'] ='YES';
  122. // Vacation Control for admins
  123. // Set to 'YES' if your domain admins should be able to edit user vacation.
  124. $CONF['vacation_control_admin'] = 'YES';
  125. // Alias Control
  126. // Postfix Admin inserts an alias in the alias table for every mailbox it creates.
  127. // The reason for this is that when you want catch-all and normal mailboxes
  128. // to work you need to have the mailbox replicated in the alias table.
  129. // If you want to take control of these aliases as well set this to 'YES'.
  130. $CONF['alias_control'] = 'NO';
  131. // Alias Control for admins
  132. // Set to 'NO' if your domain admins shouldn't be able to edit user aliases.
  133. $CONF['alias_control_admin'] = 'NO';
  134. // Special Alias Control
  135. // Set to 'NO' if your domain admins shouldn't be able to edit default aliases.
  136. $CONF['special_alias_control'] = 'NO';
  137. // Alias Goto Field Limit
  138. // Set the max number of entries that you would like to see
  139. // in one 'goto' field in overview, the rest will be hidden and "[and X more...]" will be added.
  140. // '0' means no limits.
  141. $CONF['alias_goto_limit'] = '0';
  142. // Backup
  143. // If you don't want backup tab set this to 'NO';
  144. $CONF['backup'] = 'YES';
  145. // Send Mail
  146. // If you don't want sendmail tab set this to 'NO';
  147. $CONF['sendmail'] = 'YES';
  148. // Logging
  149. // If you don't want logging set this to 'NO';
  150. $CONF['logging'] = 'YES';
  151. // Header
  152. $CONF['show_header_text'] = 'NO';
  153. $CONF['header_text'] = ':: Postfix Admin ::';
  154. // link to display under 'Main' menu when logged in as a user.
  155. $CONF['user_footer_link'] = "http://change-this-to-your.domain.tld/main";
  156. // Footer
  157. // Below information will be on all pages.
  158. // If you don't want the footer information to appear set this to 'NO'.
  159. $CONF['show_footer_text'] = 'YES';
  160. $CONF['footer_text'] = 'Return to change-this-to-your.domain.tld';
  161. $CONF['footer_link'] = 'http://change-this-to-your.domain.tld';
  162. // Welcome Message
  163. // This message is send to every newly created mailbox.
  164. // Change the text between EOM.
  165. $CONF['welcome_text'] = <<<EOM
  166. Hi,
  167. Welcome to your new account.
  168. EOM;
  169. // When creating mailboxes, check that the domain-part of the
  170. // address is legal by performing a name server look-up.
  171. $CONF['emailcheck_resolve_domain']='YES';
  172. // Optional:
  173. // Script to run after creation of mailboxes.
  174. // Note that this may fail if PHP is run in "safe mode", or if
  175. // operating system features (such as SELinux) or limitations
  176. // prevent the web-server from executing external scripts.
  177. // $CONF['mailbox_postcreation_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postcreation.sh';
  178. // Optional:
  179. // Script to run after deletion of mailboxes.
  180. // Note that this may fail if PHP is run in "safe mode", or if
  181. // operating system features (such as SELinux) or limitations
  182. // prevent the web-server from executing external scripts.
  183. // $CONF['mailbox_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postdeletion.sh';
  184. // Optional:
  185. // Script to run after deletion of domains.
  186. // Note that this may fail if PHP is run in "safe mode", or if
  187. // operating system features (such as SELinux) or limitations
  188. // prevent the web-server from executing external scripts.
  189. // $CONF['domain_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-domain-postdeletion.sh';
  190. // Optional:
  191. // Sub-folders which should automatically be created for new users.
  192. // The sub-folders will also be subscribed to automatically.
  193. // Will only work with IMAP server which implement sub-folders.
  194. // Will not work with POP3.
  195. // If you define create_mailbox_subdirs, then the
  196. // create_mailbox_subdirs_host must also be defined.
  197. //
  198. // $CONF['create_mailbox_subdirs']=array('Spam');
  199. // $CONF['create_mailbox_subdirs_host']='localhost';
  200. //
  201. // Normally, the TCP port number does not have to be specified.
  202. // $CONF['create_mailbox_subdirs_hostport']=143;
  203. //
  204. // If you have trouble connecting to the IMAP-server, then specify
  205. // a value for $CONF['create_mailbox_subdirs_hostoptions']. These
  206. // are some examples to experiment with:
  207. // $CONF['create_mailbox_subdirs_hostoptions']=array('notls');
  208. // $CONF['create_mailbox_subdirs_hostoptions']=array('novalidate-cert','norsh');
  209. // See also the "Optional flags for names" table at
  210. // http://www.php.net/manual/en/function.imap-open.php
  211. //
  212. // END OF CONFIG FILE
  213. //
  214. ?>