split hostname from domain
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
f 2022-03-29 15:29:47 -03:00
parent 7cabde4abd
commit a5a37fd89b
1 changed files with 3 additions and 3 deletions

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}"