BREAKING CHANGE: deprecate RSPAMD env var

This commit is contained in:
f 2023-01-07 18:26:01 -03:00
parent 0fd0052e33
commit 2876aba6e2

View file

@ -2,18 +2,17 @@
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="${DOMAIN}"
postconf -e mydomain="${SUTTY}"
postconf -e smtpd_tls_key_file="/etc/letsencrypt/live/${DOMAIN}/privkey.pem"
postconf -e smtpd_tls_cert_file="/etc/letsencrypt/live/${DOMAIN}/fullchain.pem"
if test -n "${MILTERS}"; then
postconf -e smtpd_milters="${MILTERS}"
postconf -e non_smtpd_milters="${MILTERS}"
fi
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"
;;