# please don't use this version anymore! # see the WWW page for newer versions. LOCAL_CONFIG F{Spammer} /etc/mail/Spammer F{SpamDomains} /etc/mail/SpamDomains LOCAL_RULESETS Scheck_mail # make sure you have TABs here, not BLANKs! sendmail will complain otherwise... R<$={Spammer}> $#error $@ 5.7.1 $: "550 We don't accept junk mail" R<$={Spammer}.> $#error $@ 5.7.1 $: "550 We don't accept junk mail" R$={Spammer} $#error $@ 5.7.1 $: "550 We don't accept junk mail" R$={Spammer}. $#error $@ 5.7.1 $: "550 We don't accept junk mail" R$* $: $>3 $1 canonify R$*<@$*$={SpamDomains}.>$* $#error $@ 5.7.1 $: "550 This domain is banned." go away R$*<@$*$={SpamDomains}>$* $#error $@ 5.7.1 $: "550 This domain is banned." go away # if you enable the last rule, you can disable this one. # host without a . in the FQHN ? R$*<@$->$* $#error $@ 4.1.8 $: "458 invalid host name" no real name # lookup IP address (reverse mapping available?) # R$*<@[$+]>$* $: $1 < @ $[ [ $2 ] $] > $3 # no DNS entry? this is dangerous! # R$*<@$*$~P>$* $#error $@ 4.1.8 $: "458 unresolvable host name, check your configuration." no real name