aboutsummaryrefslogtreecommitdiff
path: root/roles/dovecot/files/default.sieve
blob: 67099880b5b49fe59ecf0fca90d09129cddf2eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require ["fileinto", "mailbox"];
/*
* Discard mail that has a spam score greater than or equal to 5
*/
if header :contains "X-Spam-Level" "*****" {
		discard;
		stop;
}
/*
* Discard messages marked as infected by virus scanner
*/
if header :contains "X-Virus-Scan" "infected" {
		discard;
		stop;
}
/*
* If message is marked as spam (and falls below discard threshold) put into spam mailbox
*/
if header :contains "X-Spam-Flag" "YES" {
		fileinto "Spam";
}