17 lines
442 B
Bash
17 lines
442 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
case $1 in
|
||
|
start)
|
||
|
# Reconfigure postfix according to environment
|
||
|
postconf -e myhostname="${SUTTY}"
|
||
|
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_milters="inet:${RSPAMD}:11332,inet:opendkim:8891"
|
||
|
|
||
|
;;
|
||
|
stop) ;;
|
||
|
esac
|
||
|
|
||
|
exec /usr/sbin/postfix $1
|