# RDNSLOOKUP3.RC # # Function to check a dns-based whitelist to see if an IP is on # it, and if it is, to add an appropriate header to the email and # set the appropriate flags. # :0 { CHECKREVIP=`${SBHOST} ${LOCALREVCHECK}.${RDNSSERVER} 2> /dev/null` } :0 * ! RDNSNAME1 ?? NULL { RDNSNAME=${RDNSNAME1} RDNSRESPONSE=${RDNSRESPONSE1} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME2 ?? NULL { RDNSNAME=${RDNSNAME2} RDNSRESPONSE=${RDNSRESPONSE2} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME3 ?? NULL { RDNSNAME=${RDNSNAME3} RDNSRESPONSE=${RDNSRESPONSE3} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME4 ?? NULL { RDNSNAME=${RDNSNAME4} RDNSRESPONSE=${RDNSRESPONSE4} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME5 ?? NULL { RDNSNAME=${RDNSNAME5} RDNSRESPONSE=${RDNSRESPONSE5} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME6 ?? NULL { RDNSNAME=${RDNSNAME6} RDNSRESPONSE=${RDNSRESPONSE6} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME7 ?? NULL { RDNSNAME=${RDNSNAME7} RDNSRESPONSE=${RDNSRESPONSE7} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME8 ?? NULL { RDNSNAME=${RDNSNAME8} RDNSRESPONSE=${RDNSRESPONSE8} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME9 ?? NULL { RDNSNAME=${RDNSNAME9} RDNSRESPONSE=${RDNSRESPONSE9} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME10 ?? NULL { RDNSNAME=${RDNSNAME10} RDNSRESPONSE=${RDNSRESPONSE10} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME11 ?? NULL { RDNSNAME=${RDNSNAME11} RDNSRESPONSE=${RDNSRESPONSE11} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } :0 * ! RDNSNAME12 ?? NULL { RDNSNAME=${RDNSNAME12} RDNSRESPONSE=${RDNSRESPONSE12} INCLUDERC=${SBDIR}/functions/rdnsl3-sub.rc } RDNSSERVER='localhost' LOCALDESCRIPTION='Null' RDNSNAME1=NULL RDNSRESPONSE1='000.000.000.000' RDNSNAME2=NULL RDNSRESPONSE2='000.000.000.000' RDNSNAME3=NULL RDNSRESPONSE3='000.000.000.000' RDNSNAME4=NULL RDNSRESPONSE4='000.000.000.000' RDNSNAME5=NULL RDNSRESPONSE5='000.000.000.000' RDNSNAME6=NULL RDNSRESPONSE6='000.000.000.000' RDNSNAME7=NULL RDNSRESPONSE7='000.000.000.000' RDNSNAME8=NULL RDNSRESPONSE8='000.000.000.000' RDNSNAME9=NULL RDNSRESPONSE9='000.000.000.000' RDNSNAME10=NULL RDNSRESPONSE10='000.000.000.000' RDNSNAME11=NULL RDNSRESPONSE11='000.000.000.000' RDNSNAME12=NULL RDNSRESPONSE12='000.000.000.000'