Skip to content

Commit

Permalink
[Minor] Add rule for forged X-Mailer: Internet Mail Service
Browse files Browse the repository at this point in the history
  • Loading branch information
citrin committed Dec 22, 2020
1 parent badadf5 commit 38d347e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rules/regexp/headers.lua
Expand Up @@ -993,3 +993,18 @@ reconf['FORGED_X_MAILER'] = {
score = 4.0,
group = 'headers',
}

-- X-Mailer headers like: 'Internet Mail Service (5.5.2650.21)' are being
-- forged by spammers, but MS Exachange 5.5 is still being used (in 2020) on
-- some mail servers. Example of genuene headers (DC-EXMPL is a hostname which
-- can be a FQDN):
-- Received: by DC-EXMPL with Internet Mail Service (5.5.2656.59)
-- id <HKH4BJQX>; Tue, 8 Dec 2020 07:10:54 -0600
-- Message-ID: <E7209F9DB64FCC4BB1051420F0E955DD05C9D59F@DC-EXMPL>
-- X-Mailer: Internet Mail Service (5.5.2656.59)
reconf['FORGED_IMS'] = {
description = 'Forged X-Mailer: Internet Mail Service',
re = [[X-Mailer=/^Internet Mail Service \(5\./{header} & !Received=/^by \S+ with Internet Mail Service \(5\./{header}]]
score = 3.0,
group = 'headers',
}

0 comments on commit 38d347e

Please sign in to comment.