commit b33159542ab18d995d7f5a1f95fb6cd9aaddc654
parent 2111b308577074d6b199f44f7461084c5b592139
Author: Jaromil <jaromil@dyne.org>
Date: Wed, 25 Jul 2012 11:19:12 +0200
better filtering of spam
Diffstat:
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/zlibs/filters b/src/zlibs/filters
@@ -148,7 +148,7 @@ cat <<EOF >> $sieve
{ fileinto "zz.blacklist"; stop; }
# bounces
-if header :contains "Sender" "mailman-bounces" {
+if header :contains "Sender" "mailman-bounce" {
fileinto "zz.bounces";
stop;
}
@@ -278,7 +278,7 @@ EOF
}
##############################################################
- # if the sender is known (ldbd recognizes it) then put mail in
+ # if the sender is known (whitelist) then put mail in
# high priority 'known' (procmail) or INBOX (sieve)
@@ -309,6 +309,12 @@ cat <<EOF >> $sieve
]
{ fileinto "INBOX"; stop; }
+# spam
+if header :is "X-Spam-Flag" "YES" {
+ fileinto "zz.spam";
+ stop;
+}
+
EOF
@@ -328,6 +334,10 @@ EOF
* ? \$JARO -l whitelist -q query from:
known/
+# spam filters
+:0 w:
+* ^X-Spam-Flag: YES
+zz.spam/
EOF