summaryrefslogtreecommitdiffstats
path: root/rules/regexp
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-12-12 18:51:11 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-12-12 18:58:08 +0300
commite181656d48dd720177c5e774dbcf4888f6671859 (patch)
treec64abc43ec1a0499d04465998ad388bdb9bae7ab /rules/regexp
parent5bb89372e9eed24a38c9caf768d7e43c4d8f3870 (diff)
downloadrspamd-e181656d48dd720177c5e774dbcf4888f6671859.tar.gz
rspamd-e181656d48dd720177c5e774dbcf4888f6671859.zip
[Minor] Suppress *_BASE64 for mails sent with Mail.Ru web-mail (#902)
Diffstat (limited to 'rules/regexp')
-rw-r--r--rules/regexp/headers.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 143171ae2..414a13aef 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -565,6 +565,16 @@ reconf['FORGED_MUA_THEBAT_BOUN'] = {
group = 'header'
}
+-- Detect Mail.Ru web-mail
+local xm_mail_ru_mailer_1_0 = 'X-Mailer=/^Mail\\.Ru Mailer 1\\.0$/H'
+local rcvd_e_mail_ru = 'Received=/^from \\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\] by e\\.mail\\.ru with HTTP;/mH'
+reconf['MAIL_RU_MAILER'] = {
+ re = string.format('(%s) & (%s)', xm_mail_ru_mailer_1_0, rcvd_e_mail_ru),
+ score = 0.0,
+ description = 'Sent with Mail.Ru web-mail',
+ group = 'header'
+}
+
-- Two received headers with ip addresses
local double_ip_spam_1 = 'Received=/from \\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\] by \\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3} with/H'
local double_ip_spam_2 = 'Received=/from\\s+\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\s+by\\s+\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3};/H'