diff --git a/mail/mail/doctype/mail_settings/mail_settings.py b/mail/mail/doctype/mail_settings/mail_settings.py index e2e0ddb2..4317591e 100644 --- a/mail/mail/doctype/mail_settings/mail_settings.py +++ b/mail/mail/doctype/mail_settings/mail_settings.py @@ -74,6 +74,7 @@ def create_dmarc_dns_record_for_external_domains() -> None: from mail.mail.doctype.dns_record.dns_record import create_or_update_dns_record + frappe.flags.enqueue_dns_record_update = True create_or_update_dns_record( host="*._report._dmarc", type="TXT",