Run doveadm command as vmail user.

see #2084
This commit is contained in:
Antoine Nguyen
2021-02-11 17:16:21 +01:00
parent 0cd52d0f04
commit 1827bce52d
5 changed files with 17 additions and 29 deletions
+6 -3
View File
@@ -49,9 +49,7 @@ class GeneralParametersForm(param_forms.AdminParametersForm):
password_scheme = forms.ChoiceField(
label=ugettext_lazy("Default password scheme"),
choices=[(hasher.name, ugettext_lazy(hasher.label))
for hasher in PasswordHasher.get_password_hashers()
if hasher().scheme in get_dovecot_schemes()],
choices=[],
initial="sha512crypt",
help_text=ugettext_lazy("Scheme used to crypt mailbox passwords"),
)
@@ -528,6 +526,11 @@ class GeneralParametersForm(param_forms.AdminParametersForm):
self._add_visibilty_rules(
sms_backends.get_all_backend_visibility_rules()
)
self.fields["password_scheme"].choices = [
(hasher.name, ugettext_lazy(hasher.label))
for hasher in PasswordHasher.get_password_hashers()
if hasher().scheme in get_dovecot_schemes()
]
def _add_dynamic_fields(self):
new_fields = OrderedDict()
@@ -197,6 +197,8 @@ REST_FRAMEWORK = {
# DOVECOT_LOOKUP_PATH = ('/path/to/dovecot', )
# DOVECOT_USER = 'vmail'
MODOBOA_API_URL = 'https://api.modoboa.org/1/'
DISABLE_DASHBOARD_EXTERNAL_QUERIES = False