ahbl-rspamd/rebuild.sh

12 lines
325 B
Bash
Raw Normal View History

2022-07-06 21:35:07 -06:00
#!/bin/bash
tail -n +5 /var/lib/rbldns/ahbl-rbldnsd/rhsbl.private.ahbl.org | \
grep '^[[:blank:]]*[^[:blank:]#;:]' |\
cut -d . -f 2- | \
egrep "^(([[:alpha:]](-?[[:alnum:]])*)\.)+[[:alpha:]]{2,}$" \
| sort > /var/www/downloads.ahbl.org/rspamd/ahbl-badrep-domains.map
for i in `ls *.map`; do
rm $i.zst
zstd -19 $i
done