diff --git a/dovecot/Dockerfile b/dovecot/Dockerfile index 5aceef69..1968074e 100644 --- a/dovecot/Dockerfile +++ b/dovecot/Dockerfile @@ -2,17 +2,11 @@ FROM alpine:edge RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && apk add --update \ - dovecot \ - dovecot-sqlite \ - dovecot-pigeonhole-plugin \ - dovecot-antispam-plugin@testing \ + dovecot dovecot-sqlite dovecot-pigeonhole-plugin dovecot-pigeonhole-plugin-extdata \ rspamd-client@testing \ bash \ && rm -rf /var/cache/apk/* -COPY dovecot-pigeonhole-plugin-extdata-39-r0.apk / -RUN apk add --allow-untrusted --force dovecot-pigeonhole-plugin-extdata-39-r0.apk - COPY conf /etc/dovecot COPY sieve /var/lib/dovecot diff --git a/dovecot/conf/dovecot.conf b/dovecot/conf/dovecot.conf index 9d8b5e16..7b542524 100644 --- a/dovecot/conf/dovecot.conf +++ b/dovecot/conf/dovecot.conf @@ -104,7 +104,7 @@ service auth-worker { ############### protocol imap { - mail_plugins = $mail_plugins imap_quota antispam + mail_plugins = $mail_plugins imap_quota imap_sieve } protocol pop3 { @@ -155,13 +155,16 @@ service managesieve { plugin { sieve = file:~/sieve;active=~/.dovecot.sieve - sieve_plugins = sieve_extdata - sieve_global_extensions = +vnd.dovecot.extdata +spamtest +spamtestplus + sieve_plugins = sieve_extdata sieve_imapsieve sieve_extprograms + sieve_global_extensions = +vnd.dovecot.extdata +spamtest +spamtestplus +vnd.dovecot.execute sieve_before = /var/lib/dovecot/before.sieve sieve_default = /var/lib/dovecot/default.sieve sieve_after = /var/lib/dovecot/after.sieve sieve_extdata_dict_uri = proxy::sieve + # Sieve execute + sieve_execute_bin_dir = /var/lib/dovecot/bin + # Send vacation replies even for aliases # See the Pigeonhole documentation about warnings: http://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Vacation # It appears that our implemntation of mail delivery meets criteria of section 4.5 @@ -171,19 +174,20 @@ plugin { # Include the recipient in vacation replies so that DKIM applies sieve_vacation_send_from_recipient = yes - antispam_backend = mailtrain - antispam_spam = Junk - antispam_trash = Trash - antispam_mail_sendmail = /usr/bin/rspamc - antispam_mail_spam = learn_spam - antispam_mail_notspam = learn_ham - antispam_mail_sendmail_args = -h;antispam:11334;-P;q1 - # extract spam score from # X-Spam-Result: .... [ /