1default: 2.if exists(/etc/mail/ips.txt) 3 mv -f /etc/mail/ips.txt /etc/mail/ips.txt.0 4.endif 5 fetch ftp://ftp.gulf.net/pub/docs/ips.txt
| 1default: 2.if exists(/etc/mail/ips.txt) 3 mv -f /etc/mail/ips.txt /etc/mail/ips.txt.0 4.endif 5 fetch ftp://ftp.gulf.net/pub/docs/ips.txt
|
6 cat /etc/mail/ips.txt | cut -d ' ' -f 1 | \
| 6 sort ips.txt > block_ips.txt 7 touch allowsorted_ips.txt 8.if exists(/etc/mail/allow_ips.txt) 9 sort allow_ips.txt > allowsorted_ips.txt 10.endif 11 comm -23 block_ips.txt allowsorted_ips.txt | \ 12 cut -d ' ' -f 1 | \
|
7 sed -e 's/$$/ #blocked. contact postmaster/' > \
| 13 sed -e 's/$$/ #blocked. contact postmaster/' > \
|
8 /etc/mail/ips.new 9 mv /etc/mail/ips.new /etc/mail/ips.txt
| 14 /etc/mail/block_ips.new 15 rm allowsorted_ips.txt 16 mv /etc/mail/block_ips.new /etc/mail/block_ips.txt
|
10.if exists(/etc/mail/domains.txt) 11 mv -f /etc/mail/domains.txt /etc/mail/domains.txt.0 12.endif 13 fetch ftp://ftp.gulf.net/pub/docs/domains.txt
| 17.if exists(/etc/mail/domains.txt) 18 mv -f /etc/mail/domains.txt /etc/mail/domains.txt.0 19.endif 20 fetch ftp://ftp.gulf.net/pub/docs/domains.txt
|
14 cat /etc/mail/domains.txt | cut -d ' ' -f 1 | \
| 21 sort domains.txt > block_domains.txt 22 touch allowsorted_domains.txt 23.if exists(/etc/mail/allow_domains.txt) 24 sort allow_domains.txt > allowsorted_domains.txt 25.endif 26 comm -23 block_domains.txt allowsorted_domains.txt | \ 27 cut -d ' ' -f 1 | \
|
15 sed -e 's/$$/ #blocked. contact postmaster/' > \
| 28 sed -e 's/$$/ #blocked. contact postmaster/' > \
|
16 /etc/mail/domains.new 17 mv /etc/mail/domains.new /etc/mail/domains.txt
| 29 /etc/mail/block_domains.new 30 rm allowsorted_domains.txt 31 mv /etc/mail/block_domains.new /etc/mail/block_domains.txt
|
18 19install:
| 32 33install:
|
20 makemap hash /etc/mail/spamsites < /etc/mail/domains.txt
| 34 makemap hash /etc/mail/spamsites < /etc/mail/block_domains.txt
|
21.if exists(/etc/mail/spamsites.local) 22 makemap -o hash /etc/mail/spamsites < /etc/mail/spamsites.local 23.endif
| 35.if exists(/etc/mail/spamsites.local) 36 makemap -o hash /etc/mail/spamsites < /etc/mail/spamsites.local 37.endif
|
24 makemap hash /etc/mail/denyip < /etc/mail/ips.txt
| 38 makemap hash /etc/mail/denyip < /etc/mail/block_ips.txt
|
25.if exists(/etc/mail/denyip.local) 26 makemap -o hash /etc/mail/denyip < /etc/mail/denyip.local 27.endif
| 39.if exists(/etc/mail/denyip.local) 40 makemap -o hash /etc/mail/denyip < /etc/mail/denyip.local 41.endif
|
28.if exists(/etc/mail/fakenames) 29 makemap hash /etc/mail/fakenames < /etc/mail/fakenames 30.endif
| |
31 32all: default install
| 42 43all: default install
|