From 398c1a55f140753a0caa7c18fd43693ebcda0d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Thu, 17 Feb 2022 13:18:52 +0100 Subject: [PATCH] Change SUPPORT_EMAIL to NOREPLY --- app/email_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/email_utils.py b/app/email_utils.py index eb6117ad..4a994ae1 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -54,6 +54,7 @@ from app.config import ( TEMP_DIR, ALIAS_AUTOMATIC_DISABLE, RSPAMD_SIGN_DKIM, + NOREPLY, ) from app.db import Session from app.dns_utils import get_mx_domains @@ -296,7 +297,7 @@ def send_email( msg[headers.CONTENT_TYPE] = "text/plain" msg[headers.SUBJECT] = subject - msg[headers.FROM] = f"{SUPPORT_NAME} <{SUPPORT_EMAIL}>" + msg[headers.FROM] = f"{SUPPORT_NAME} <{NOREPLY}>" msg[headers.TO] = to_email msg_id_header = make_msgid() @@ -313,7 +314,7 @@ def send_email( ) # add DKIM - email_domain = SUPPORT_EMAIL[SUPPORT_EMAIL.find("@") + 1 :] + email_domain = NOREPLY[NOREPLY.find("@") + 1 :] add_dkim_signature(msg, email_domain) transaction = TransactionalEmail.create(email=to_email, commit=True)