create Postfix IP Blocklists

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

create Postfix IP Blocklists

Post by benscha »

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: 1553
Joined: 18 Mar 2015 09:16

Re: create Postfix IP Blocklists

Post by pdwalker »

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: 19
Joined: 23 Jan 2018 07:19

Re: create Postfix IP Blocklists

Post by benscha »

@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: 1553
Joined: 18 Mar 2015 09:16

Re: create Postfix IP Blocklists

Post by pdwalker »

I do!

7 :lol:

On the bright side, 100% was spam!
Post Reply