# RDNSLOOKUP.RC # # Function to check a dns-based blocklist or whitelist to see if an # IP is on it, and if it is, to add an appropriate header to the # email. # :0 { CHECKREVIP=`${SBHOST} ${LOCALREVCHECK}.${RDNSSERVER} 2> /dev/null` } :0 * ! RDNSNAME1 ?? NULL { RDNSNAME=${RDNSNAME1} RDNSRESPONSE=${RDNSRESPONSE1} RDNSSCORE=${RDNSSCORE1} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME2 ?? NULL { RDNSNAME=${RDNSNAME2} RDNSRESPONSE=${RDNSRESPONSE2} RDNSSCORE=${RDNSSCORE2} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME3 ?? NULL { RDNSNAME=${RDNSNAME3} RDNSRESPONSE=${RDNSRESPONSE3} RDNSSCORE=${RDNSSCORE3} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME4 ?? NULL { RDNSNAME=${RDNSNAME4} RDNSRESPONSE=${RDNSRESPONSE4} RDNSSCORE=${RDNSSCORE4} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME5 ?? NULL { RDNSNAME=${RDNSNAME5} RDNSRESPONSE=${RDNSRESPONSE5} RDNSSCORE=${RDNSSCORE5} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME6 ?? NULL { RDNSNAME=${RDNSNAME6} RDNSRESPONSE=${RDNSRESPONSE6} RDNSSCORE=${RDNSSCORE6} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME7 ?? NULL { RDNSNAME=${RDNSNAME7} RDNSRESPONSE=${RDNSRESPONSE7} RDNSSCORE=${RDNSSCORE7} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME8 ?? NULL { RDNSNAME=${RDNSNAME8} RDNSRESPONSE=${RDNSRESPONSE8} RDNSSCORE=${RDNSSCORE8} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME9 ?? NULL { RDNSNAME=${RDNSNAME9} RDNSRESPONSE=${RDNSRESPONSE9} RDNSSCORE=${RDNSSCORE9} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME10 ?? NULL { RDNSNAME=${RDNSNAME10} RDNSRESPONSE=${RDNSRESPONSE10} RDNSSCORE=${RDNSSCORE10} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME11 ?? NULL { RDNSNAME=${RDNSNAME11} RDNSRESPONSE=${RDNSRESPONSE11} RDNSSCORE=${RDNSSCORE11} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } :0 * ! RDNSNAME12 ?? NULL { RDNSNAME=${RDNSNAME12} RDNSRESPONSE=${RDNSRESPONSE12} RDNSSCORE=${RDNSSCORE12} INCLUDERC=${SBDIR}/functions/rdnsl-sub.rc } RDNSSERVER='localhost' LOCALDESCRIPTION='Null' RDNSNAME1=NULL RDNSRESPONSE1='000.000.000.000' RDNSSCORE1='0' RDNSNAME2=NULL RDNSRESPONSE2='000.000.000.000' RDNSSCORE2='0' RDNSNAME3=NULL RDNSRESPONSE3='000.000.000.000' RDNSSCORE3='0' RDNSNAME4=NULL RDNSRESPONSE4='000.000.000.000' RDNSSCORE4='0' RDNSNAME5=NULL RDNSRESPONSE5='000.000.000.000' RDNSSCORE5='0' RDNSNAME6=NULL RDNSRESPONSE6='000.000.000.000' RDNSSCORE6='0' RDNSNAME7=NULL RDNSRESPONSE7='000.000.000.000' RDNSSCORE7='0' RDNSNAME8=NULL RDNSRESPONSE8='000.000.000.000' RDNSSCORE8='0' RDNSNAME9=NULL RDNSRESPONSE9='000.000.000.000' RDNSSCORE9='0' RDNSNAME10=NULL RDNSRESPONSE10='000.000.000.000' RDNSSCORE10='0' RDNSNAME11=NULL RDNSRESPONSE11='000.000.000.000' RDNSSCORE11='0' RDNSNAME12=NULL RDNSRESPONSE12='000.000.000.000' RDNSSCORE12='0'