From 9abfa3e98cd93c7e61685a53b7324610fba5940c Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Wed, 10 Jun 2020 13:54:42 +0200 Subject: [PATCH] Add new param SENDER, SENDER_DIR --- app/config.py | 6 ++++++ example.env | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/app/config.py b/app/config.py index 048dbca2..7177dbce 100644 --- a/app/config.py +++ b/app/config.py @@ -62,6 +62,12 @@ except Exception: # maximum number of directory a premium user can create MAX_NB_DIRECTORY = 50 +# transactional email sender +SENDER = os.environ.get("SENDER") + +# the directory to store bounce emails +SENDER_DIR = os.environ.get("SENDER_DIR") + ENFORCE_SPF = "ENFORCE_SPF" in os.environ # allow to override postfix server locally diff --git a/example.env b/example.env index 53d38731..ca5c4c19 100644 --- a/example.env +++ b/example.env @@ -33,6 +33,11 @@ ALIAS_DOMAINS=["domain1.com", "domain2.com"] # transactional email is sent from this email address SUPPORT_EMAIL=support@sl.local SUPPORT_NAME=Son from SimpleLogin +# in case sender is different than SUPPORT_EMAIL +SENDER=sender@sl.local + +# all emails sent to sender are stored in this folder +SENDER_DIR=/tmp # to receive general stats. # ADMIN_EMAIL=admin@sl.local