From c35c94e1f505985a28e330f3613b05957f06827e Mon Sep 17 00:00:00 2001 From: George Dimakopoulos Date: Sat, 4 May 2019 14:30:19 +0300 Subject: [PATCH] Correction app_local.php --- config/app_local.php | 43 +++++++++++++++++++++++++++++++++++++++++++ config/bootstrap.php | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 config/app_local.php diff --git a/config/app_local.php b/config/app_local.php new file mode 100644 index 0000000..5a20fc0 --- /dev/null +++ b/config/app_local.php @@ -0,0 +1,43 @@ + [ + 'secret' => 'CHANGE ME', + 'key' => 'CHANGE ME' + ], + + '_Constants' => [ + /** + * Dovecot password encryption method + * Available methods: + * 'MD5' + * 'SHA256-CRYPT' + * 'SHA512-CRYPT' + * 'MD5-CRYPT' + * List available dovecot crypt methods: doveadm pw -l + * Ref.: http://wiki.dovecot.org/Authentication/PasswordSchemes + * + */ + 'encrypt' => 'SHA512-CRYPT', + 'quota_multiplier' => '1048576', // Constant to convert Bytes to MB and vice versa. Either use '1024000' or '1048576' + 'password_length' => '5', + 'strong_password' => true, // at least two letters, at least two numbers, at least one special character (Validation rules: MailboxTable.php) + 'aliases' => '10', + 'mailboxes' => '10', + 'maxquota' => '10', + 'unlimited' => '10485760', // 10TB - define unlimited in MB (eg. total storage capacity) + 'domain_quota_default' => '2000', + 'transport_options' => ['virtual' => 'virtual', 'local' => 'local', 'relay' => 'relay'], + 'transport_default' => 'virtual', + /** + * If you don't want to have the domain in your mailbox set this to 'false'. + * Examples: + * true: /usr/local/virtual/domain.tld/username@domain.tld + * false: /usr/local/virtual/domain.tld/username + * + * For custom function + * change '_create_maildir()' in MailboxTable.php + * + */ + 'domain_in_mailbox' => false, + ], +]; diff --git a/config/bootstrap.php b/config/bootstrap.php index baf03c6..9a9a2e6 100755 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -72,7 +72,7 @@ try { // Load an environment local configuration file. // You can use a file like app_local.php to provide local overrides to your // shared configuration. -//Configure::load('app_local', 'default'); +Configure::load('app_local', 'default'); // When debug = false the metadata cache should last // for a very very long time, as we don't want