freebsd-dev/etc/mail/Makefile
Jonathan M. Bresler 26da30bbbc improve anti-spam rulesets: check_relay, check_mail, check_rcpt.
break each ruleset into identified sections. (called groups).
        note which groups can be reordered.
        each group accepts and returns the same strings,
                as much as possible.
        reactivate Paul Vixie's RBL (in check_mail)
        add rules to limit mail relaying to a list of hosts and domains
                in the R class (check_rcpt, not active on hub.freebsd.org)
Submitted by:	 jmb
1997-12-01 00:15:38 +00:00

33 lines
1.0 KiB
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
.if exists(/etc/mail/fakenames)
makemap hash /etc/mail/fakenames < /etc/mail/fakenames
.endif
all: default install