From dc66cf76e2b750a977600a36011cd63c9487fbe0 Mon Sep 17 00:00:00 2001 From: Son NK Date: Thu, 12 Dec 2019 17:27:06 +0100 Subject: [PATCH] allow overriding postfix server --- app/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 76776756..bd5c1b65 100644 --- a/app/config.py +++ b/app/config.py @@ -43,7 +43,8 @@ EMAIL_DOMAIN = os.environ["EMAIL_DOMAIN"] SUPPORT_EMAIL = os.environ["SUPPORT_EMAIL"] ADMIN_EMAIL = os.environ["ADMIN_EMAIL"] MAX_NB_EMAIL_FREE_PLAN = int(os.environ["MAX_NB_EMAIL_FREE_PLAN"]) -POSTFIX_SERVER = "1.1.1.1" +# allow to override postfix server locally +POSTFIX_SERVER = os.environ.get("POSTFIX_SERVER", "1.1.1.1") # list of (priority, email server) EMAIL_SERVERS_WITH_PRIORITY = eval(