BREAKING CHANGE: deprecate RSPAMD env var
This commit is contained in:
parent
0fd0052e33
commit
2876aba6e2
1 changed files with 6 additions and 7 deletions
|
@ -2,18 +2,17 @@
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
if test -z "${RSPAMD}" ; then
|
|
||||||
echo "Missing rspamd hostname" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Reconfigure postfix according to environment
|
# Reconfigure postfix according to environment
|
||||||
postconf -e myhostname="${DOMAIN}"
|
postconf -e myhostname="${DOMAIN}"
|
||||||
postconf -e mydomain="${SUTTY}"
|
postconf -e mydomain="${SUTTY}"
|
||||||
postconf -e smtpd_tls_key_file="/etc/letsencrypt/live/${DOMAIN}/privkey.pem"
|
postconf -e smtpd_tls_key_file="/etc/letsencrypt/live/${DOMAIN}/privkey.pem"
|
||||||
postconf -e smtpd_tls_cert_file="/etc/letsencrypt/live/${DOMAIN}/fullchain.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 smtpd_milters="${MILTERS}"
|
||||||
postconf -e non_smtpd_milters="${MILTERS}"
|
postconf -e non_smtpd_milters="${MILTERS}"
|
||||||
|
fi
|
||||||
|
|
||||||
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"
|
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue