divert(-1) # # experimental dnswl m4 # Put this file in your sendmail-cf/feature dir i.e. # /usr/share/sendmail-cf/feature/ and then in your sendmail.mc, define # FEATURE(dnswl,`dnswl.yourdomain`) # before your FEATURE(dnsbl...) line(s), replacing dnswl.yourdomain # with the actual zone name for your DNSWL whitelist. # Be sure you don't convert tabs below into spaces. # divert(0) VERSIONID($Id: dnswl.m4,v 1.0 2002/12/01 Exp $') divert(8) # DNS based IP address whitelist _ARG_ R$* $: $&{client_addr} R::ffff:$-.$-.$-.$- $: $(host $4.$3.$2.$1._ARG_. $: NotFound $) R$-.$-.$-.$- $: $(host $4.$3.$2.$1._ARG_. $: NotFound $) RNotFound $: OKSOFAR R$+ $@ divert(-1)