You've already forked Mailu
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:
5
config/dovecot/after.sieve
Normal file
5
config/dovecot/after.sieve
Normal file
@@ -0,0 +1,5 @@
|
||||
require ["fileinto", "envelope", "mailbox"];
|
||||
|
||||
if header :contains "X-Spam-Flag" "YES" {
|
||||
fileinto :create "Junk";
|
||||
}
|
0
config/dovecot/before.sieve
Normal file
0
config/dovecot/before.sieve
Normal file
0
config/dovecot/default.sieve
Normal file
0
config/dovecot/default.sieve
Normal 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user