Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created August 15, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/40a7f182b56ec6b694770a7dd21b46c0 to your computer and use it in GitHub Desktop.
Save Mic92/40a7f182b56ec6b694770a7dd21b46c0 to your computer and use it in GitHub Desktop.
&&DNSWLS {
rbl=list.dnswl.org
rbl=hostkarma.junkemailfilter.com/^127\.0\.0\.1$/3600
rhsbl_client=hostkarma.junkemailfilter.com/^127\.0\.0\.1$/3600
}
&&DNSBLS {
rbl=zen.spamhaus.org
rbl=bl.spamcop.net
rbl=db.wpbl.info
rbl=ix.dnsbl.manitu.net
rbl=psbl.surriel.com
rbl=rbl.rbldns.ru
rbl=b.barracudacentral.org
rbl=spam.dnsbl.anonmails.de
rbl=dnsbl-1.uceprotect.net
rbl=dnsbl-2.uceprotect.net
rbl=dnsbl-3.uceprotect.net
rhsbl_sender=dbl.spamhaus.org
};
&&DCCLS {
rbl=dcc1.dcc-servers.net
};
id=RATE01 ; client_name==unknown
action=rate(client_address/3/300/450 4.7.1 sorry, max 3 requests per 5 minutes)
id=DCC_QUERY
&&DCCLS
rhsblcount=all
rblcount=all
action=set(HIT_dccls=$$rhsblcount,HIT_dccls+=$$rblcount,DCC_text=$$dnsbltext)
id=DCC_GREYLIST
HIT_dccls==1
action=greylist
# DNSBL checks - lookup
id=WBL_QUERY
&&DNSWLS
rhsblcount=all
rblcount=all
action=set(HIT_dnswls=$$rhsblcount,HIT_dnswls+=$$rblcount,DSWL_text=$$dnsbltext)
id=WBL_FOUND
HIT_dnswls >= 1
action=PREPEND X-PFW-STATE: INFO: [$$DSWL_text]
# DNSBL checks - lookup
id=RBL_QUERY
&&DNSBLS
rhsblcount=all
rblcount=all
action=set(HIT_dnsbls=$$rhsblcount,HIT_dnsbls+=$$rblcount,DSBL_text=$$dnsbltext)
# DNSBL checks - evaluation
id=RBL_TOOMANY
HIT_dnsbls>=2
action=554 5.7.1 blocked using $$HIT_dnsbls dnsbls, INFO: [$$DSBL_text]
id=RBL_GREYLIST
HIT_dnsbls==1
action=greylist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment