create Postfix IP Blocklists
Posted: 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
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