add sieve junk configuration
This commit is contained in:
parent
4193b863d5
commit
30a38705d8
6 changed files with 17 additions and 19 deletions
|
@ -4,5 +4,5 @@ lda_mailbox_autocreate = yes
|
|||
lda_mailbox_autosubscribe = yes
|
||||
|
||||
protocol lda {
|
||||
mail_plugins = $mail_plugins
|
||||
mail_plugins = $mail_plugins sieve
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
protocol lmtp {
|
||||
mail_plugins = $mail_plugins
|
||||
mail_plugins = $mail_plugins sieve
|
||||
}
|
||||
|
|
|
@ -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/
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
3
rootfs/etc/cont-init.d/02-sieve-rules
Executable file
3
rootfs/etc/cont-init.d/02-sieve-rules
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
s6-setuidgid vmail sievec /var/lib/vmail/sieve-after/spam.sieve
|
Loading…
Add table
Add a link
Reference in a new issue