diff options
author | heraklit256 <37872459+heraklit256@users.noreply.github.com#> | 2018-05-31 14:54:40 +0200 |
---|---|---|
committer | heraklit256 <37872459+heraklit256@users.noreply.github.com#> | 2018-05-31 14:54:40 +0200 |
commit | 2d3826fa4004a594fe59b42ae3fedbafdee27238 (patch) | |
tree | fb32731cc4a4f25ac51352c2d7f20b5bf3e23596 /rules | |
parent | d39673f6b203116ee5cbe8bfded7d79e1412100f (diff) | |
download | rspamd-2d3826fa4004a594fe59b42ae3fedbafdee27238.tar.gz rspamd-2d3826fa4004a594fe59b42ae3fedbafdee27238.zip |
add rule for rogue "strongmail" MTA
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/headers.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 5658608fb..a7300e2b8 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -589,11 +589,19 @@ reconf['YANDEX_RU_MAILER'] = { -- Detect 1C v8.2 and v8.3 mailers reconf['MAILER_1C_8'] = { re = 'X-Mailer=/^1C:Enterprise 8\\.[23]$/H', - score = 0, + score = 0.0, description = 'Sent with 1C:Enterprise 8', group = 'header' } +-- Detect rogue 'strongmail' MTA with IPv4 and '(-)' in Received line +reconf['STRONGMAIL'] = { + re = [[Received=/^from\s+strongmail\s+\(\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]\) by \S+ \(-\); /mH]], + score = 6.0, + description = 'Sent via rogue "strongmail" MTA', + 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' |