diff --git a/Dockerfile b/Dockerfile index 2a342d7..4678c2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,6 @@ RUN postconf -e alias_maps='hash:/etc/postfix/aliases' \ && postconf -e append_dot_mydomain=yes \ && postconf -e masquerade_domains='$mydomain' \ && postconf -e non_smtpd_milters=inet:opendkim:8891 \ - && postconf -e smtpd_milters='inet:rspamd:11332,inet:opendkim:8891' \ && postconf -e milter_default_action=accept \ && postconf -e milter_protocol=6 \ && postconf -e virtual_alias_maps=hash:/etc/postfix/maps/virtual \ diff --git a/postfix.sh b/postfix.sh index fe8d2c9..e3f20f5 100644 --- a/postfix.sh +++ b/postfix.sh @@ -5,5 +5,6 @@ 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.${DELEGATE}:11332,inet:opendkim:8891" exec /usr/sbin/postfix start