浏览代码

Add new param SENDER, SENDER_DIR

Son NK 5 年之前
父节点
当前提交
9abfa3e98c
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 6 0
      app/config.py
  2. 5 0
      example.env

+ 6 - 0
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

+ 5 - 0
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