From de3207ac4bf24b9321b29f82eb7cd99c39603834 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Fri, 17 Sep 2021 18:05:18 +0200 Subject: [PATCH] Add ALIAS_AUTOMATIC_DISABLE --- app/config.py | 3 +++ example.env | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 54b36a97..2553e3f0 100644 --- a/app/config.py +++ b/app/config.py @@ -400,3 +400,6 @@ POSTMASTER = os.environ.get("POSTMASTER") # store temporary files, especially for debugging TEMP_DIR = os.environ.get("TEMP_DIR") + +# enable the alias automation disable: an alias can be automatically disabled if it has too many bounces +ALIAS_AUTOMATIC_DISABLE = "ALIAS_AUTOMATIC_DISABLE" in os.environ diff --git a/example.env b/example.env index 12279ed1..119490b3 100644 --- a/example.env +++ b/example.env @@ -175,4 +175,6 @@ DISABLE_ONBOARDING=true # POSTMASTER = postmaster@example.com -# TEMP_DIR = /tmp \ No newline at end of file +# TEMP_DIR = /tmp + +#ALIAS_AUTOMATIC_DISABLE=true \ No newline at end of file