| Home | | Programming Resources | | Anti-Spam | | ![]() | Share This Page |
|
| Use these links to choose the section you are interested in: |
|
#####################################################################
# Ruleset check_mail - Stop Spammers (see http://www.vix.com/spam/) #
#####################################################################
# spam site list files
F{SpamDomains} /etc/spamdomains.txt
F{Spammers} /etc/spammers.txt
Scheck_mail
R<$={Spammers}> $#error $@ 4.7.1 $: "471 We don't accept junk mail"
R$={Spammers} $#error $@ 4.7.1 $: "471 We don't accept junk mail"
R$* $: $>3 $1
R$*<@$*$={SpamDomains}.>$* $#error $@ 4.7.1 $: "471 We don't accept junk mail from your domain"
R$*<@$*$={SpamDomains}>$* $#error $@ 4.7.1 $: "471 We don't accept junk mail from your domain"
R$* $@ ok
R$* $#error $@ 4.1.8 $: "418 can't resolve your name, check your DNS"
|
##############################################################
# Ruleset check_rcpt - Shutdown relaying through this server #
##############################################################
# dequoting map - Needed for SPAM hack below
Kdequote dequote
# permitted relay sites file
F{RelayOK} -o /etc/relaydomains.txt
Scheck_rcpt
# anything terminating locally is ok
R<$+ @ $=w > $@ OK
R<$+ @ $* $={RelayOK} > $@ OK
# anything originating locally is ok
R$* $: $(dequote "" $&{client_name} $)
R$=w $@ OK
R$* $={RelayOK} $@ OK
R$@ $@ OK
# anything else is bogus
R$* $#error $: "550 Relaying Denied"
|
|
| Home | | Programming Resources | | Anti-Spam | | ![]() | Share This Page |