mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
fix
This commit is contained in:
parent
f049da8c9a
commit
cd553608a5
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ def domain_detail_dns(custom_domain_id):
|
||||||
elif request.form.get("form-name") == "check-mx":
|
elif request.form.get("form-name") == "check-mx":
|
||||||
mx_domains = get_mx_domains(custom_domain.domain)
|
mx_domains = get_mx_domains(custom_domain.domain)
|
||||||
|
|
||||||
if is_mx_equivalent(mx_domains, EMAIL_SERVERS_WITH_PRIORITY):
|
if not is_mx_equivalent(mx_domains, EMAIL_SERVERS_WITH_PRIORITY):
|
||||||
flash("The MX record is not correctly set", "warning")
|
flash("The MX record is not correctly set", "warning")
|
||||||
|
|
||||||
mx_ok = False
|
mx_ok = False
|
||||||
|
|
2
cron.py
2
cron.py
|
@ -695,7 +695,7 @@ def check_custom_domain():
|
||||||
for custom_domain in CustomDomain.filter_by(verified=True): # type: CustomDomain
|
for custom_domain in CustomDomain.filter_by(verified=True): # type: CustomDomain
|
||||||
mx_domains = get_mx_domains(custom_domain.domain)
|
mx_domains = get_mx_domains(custom_domain.domain)
|
||||||
|
|
||||||
if is_mx_equivalent(mx_domains, EMAIL_SERVERS_WITH_PRIORITY):
|
if not is_mx_equivalent(mx_domains, EMAIL_SERVERS_WITH_PRIORITY):
|
||||||
user = custom_domain.user
|
user = custom_domain.user
|
||||||
LOG.w(
|
LOG.w(
|
||||||
"The MX record is not correctly set for %s %s %s",
|
"The MX record is not correctly set for %s %s %s",
|
||||||
|
|
Loading…
Reference in a new issue