Zhang Huangbin avatar Zhang Huangbin committed e136d9f

Fix missed variables in libs/settings.py.

Comments (0)

Files changed (1)

 # - without timestamp: domain.ltd/username/
 MAILDIR_APPEND_TIMESTAMP = True
 
+
 #######################################
 # OpenLDAP backend related settings.
 #
 # MySQL backend related settings. Note: Not applicable for DBMail.
 #
 
-# Default password scheme: MD5, PLAIN.
+# Default password scheme: MD5, PLAIN-MD5, PLAIN.
 #
 # Passwords of new accounts (admin, user) will be crypted by specified scheme.
 # - MD5: MD5 based salted password hash. e.g. '$1$ozdpg0V0$0fb643pVsPtHVPX8mCZYW/'.
+# - PLAIN-MD5: MD5 based password without salt. e.g. 900150983cd24fb0d6963f7d28e17f72.
 # - PLAIN: Plain text.
 #
 # Reference:
 DBMAIL_SQL_FOR_NEWLY_CREATED_USER = []
 
 ###################################
+# Policyd related settings.
+#
+
+# Priority of Policyd policies, includes throttling, greylist opt-in, etc.
+POLICY_PRIORITY_OF_DOMAIN = 10
+POLICY_PRIORITY_OF_USER = 20
+
+# If you turn off greylisting in Policyd config file (policyd.conf), please
+# turn below setting to False.
+POLICY_GREYLISTED_BY_DEFAULT = True
+
+###################################
 # Minor settings. You do not need to change them.
 #
 # List how many items in one page. e.g. domain list, user list.
 PAGE_SIZE_LIMIT = 50
 LOG_PAGE_SIZE_LIMIT = 100
 
-# Priority of different policyd throttling.
-PRIORITY_OF_USER_THROTTLING = 10
-PRIORITY_OF_DOMAIN_THROTTLING = 20
-PRIORITY_OF_OVERRIDE_THROTTLING = 30
-
 # Import local settings.
 try:
     from libs.settings_local import *
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.