This commit is contained in:
Renaud Boyer 2020-12-06 22:11:58 +01:00
parent f2f13958c7
commit 5d948faf56
9 changed files with 20 additions and 15 deletions

View file

@ -199,7 +199,9 @@ def mailbox_detail_route(mailbox_id):
def verify_mailbox_change(user, mailbox, new_email):
s = Signer(MAILBOX_SECRET)
mailbox_id_signed = s.sign(str(mailbox.id)).decode()
verification_url = f"{URL}/dashboard/mailbox/confirm_change?mailbox_id={mailbox_id_signed}"
verification_url = (
f"{URL}/dashboard/mailbox/confirm_change?mailbox_id={mailbox_id_signed}"
)
send_email(
new_email,

View file

@ -418,7 +418,9 @@ def sanity_check():
def check_custom_domain():
LOG.d("Check verified domain for DNS issues")
for custom_domain in CustomDomain.query.filter_by(verified=True): # type: CustomDomain
for custom_domain in CustomDomain.query.filter_by(
verified=True
): # type: CustomDomain
mx_domains = get_mx_domains(custom_domain.domain)
if sorted(mx_domains) != sorted(EMAIL_SERVERS_WITH_PRIORITY):

View file

@ -1,4 +1,5 @@
import os
# flake8: noqa: E402
os.environ["CONFIG"] = os.path.abspath(