Afficher un message
Vieux 02/09/2007, 23h59   #1
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut FEATURE(`anfi/rsdnsbl') - selecting DNSBL checks based on reputation/country

[1: Followup-To set to news:comp.mail.sendmail ]
[2: The code presented should be considered to be ALPHA quality ]

I would like to present FEATURE(`anfi/rsdnsbl.m4') that is supposed to
fine tune set of DNSBL checks based on originating IP address
* reputation (using e.g. l2.apews.org )
* country (using e.g. zz.countries.nerd.dk )

The FEATURE itself does not block anything - it only decides if the
remaining/further DNSBL tests [FEATURE(enhdnsbl) tests] should be
skipped or conducted.

Sample1 - user in Poland:
#v+
dnl import IP addresses used to represent countries in
dnl zz.countries.nerd.dk in form C2_*
FEATURE(`anfi/countries')dnl

dnl first batch of enhdnsbl tests

dnl skip remaning test for PL, DE, UK and FR adresses
FEATURE(`anfi/rsdnsbl',`zz.countries.nerd.dk',`whitelist',`',
C2_PL, C2_DE, C2_UK, C2_FR)dnl

dnl second batch of enhdnsbl tests

dnl do remaning test only for CN and KR, do not test on TMP problems
FEATURE(`anfi/rsdnsbl',`zz.countries.nerd.dk',`blacklist',`t',
C2_CN, C2_KR)dnl

dnl third batch of enhdnsbl tests

#v-

Sample2 - user in Finland:
#v+
dnl import IP addresses used to represent countries in
dnl zz.countries.nerd.dk in form C2_*
FEATURE(`anfi/countries')dnl

dnl first batch of enhdnsbl tests

dnl skip remaning test for FI addresses
FEATURE(`anfi/rsdnsbl',`zz.countries.nerd.dk',`whitelist',`', C2_FI)dnl

dnl second batch of enhdnsbl tests

dnl do remaning test only for addresses listed in APEWS, do not test on TMP problems
FEATURE(`anfi/rsdnsbl',`l2.apews.org',`blacklist',`t')dnl

dnl third batch of enhdnsbl tests

#v

URL(s):
* cf/feature/anfi/rsdnsbl.m4 file:
http://open-sendmail.cvs.sourceforge...nfi/rsdnsbl.m4
* cf/feature/anfi/countries.m4 file:
http://open-sendmail.cvs.sourceforge...i/countries.m4

P.S. Feel free to comment.

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Hating the Yankees is as American as pizza pie,
unwed mothers and cheating on your income tax.
-- Mike Royko
  Réponse avec citation
 
Page generated in 0,12756 seconds with 9 queries