From cbb570c8b91739da0b6e6fcefc871cc1015b3ace Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 11 Jul 2016 13:11:16 +0200 Subject: [PATCH] add spamass-milter --- rootfs/etc/confd/templates/main.cf.tmpl | 2 +- rootfs/etc/services.d/spamass-milter/run | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 rootfs/etc/services.d/spamass-milter/run 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