freebsd-skq/etc/mail/Makefile
1997-10-19 16:40:10 +00:00

30 lines
957 B
Makefile

default:
.if exists(/etc/mail/ips.txt)
mv -f /etc/mail/ips.txt /etc/mail/ips.txt.0
.endif
fetch ftp://ftp.gulf.net/pub/docs/ips.txt
cat /etc/mail/ips.txt | cut -d ' ' -f 1 | \
sed -e 's/$$/ #blocked. contact postmaster/' > \
/etc/mail/ips.new
mv /etc/mail/ips.new /etc/mail/ips.txt
.if exists(/etc/mail/domains.txt)
mv -f /etc/mail/domains.txt /etc/mail/domains.txt.0
.endif
fetch ftp://ftp.gulf.net/pub/docs/domains.txt
cat /etc/mail/domains.txt | cut -d ' ' -f 1 | \
sed -e 's/$$/ #blocked. contact postmaster/' > \
/etc/mail/domains.new
mv /etc/mail/domains.new /etc/mail/domains.txt
install:
makemap hash /etc/mail/spamsites < /etc/mail/domains.txt
.if exists(/etc/mail/spamsites.local)
makemap -o hash /etc/mail/spamsites < /etc/mail/spamsites.local
.endif
makemap hash /etc/mail/denyip < /etc/mail/ips.txt
.if exists(/etc/mail/denyip.local)
makemap -o hash /etc/mail/denyip < /etc/mail/denyip.local
.endif
all: default install