add spamass-milter

This commit is contained in:
Sebastian Hugentobler 2016-07-11 13:21:44 +02:00
parent cbb570c8b9
commit 45944ade39
3 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,9 @@ RUN ./configure && make && make install
RUN rm -rf /tmp/spamass-milter RUN rm -rf /tmp/spamass-milter
WORKDIR / WORKDIR /
RUN mkdir /var/run/spamass-milter
RUN chown postfix:postfix /var/run/spamass-milter
RUN chown root /var/spool/postfix/ RUN chown root /var/spool/postfix/
RUN chown root /var/spool/postfix/pid RUN chown root /var/spool/postfix/pid

View File

@ -48,7 +48,7 @@ smtpd_sasl_auth_enable = yes
smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination
smtpd_milters = smtpd_milters =
unix:/var/run/spamass.sock unix:/var/run/spamass-milter/spamass.sock
non_smtpd_milters = $smtpd_milters non_smtpd_milters = $smtpd_milters
milter_default_action = accept milter_default_action = accept
milter_macro_daemon_name = ORIGINATING milter_macro_daemon_name = ORIGINATING

View File

@ -1,3 +1,3 @@
#!/usr/bin/with-contenv sh #!/usr/bin/with-contenv sh
spamass-milter -p /var/run/spamass.sock -- -d spamassassin s6-setuidgid postfix spamass-milter -p /var/run/spamass-milter/spamass.sock -- -d spamassassin