# please use the .m4 file, this file is not maintained!
LOCAL_CONFIG
# file containing full e-mail addresses of spammers (for check_mail):
# spammer@address.domain SPAMMER
# or junk domains (for check_mail, check_relay):
# junk.domain JUNK
# or IP addresses (for check_relay):
# D.X.Y.Z IP
# C.X.Y IP
# B.X IP
# A IP
Kjunk dbm /etc/mail/junk

LOCAL_RULESETS
SjunkIP
# lookup IP in database
# full IP address
R$-.$-.$-.$-	$: $(junk $1.$2.$3.$4 $)
# class C net
R$-.$-.$-.$-	$: $(junk $1.$2.$3 $: $1.$2.$3.$4 $)
# class B net
R$-.$-.$-.$-	$: $(junk $1.$2 $: $1.$2.$3.$4 $)
# class A net
R$-.$-.$-.$-	$: $(junk $1 $: $1.$2.$3.$4 $)

Scheck_relay
# check IP
R$+ $| $+	$: $1 $| $>junkIP $2
R$+ $| IP	$#error $@ 5.7.1 $: "no access from your IP"
# check hostname
R$+ $| $+	$: $>junk <@$1>
R$*<@$*JUNK>$*	$#error $@ 5.7.1 $: "no access from this host"
