From 3489e41fdb2c0f1b536b4d15cb93cf908dc8c146 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 14 Nov 2020 15:53:20 +0100 Subject: [PATCH] Add NOREPLY setting --- app/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index ff54a834..3350920a 100644 --- a/app/config.py +++ b/app/config.py @@ -350,5 +350,8 @@ if PGP_SENDER_PRIVATE_KEY_PATH: with open(get_abs_path(PGP_SENDER_PRIVATE_KEY_PATH)) as f: PGP_SENDER_PRIVATE_KEY = f.read() -# the signer address that signes outgoing encrypted emails +# the signer address that signs outgoing encrypted emails PGP_SIGNER = os.environ.get("PGP_SIGNER") + +# emails that have empty From address is sent from this special reverse-alias +NOREPLY = os.environ.get("NOREPLY", f"noreply@{EMAIL_DOMAIN}")