]> source.dussan.org Git - rspamd.git/commitdiff
[Enhancement] Add composite rule for messages only containing a redirector URL 4496/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Fri, 26 May 2023 09:55:32 +0000 (09:55 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Fri, 26 May 2023 09:55:32 +0000 (09:55 +0000)
conf/composites.conf

index 3c41e1a37092a8161819ada3abb0337c14f302c4..19a2187e6ea0e0e9fc1ce8abefe4b0a8b402e77b 100644 (file)
@@ -154,6 +154,12 @@ composites {
     policy = "leave";
     description = "Message exhibits strong characteristics of advance fee fraud (AFF a/k/a '419' spam) involving freemail addresses";
   }
+  REDIRECTOR_URL_ONLY {
+    expression = "HFILTER_URL_ONLY & REDIRECTOR_URL";
+    score = 1.0;
+    policy = "leave";
+    description = "Message only contains a redirector URL";
+  }
 
   .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
   .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"