ansible-role-mailserver/templates/dovecot/conf.d/90-sieve.conf

18 lines
583 B
Plaintext

plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
sieve_before = /srv/mail/sieve/spam.sieve
sieve_global_extensions = +vnd.dovecot.pipe
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_pipe_bin_dir = /usr/bin
{% if mailserver_rspamd_enabled %}
imapsieve_mailbox1_name = Junk
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/srv/mail/sieve/learn-spam.sieve
imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Junk
imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_before = file:/srv/mail/sieve/learn-ham.sieve
{% endif %}
}