add sieve junk configuration

This commit is contained in:
Sebastian Hugentobler 2021-12-22 14:03:37 +01:00
parent 4193b863d5
commit 30a38705d8
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
6 changed files with 17 additions and 19 deletions

View file

@ -4,5 +4,5 @@ lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
protocol lda {
mail_plugins = $mail_plugins
mail_plugins = $mail_plugins sieve
}

View file

@ -1,3 +1,3 @@
protocol lmtp {
mail_plugins = $mail_plugins
mail_plugins = $mail_plugins sieve
}

View file

@ -1,8 +1,3 @@
#protocol sieve {
# disable_plaintext_auth = no
#}
#plugin {
# sieve = bindir=~/.sieve-bin/
# sieve_after = /var/lib/vmail/sieve-after/
#}
plugin {
sieve_after = /var/lib/vmail/sieve-after/
}

View file

@ -1,6 +1,6 @@
require ["fileinto","mailbox"];
if header :contains "X-Spam-Flag" "YES" {
fileinto :create "Junk";
require ["fileinto"];
if header :contains "X-Spam" "Yes" {
fileinto "Junk";
stop;
}

View file

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv sh
s6-setuidgid vmail sievec /var/lib/vmail/sieve-after/spam.sieve