create Postfix IP Blocklists

Questions and answers about how to do stuff
Post Reply
benscha
Posts: 6
Joined: 23 Jan 2018 07:19

create Postfix IP Blocklists

Post by benscha » 23 Jan 2018 12:05

Hi Guys

i use some additional Blacklists wich i found on https://lists.blocklist.de/lists/ the lists will be updated frequently.

like for my other scripts i use the following folder structure

Code: Select all

home/
├── root/
       ├── scripts
              ├── learn
                     ├── ham
                     └── spam

Code: Select all

cd /home/root/scripts
#Download Mail Blacklist
wget https://lists.blocklist.de/lists/all.txt --no-check-certificate

#Add REJECT Your IP is spam
sed -i 's/$/\tREJECT Your IP is spam/g' /home/root/scripts/all.txt

#File nach postfix/client_checks kopieren
cp /home/root/scripts/all.txt /etc/postfix/client_checks

#Postmap convert
postmap /etc/postfix/client_checks

service postfix restart

rm -f /home/root/scripts/all.txt
always happy for any hints and tipps! :clap: | EFA 3.0.2.6

User avatar
pdwalker
Posts: 929
Joined: 18 Mar 2015 09:16

Re: create Postfix IP Blocklists

Post by pdwalker » 29 Jan 2018 04:13

This blocklist looks useful.

However, I would prefer to test it out for a bit before committing to make it a regular part of my antispam shields, so I'm going to let spamassassin track how useful it is and how often it gets hit.

Adding the following to my /etc/mail/spamassassin/local.cf

## blocklist.de
header RCVD_IN_DNSBL_Blocklist_de eval:check_rbl('127.0.0.2','allinone.bl.blocklist.de')
describe RCVD_IN_DNSBL_Blocklist_de Sender listed on Blocklist DNSBL
tflags RCVD_IN_DNSBL_Blocklist_de net
score RCVD_IN_DNSBL_Blocklist_de 0.01

Let's see what it picks up over the next couple of days.

benscha
Posts: 6
Joined: 23 Jan 2018 07:19

Re: create Postfix IP Blocklists

Post by benscha » 12 Feb 2018 14:03

@pdwalker do you have any numbers of hits from the blocklist?
always happy for any hints and tipps! :clap: | EFA 3.0.2.6

User avatar
pdwalker
Posts: 929
Joined: 18 Mar 2015 09:16

Re: create Postfix IP Blocklists

Post by pdwalker » 14 Feb 2018 14:32

I do!

7 :lol:

On the bright side, 100% was spam!

Post Reply