Skip to content

Instantly share code, notes, and snippets.

@moisseev
Last active January 10, 2020 08:13
Show Gist options
  • Save moisseev/0aa289310249919baca65817107092af to your computer and use it in GitHub Desktop.
Save moisseev/0aa289310249919baca65817107092af to your computer and use it in GitHub Desktop.
ASN and IP blacklists using multimap. OBSOLETE, up-to-date example: https://github.com/moisseev/rspamd-multimap-bl
16276 # OVH
44493 # Chelyabinsk-Signal
46606 # UNIFIEDLAYER-AS-1
48666 # MAROSNET Telecommunication Company Network
49505 # SELECTEL-NET
133165 # DIGITALOCEAN
201229 # DIGITALOCEAN
202018 # DIGITALOCEAN
200130 # DIGITALOCEAN
21100 # ITLDC-NL (UA)
197695:2 # REGRU-NETWORK
198068 # FASTVPS-VE
43146:2 # Agava
29182 # TheServer-RU, TheFirst-RU clients (WebDC Msk)
95.213.163.164 # six.7dach.ru -> asn:49505
95.213.158.66 # nalogia.ru -> asn:49505
77.244.221.232 # skynet-kazan.com -> asn:49505
95.213.143.204 # smtp.carbonsoft.ru
37.187.196.5 # mail.itl-c.com -> asn:16276
198.50.184.125 # mail.freenode.net -> asn:16276
94.250.248.55 # eltex.org -> asn:29182
62.109.0.175 # mail.eltex.nsk.ru -> asn:29182
5.45.112.63 # antennmarket.ru -> asn:198068
185.58.207.135 # milavitsa-market.ru -> asn:48666
/^p\dnlsmtp\d{2}\.shr\.prod\.phx3\.secureserver\.net$/i
#/^a\d{1,2}-\d{2}\.smtp-out\.(amazonses|us-west-2)\.com$/i 0.7
/^vm\d{4}\.vps\.agava\.net$/i
/^cluster-[a-z]\.mailcontrol\.com$/i # AS44444 Forcepoint Cloud
#198.2.132.141 # mb.wixshoutout.com
#198.2.187.92 # md.wixshoutout.com
188.134.0.200 # mail.interzet.ru
195.3.144.64/26 # .ip-colo.net
46.61.214.59 # s2.parnas-it.com
81.177.18.26 # hgb8.hostingcenter.ru
LOCAL_BL_EXCL_IP {
type = "ip";
map = "$LOCAL_CONFDIR/local.d/bl-excl-ip.map";
score = 0;
description = "Sender's IP is excluded from being blacklisted by IP or ASN local blacklists";
}
LOCAL_BL_IP {
require_symbols = "!LOCAL_BL_EXCL_IP";
type = "ip";
map = "$LOCAL_CONFDIR/local.d/bl-ip.map";
score = 9;
description = "Sender's IP is on the local blacklist";
}
LOCAL_BL_ASN {
require_symbols = "!LOCAL_BL_EXCL_IP";
type = "asn";
map = "$LOCAL_CONFDIR/local.d/bl-asn.map";
score = 9;
description = "Sender's ASN is on the local blacklist";
}
LOCAL_BL_HOSTNAME {
type = "hostname";
map = "$LOCAL_CONFDIR/local.d/bl-hostname.map";
regexp = true;
score = 9;
description = "Sender's hostname is on the local blacklist";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment