config.inc.php.example 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /* DO NOT EDIT THIS FILE!
  3. Instead, copy this config file to config.inc.php and make your changes
  4. in the copied version. This is just a template!
  5. */
  6. /*
  7. * MySQL server and database settings
  8. */
  9. define("MYSQL_HOST", "localhost");
  10. define("MYSQL_USER", "vmail");
  11. define("MYSQL_PASSWORD", "vmail");
  12. define("MYSQL_DATABASE", "vmail");
  13. /*
  14. * Database table names
  15. */
  16. // Table names
  17. define("DBT_USERS", "users");
  18. define("DBT_DOMAINS", "domains");
  19. define("DBT_ALIASES", "aliases");
  20. // Users table columns
  21. define("DBC_USERS_ID", "id");
  22. define("DBC_USERS_USERNAME", "username");
  23. define("DBC_USERS_DOMAIN", "domain");
  24. define("DBC_USERS_PASSWORD", "password");
  25. // define("DBC_USERS_MAILBOXLIMIT", "mailbox_limit"); // (Optional)
  26. // Domains table columns
  27. define("DBC_DOMAINS_ID", "id");
  28. define("DBC_DOMAINS_DOMAIN", "domain");
  29. // Aliases table columns
  30. define("DBC_ALIASES_ID", "id");
  31. define("DBC_ALIASES_SOURCE", "source");
  32. define("DBC_ALIASES_DESTINATION", "destination");
  33. // Enable multi source redirects, needs a new column in aliase table with VARCHAR(32)
  34. //define("DBC_ALIASES_MULTI_SOURCE", "multi_source"); // (Optional, Recommended)
  35. /*
  36. * General options
  37. */
  38. // Enable validating that the source addresses are ending with domain from domains
  39. //define("VALIDATE_ALIASES_SOURCE_DOMAIN_ENABLED", true); // (Optional, Recommended)
  40. /*
  41. * Frontend paths
  42. */
  43. define("FRONTEND_BASE_PATH", "http://localhost/webmum/");
  44. /*
  45. * Admin e-mail address
  46. */
  47. // outdated: define("ADMIN_EMAIL", "admin@domain.tld");
  48. // new: $admins = array("admin1@server.tld", "admin2@server.tld");
  49. $admins = array("admin@domain.tld");
  50. /**
  51. * Limited admin domain access
  52. *
  53. * Unlisted admins have access to every domain, the admin is limited to listed domains only!
  54. * Unlisted domains aren't accessible by that admin.
  55. *
  56. * Note that listed admins also cannot create new domains!
  57. */
  58. //define("ADMIN_DOMAIN_LIMITS_ENABLED", true); // (Optional)
  59. $adminDomainLimits = array(
  60. // Example:
  61. // "low_rank_admin@domain.tld" => array("his-domain.tld", "shared-domain.tld"),
  62. );
  63. /*
  64. * Password
  65. */
  66. /*
  67. * Select on of the following schemas (only these are supported)
  68. * SHA-512, SHA-256, BLOWFISH
  69. */
  70. define("PASS_HASH_SCHEMA", "SHA-512");
  71. //minimum password length
  72. define("MIN_PASS_LENGTH", 8);
  73. /*
  74. * Write log file? Failed login attempts will be written to the logfile.
  75. * You can mointor the logfile with fail2ban and ban attackers' IP-addresses.
  76. * Make sure that PHP has permission to create the log directory and webmum.log (write permissions for php user)
  77. *
  78. * Default: Do not write logfile
  79. */
  80. // define("WRITE_LOG", true);
  81. // define("WRITE_LOG_PATH","/var/www/webmum/log/");
  82. /*
  83. * Frontend options
  84. */
  85. // Separator for email lists
  86. define("FRONTEND_EMAIL_SEPARATOR_TEXT", ', '); // possible values: ', ' (default), '; ', PHP_EOL (newline)
  87. define("FRONTEND_EMAIL_SEPARATOR_FORM", ','); // possible values: ',' (default), ';', PHP_EOL (newline)
  88. ?>