Enable sieve and move spam to Junk

master
Pierre Jaury 9 years ago
parent 16f30813c9
commit 6c492e854e

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

@ -17,6 +17,26 @@ mail_gid = mail
mail_privileged_group = mail mail_privileged_group = mail
mail_access_groups = 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 # TLS
############### ###############
@ -80,9 +100,7 @@ service imap-login {
############### ###############
protocol lmtp { protocol lmtp {
} mail_plugins = $mail_plugins sieve
protocol lda {
recipient_delimiter = + recipient_delimiter = +
} }
@ -108,16 +126,13 @@ service dict {
service managesieve-login { service managesieve-login {
inet_listener sieve { inet_listener sieve {
port = 4190 port = 4190
}
inet_listener sieve_deprecated {
port = 2000
} }
} }
plugin { plugin {
sieve = ~/.sieve sieve = ~/.sieve
sieve_dir = ~/sieve sieve_dir = ~/sieve
sieve_before = /var/lib/dovecot/sieve/before.sieve sieve_before = /etc/dovecot/before.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve sieve_default = /etc/dovecot/default.sieve
sieve_after = /var/lib/dovecot/sieve/after.sieve sieve_after = /etc/dovecot/after.sieve
} }

Loading…
Cancel
Save