summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2018-03-19 12:03:27 +0000
committerSteve Freegard <steve@stevefreegard.com>2018-03-19 12:03:27 +0000
commit5cebb9a4ed1bd6fb192c13f9356032270df30660 (patch)
treee553be44a90458018e37985dbd08a905df08f518 /rules
parent6a736ea5084b59ee922d713321d7aeaeffae82fc (diff)
downloadrspamd-5cebb9a4ed1bd6fb192c13f9356032270df30660.tar.gz
rspamd-5cebb9a4ed1bd6fb192c13f9356032270df30660.zip
Add new header rules
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 2570e9f75..64a416c9a 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -923,3 +923,36 @@ reconf['HAS_XOIP'] = {
score = 0.0,
group = 'headers'
}
+
+reconf['HAS_LIST_UNSUB'] = {
+ re = string.format('%s', 'header_exists(List-Unsubscribe)'),
+ description = 'Has List-Unsubscribe header',
+ score = -0.01,
+ group = 'headers'
+}
+
+reconf['HAS_GUC_PROXY_URI'] = {
+ re = '/\\.googleusercontent\\.com\\/proxy/{raw_mime}i',
+ description = 'Has googleusercontent.com proxy URI',
+ score = 0.01,
+ group = 'experimental'
+}
+
+reconf['HAS_GOOGLE_REDIR'] = {
+ re = '/\\.google\\.com\\/url\\?/{raw_mime}i',
+ description = 'Has google.com/url redirection',
+ score = 0.01,
+ group = 'experimental'
+}
+
+reconf['XM_UA_NO_VERSION'] = {
+ re = string.format('(!%s && !%s) && (%s || %s)',
+ 'X-Mailer=/https?:/H',
+ 'User-Agent=/https?:/H',
+ 'X-Mailer=/^[^0-9]+$/H',
+ 'User-Agent=/^[^0-9]+$/H'),
+ description = 'X-Mailer/User-Agent has no version',
+ score = 0.01,
+ group = 'experimental'
+}
+