diff --git a/rootfs/etc/confd/templates/main.cf.tmpl b/rootfs/etc/confd/templates/main.cf.tmpl index 291a1b1..a5f670f 100644 --- a/rootfs/etc/confd/templates/main.cf.tmpl +++ b/rootfs/etc/confd/templates/main.cf.tmpl @@ -48,7 +48,7 @@ smtpd_sasl_auth_enable = yes smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination smtpd_milters = - inet:{{getenv "SPAMASSASSINHOST"}}:{{getenv "SPAMASSASSINPORT"}} + unix:/var/run/spamass.sock non_smtpd_milters = $smtpd_milters milter_default_action = accept milter_macro_daemon_name = ORIGINATING diff --git a/rootfs/etc/services.d/spamass-milter/run b/rootfs/etc/services.d/spamass-milter/run new file mode 100644 index 0000000..4658ed5 --- /dev/null +++ b/rootfs/etc/services.d/spamass-milter/run @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv sh + +spamass-milter -p /var/run/spamass.sock -- -d spamassassin