1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Enable sieve and move spam to Junk

This commit is contained in:
Pierre Jaury
2016-02-21 15:07:12 +01:00
parent 16f30813c9
commit 6c492e854e
4 changed files with 29 additions and 9 deletions

View File

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

View File

View File

View File

@@ -17,6 +17,26 @@ mail_gid = mail
mail_privileged_group = mail
mail_access_groups = mail
namespace inbox {
inbox = yes
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
}
###############
# TLS
###############
@@ -80,9 +100,7 @@ service imap-login {
###############
protocol lmtp {
}
protocol lda {
mail_plugins = $mail_plugins sieve
recipient_delimiter = +
}
@@ -108,16 +126,13 @@ service dict {
service managesieve-login {
inet_listener sieve {
port = 4190
}
inet_listener sieve_deprecated {
port = 2000
}
}
plugin {
sieve = ~/.sieve
sieve_dir = ~/sieve
sieve_before = /var/lib/dovecot/sieve/before.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve
sieve_after = /var/lib/dovecot/sieve/after.sieve
sieve_before = /etc/dovecot/before.sieve
sieve_default = /etc/dovecot/default.sieve
sieve_after = /etc/dovecot/after.sieve
}