You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-15 00:05:11 +02:00
Learn from spam automatically, fixes #8
This commit is contained in:
@ -5,15 +5,16 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
|||||||
dovecot \
|
dovecot \
|
||||||
dovecot-sqlite \
|
dovecot-sqlite \
|
||||||
dovecot-pigeonhole-plugin \
|
dovecot-pigeonhole-plugin \
|
||||||
dovecot-antispam-plugin@testing \
|
rspamd-client@testing \
|
||||||
spamassassin \
|
|
||||||
bash \
|
bash \
|
||||||
&& rm -rf /var/cache/apk/* \
|
&& rm -rf /var/cache/apk/*
|
||||||
&& sed -i 's,90:65533,90:12,' /etc/passwd
|
|
||||||
|
|
||||||
COPY dovecot-pigeonhole-plugin-extdata-39-r0.apk /
|
COPY dovecot-pigeonhole-plugin-extdata-39-r0.apk /
|
||||||
RUN apk add --allow-untrusted --force dovecot-pigeonhole-plugin-extdata-39-r0.apk
|
RUN apk add --allow-untrusted --force dovecot-pigeonhole-plugin-extdata-39-r0.apk
|
||||||
|
|
||||||
|
COPY dovecot-antispam-plugin-51-r0.apk /
|
||||||
|
RUN apk add --allow-untrusted --force dovecot-antispam-plugin-51-r0.apk
|
||||||
|
|
||||||
COPY conf /etc/dovecot
|
COPY conf /etc/dovecot
|
||||||
COPY sieve /var/lib/dovecot
|
COPY sieve /var/lib/dovecot
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ service auth {
|
|||||||
|
|
||||||
service auth-worker {
|
service auth-worker {
|
||||||
unix_listener auth-worker {
|
unix_listener auth-worker {
|
||||||
user = mail
|
user = dovecot
|
||||||
group = mail
|
group = mail
|
||||||
mode = 0660
|
mode = 0660
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ service auth-worker {
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
protocol imap {
|
protocol imap {
|
||||||
mail_plugins = $mail_plugins imap_quota
|
mail_plugins = $mail_plugins imap_quota antispam
|
||||||
}
|
}
|
||||||
|
|
||||||
service imap-login {
|
service imap-login {
|
||||||
@ -147,4 +147,12 @@ plugin {
|
|||||||
sieve_default = /var/lib/dovecot/default.sieve
|
sieve_default = /var/lib/dovecot/default.sieve
|
||||||
sieve_after = /var/lib/dovecot/after.sieve
|
sieve_after = /var/lib/dovecot/after.sieve
|
||||||
sieve_extdata_dict_uri = proxy::sieve
|
sieve_extdata_dict_uri = proxy::sieve
|
||||||
|
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
BIN
dovecot/dovecot-antispam-plugin-51-r0.apk
Normal file
BIN
dovecot/dovecot-antispam-plugin-51-r0.apk
Normal file
Binary file not shown.
Reference in New Issue
Block a user