mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-28 11:35:05 +01:00
@@ -55,7 +55,7 @@ class AdminParametersForm(parameters.AdminParametersForm):
|
||||
|
||||
enable_mx_checks = YesNoField(
|
||||
label=ugettext_lazy("Enable MX checks"),
|
||||
initial="yes",
|
||||
initial=True,
|
||||
help_text=ugettext_lazy(
|
||||
"Check that every domain has a valid MX record"
|
||||
)
|
||||
@@ -75,7 +75,7 @@ class AdminParametersForm(parameters.AdminParametersForm):
|
||||
|
||||
enable_dnsbl_checks = YesNoField(
|
||||
label=ugettext_lazy("Enable DNSBL checks"),
|
||||
initial="yes",
|
||||
initial=True,
|
||||
help_text=ugettext_lazy(
|
||||
"Check every domain against major DNSBL providers"
|
||||
)
|
||||
@@ -85,7 +85,7 @@ class AdminParametersForm(parameters.AdminParametersForm):
|
||||
|
||||
handle_mailboxes = YesNoField(
|
||||
label=ugettext_lazy("Handle mailboxes on filesystem"),
|
||||
initial="no",
|
||||
initial=False,
|
||||
help_text=ugettext_lazy(
|
||||
"Rename or remove mailboxes on the filesystem when they get"
|
||||
" renamed or removed within Modoboa"
|
||||
@@ -111,14 +111,14 @@ class AdminParametersForm(parameters.AdminParametersForm):
|
||||
|
||||
auto_account_removal = YesNoField(
|
||||
label=ugettext_lazy("Automatic account removal"),
|
||||
initial="no",
|
||||
initial=False,
|
||||
help_text=ugettext_lazy(
|
||||
"When a mailbox is removed, also remove the associated account")
|
||||
)
|
||||
|
||||
auto_create_domain_and_mailbox = YesNoField(
|
||||
label=ugettext_lazy("Automatic domain/mailbox creation"),
|
||||
initial="yes",
|
||||
initial=True,
|
||||
help_text=ugettext_lazy(
|
||||
"Create a domain and a mailbox when an account is automatically "
|
||||
"created."
|
||||
@@ -127,8 +127,8 @@ class AdminParametersForm(parameters.AdminParametersForm):
|
||||
|
||||
# Visibility rules
|
||||
visibility_rules = {
|
||||
"valid_mxs": "enable_mx_checks=yes",
|
||||
"mailboxes_owner": "handle_mailboxes=yes",
|
||||
"valid_mxs": "enable_mx_checks=True",
|
||||
"mailboxes_owner": "handle_mailboxes=True",
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user