# 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 "Error-Code Error-Text"
# or junk domains (for check_mail, check_relay):
# junk.domain  "Error-Code Error-Text"
# or IP addresses (for check_relay):
# D.X.Y.Z "Error-Code Error-Text"
# C.X.Y "Error-Code Error-Text"
# B.X "Error-Code Error-Text"
# A "Error-Code Error-Text"
Kjunk dbm -a@JUNK /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$+ $| JUNK@JUNK	$#error $@ 5.7.1 $: "550 access from your IP address denied."
R$+ $| $*@JUNK	$#error $@ 5.7.1 $: $2
# check hostname
R$+ $| $+	$: $>junk <@$1>
R$*<@JUNK@JUNK>$*	$#error $@ 5.7.1 $: "550 access from your hostname denied."
R$*<@$*@JUNK>$*	$#error $@ 5.7.1 $: $2
