From 52e6f5e2d2c418d3ec01123a4f266862dae74b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Fri, 21 Apr 2023 21:07:58 +0200 Subject: [PATCH] Fix: Allow contacts created with a domain to be delivered even if the domain cannot be used any more for contact creation (#1704) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adrià Casajús --- email_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_handler.py b/email_handler.py index 93f3f0e4..470d4d25 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1024,7 +1024,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str): # reply_email must end with EMAIL_DOMAIN or a domain that can be used as reverse alias domain if not reply_email.endswith(EMAIL_DOMAIN): sl_domain: SLDomain = SLDomain.get_by(domain=reply_domain) - if sl_domain is None or not sl_domain.use_as_reverse_alias: + if sl_domain is None: LOG.w(f"Reply email {reply_email} has wrong domain") return False, status.E501