From bbeeab9613c9e3413fe54e06de21a6cf26542126 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 29 Mar 2022 11:46:41 -0300 Subject: [PATCH] complain when rspamd is missing --- postfixd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postfixd.sh b/postfixd.sh index 4fd0e2a..8f4c93c 100755 --- a/postfixd.sh +++ b/postfixd.sh @@ -2,6 +2,11 @@ case $1 in start) + if test -z "${RSPAMD}" ; then + echo "Missing rspamd hostname" >&2 + exit 1 + fi + # Reconfigure postfix according to environment postconf -e myhostname="${SUTTY}" postconf -e mydomain="${SUTTY}"