aboutsummaryrefslogtreecommitdiffstats
path: root/rules/regexp
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2017-03-23 21:27:02 +0000
committerSteve Freegard <steve@stevefreegard.com>2017-03-23 21:27:02 +0000
commitc53dd6be7203038a0be6e73f1eb4beeeecd65b91 (patch)
tree88c01448d83d955c0b30a83fc5b3b269d1d6c15b /rules/regexp
parent7021ddcc38a0f05b2bf69849f645a848e06be1e2 (diff)
downloadrspamd-c53dd6be7203038a0be6e73f1eb4beeeecd65b91.tar.gz
rspamd-c53dd6be7203038a0be6e73f1eb4beeeecd65b91.zip
New rules
Diffstat (limited to 'rules/regexp')
-rw-r--r--rules/regexp/headers.lua6
-rw-r--r--rules/regexp/misc.lua7
2 files changed, 13 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index f58feeaf8..af63d7131 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -899,3 +899,9 @@ reconf['X_PHPOS_FAKE'] = {
group = 'headers'
}
+reconf['HAS_XOIP'] = {
+ re = "header_exists('X-Originating-IP')",
+ description = "Has X-Originating-IP header",
+ score = 0.0,
+ group = 'headers'
+}
diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua
index 2fc194965..5f5b437b6 100644
--- a/rules/regexp/misc.lua
+++ b/rules/regexp/misc.lua
@@ -40,3 +40,10 @@ reconf['DATA_URI_OBFU'] = {
score = 2.0
}
+reconf['INTRODUCTION'] = {
+ re = '/\\b(?:my name is\\b|(?:i am|this is)\\s+(?:mr|mrs|ms|miss|master|sir|prof(?:essor)?|d(?:octo)?r|rev(?:erend)?)(\.|\\b))/{sa_body}i',
+ description = "Sender introduces themselves",
+ score = 2.0,
+ group = 'scams'
+}
+