From df601330fa89442a9d3e38ef07907c6ebf06cc51 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 28 Sep 2022 17:14:41 -0700 Subject: [PATCH] notifs / staging: use localhost for email in staging Signed-off-by: Kevin Fenzi --- roles/notifs/backend/templates/fmn.consumer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/notifs/backend/templates/fmn.consumer.py b/roles/notifs/backend/templates/fmn.consumer.py index 289971b3a5..5ea7b36eb0 100644 --- a/roles/notifs/backend/templates/fmn.consumer.py +++ b/roles/notifs/backend/templates/fmn.consumer.py @@ -119,7 +119,11 @@ config = { "fmn.backends": ["email", "irc"], # android is disabled. # Email + {% if env == 'staging' %} + "fmn.email.mailserver": "localhost:25", + {% else %} "fmn.email.mailserver": "bastion01.iad2.fedoraproject.org:25", + {% endif %} "fmn.email.from_address": "notifications@" + domain, # IRC