Skip to content

Commit

Permalink
update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Nov 11, 2024
1 parent 60a4b7b commit e1970be
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Esp-rbl.cf
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,16 @@ ifplugin Mail::SpamAssassin::Plugin::Esp
tflags RBL_ESP_TURBOSMTP net
endif

header ESP_WEBTRK eval:esp_webtrk_check()
describe ESP_WEBTRK Message from "Webtrk" abused account
score ESP_WEBTRK 0.01

ifplugin Mail::SpamAssassin::Plugin::AskDNS
askdns RBL_ESP_WEBTRK _WEBTRKID_.webtrk.espbl.snb.it A 127.0.0.1
describe RBL_ESP_WEBTRK Esp "Webtrk" blacklist
tflags RBL_ESP_WEBTRK net
endif

else

if (version >= 4.000000)
Expand Down Expand Up @@ -487,6 +497,13 @@ if (version >= 4.000000)
describe RBL_ESP_TURBOSMTP Esp TurboSmtp Id blacklist
tflags RBL_ESP_TURBOSMTP net

header __ESP_WEBTRK_CA exists:X-Campaign
header __ESP_WEBTRK_ID List-Unsubscribe =~ /https?:\/\/.{3,32}\/u\/\w+\-(?<WEBTRK_ID>\w+)/
header __ESP_WEBTRK_RBL eval:check_hashbl_tag('webtrk.espbl.snb.it/A', 'raw', 'WEBTRK_ID', '^127\.')
meta RBL_ESP_WEBTRK ( __ESP_WEBTRK_CA && __ESP_WEBTRK_RBL )
describe RBL_ESP_WEBTRK Esp "Webtrk" Id blacklist
tflags RBL_ESP_WEBTRK net

endif
endif

Expand Down Expand Up @@ -520,3 +537,4 @@ score RBL_ESP_SENDINBLUE 4.0
score RBL_ESP_SMTPCOM 4.0
score RBL_ESP_SPARKPOST 4.0
score RBL_ESP_TURBOSMTP 4.0
score RBL_ESP_WEBTRK 4.0
7 changes: 7 additions & 0 deletions Esp.cf
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,11 @@ header TURBOSMTP eval:esp_turbosmtp_check()
describe TURBOSMTP Message from TurboSmtp abused account
score TURBOSMTP 5.0

# -------- WEBTRK --------
webtrk_feed /etc/mail/spamassassin/webtrk_id.txt

header WEBTRK eval:esp_webtrk_check()
describe WEBTRK Message from "Webtrk" abused account
score WEBTRK 5.0

endif # Mail::SpamAssassin::Plugin::Esp

0 comments on commit e1970be

Please sign in to comment.