[Rspamd] Add 00 abuse domains (wip!)

master
andryyy 2021-05-24 11:12:53 +02:00
parent b8f7b00fff
commit 56a085b632
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 10 additions and 2 deletions

View File

@ -51,6 +51,7 @@ return function(task)
and not task:has_symbol('GLOBAL_MIME_FROM_BL')
and not task:has_symbol('LOCAL_BL_ASN')
and not task:has_symbol('GLOBAL_RCPT_BL')
and not task:has_symbol('ABUSE_NULLNULL')
and not task:has_symbol('MAILCOW_BLACK') then
local action = task:get_metric_action('default')
if action == 'reject' or action == 'add header' or action == 'rewrite subject' then

View File

@ -143,7 +143,7 @@ BAD_LANG {
score = 5.0;
}
BAZAR_ABUSE_CH {
BAZAAR_ABUSE_CH {
type = "selector";
selector = "attachments(hex,md5)";
map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
@ -162,3 +162,10 @@ SMTP_LIMITED_ACCESS {
map = "redis://SMTP_LIMITED_ACCESS";
symbols_set = ["SMTP_LIMITED_ACCESS"];
}
ABUSE_NULLNULL {
type = "selector";
selector = "urls:get_host.lower";
map = "http://dns.mailcow.email/bad-domains.txt";
score = 20.0;
}

View File

@ -71,7 +71,7 @@ services:
- clamd
rspamd-mailcow:
image: mailcow/rspamd:1.76
image: mailcow/rspamd:1.77
stop_grace_period: 30s
depends_on:
- dovecot-mailcow