split hostname from domain
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-03-29 15:29:47 -03:00
parent 7cabde4abd
commit a5a37fd89b

View file

@ -8,10 +8,10 @@ case $1 in
fi
# Reconfigure postfix according to environment
postconf -e myhostname="${SUTTY}"
postconf -e myhostname="${DOMAIN}"
postconf -e mydomain="${SUTTY}"
postconf -e smtpd_tls_key_file="/etc/letsencrypt/live/${SUTTY}/privkey.pem"
postconf -e smtpd_tls_cert_file="/etc/letsencrypt/live/${SUTTY}/fullchain.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_milters="inet:${RSPAMD}:11332,inet:opendkim:8891"
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"