try fixing antispam learning
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bf8230f935
commit
82a3237b0a
@ -9,11 +9,8 @@ plugin {
|
|||||||
# verbose as syslog debugging due to internal limitations.
|
# verbose as syslog debugging due to internal limitations.
|
||||||
#
|
#
|
||||||
# antispam_debug_target = syslog
|
# antispam_debug_target = syslog
|
||||||
# antispam_debug_target = stderr
|
|
||||||
# antispam_verbose_debug = 1
|
|
||||||
antispam_debug_target = stderr
|
antispam_debug_target = stderr
|
||||||
# FIXME disable debug
|
# antispam_verbose_debug = 1
|
||||||
antispam_verbose_debug = 1
|
|
||||||
|
|
||||||
# backend selection, MUST be configured first,
|
# backend selection, MUST be configured first,
|
||||||
# there's no default so you need to set one of
|
# there's no default so you need to set one of
|
||||||
@ -142,13 +139,12 @@ antispam_spam = Junk;junk;Junk Mail;Spam;spam;SPAM
|
|||||||
antispam_pipe_tmpdir = /tmp
|
antispam_pipe_tmpdir = /tmp
|
||||||
|
|
||||||
# spam/not-spam argument (default unset which will is not what you want)
|
# spam/not-spam argument (default unset which will is not what you want)
|
||||||
antispam_pipe_program_spam_arg = -s
|
antispam_pipe_program_spam_arg = spam
|
||||||
antispam_pipe_program_notspam_arg = -n
|
antispam_pipe_program_notspam_arg = ham
|
||||||
|
|
||||||
# binary to pipe mail to
|
# binary to pipe mail to
|
||||||
antispam_pipe_program = /usr/bin/bogofilter
|
antispam_pipe_program = /usr/local/bin/mailtrain
|
||||||
#antispam_pipe_program_args = -f;%u@example.com # % expansion done by dovecot
|
#antispam_pipe_program_args = -f;%u@example.com # % expansion done by dovecot
|
||||||
antispam_pipe_program_args = -l
|
|
||||||
|
|
||||||
#===================
|
#===================
|
||||||
# crm114 plugin
|
# crm114 plugin
|
||||||
|
@ -47,7 +47,7 @@ RUN groupadd -g 5000 vmail && useradd -g vmail -u 5000 vmail -d /vmail \
|
|||||||
dovecot-submissiond \
|
dovecot-submissiond \
|
||||||
dovecot-managesieved \
|
dovecot-managesieved \
|
||||||
dovecot-antispam \
|
dovecot-antispam \
|
||||||
bogofilter \
|
bogofilter-sqlite \
|
||||||
ssl-cert \
|
ssl-cert \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
@ -69,9 +69,11 @@ ADD junk-filter.sieve /etc/dovecot/sieve/before/
|
|||||||
|
|
||||||
ADD confd /etc/confd/
|
ADD confd /etc/confd/
|
||||||
|
|
||||||
|
ADD mailtrain /usr/local/bin/
|
||||||
|
|
||||||
RUN sievec /etc/dovecot/sieve/before
|
RUN sievec /etc/dovecot/sieve/before
|
||||||
|
|
||||||
VOLUME /etc/dovecot /ssl /vmail
|
VOLUME /ssl /vmail
|
||||||
|
|
||||||
EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp
|
EXPOSE 110/tcp 143/tcp 587/tcp 993/tcp 995/tcp 2000/tcp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user