# ASSGN-RCVD-VARS.RC # # Function to assign the proper variable names to information extracted # from a particular Received: header. LOCALDOMAIN="example.com" LOCALHOST="host.example.com" :0 * LOCALEVEL ?? FIRST { FIRSTEXIP=${LOCALIP} FIRSTEXHOST=${LOCALSENDER} FIRSTEXHELO=${LOCALHELO} FIRSTEXTOHOST=${LOCALRECEIVER} LOCALHOST=${FIRSTEXHELO} INCLUDERC=${SBDIR}/functions/get-domain.rc FIRSTEXHELODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${FIRSTEXHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc FIRSTEXDOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${FIRSTEXTOHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc FIRSTEXTODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' :0 * ! SBCONFIG ?? Lite * ! FIRSTEXHELO ?? ^host\.example\.com$ * FIRSTEXHELO ?? ^([0-9a-z][-_0-9a-z]+\.)+[a-z][a-z][a-z]?[a-z]?$ { LOCALDOMAIN=${FIRSTEXHELODOMAIN} LOCALHOST=${FIRSTEXHELO} LOCALIP='000.000.000.000' INCLUDERC=${SBDIR}/functions/get-ip.rc FIRSTEXHELOIP=${LOCALIP} } :0 * ! SBCONFIG ?? Lite * ! FIRSTEXHELO ?? ^host\.example\.com$ * FIRSTEXHELO ?? ^[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?$ { FIRSTEXHELOIP=${FIRSTEXHELO} } :0 * ! SBCONFIG ?? Lite * ! FIRSTEXHELOIP ?? ^000\.000\.000\.000$ { LOCALIP=${FIRSTEXHELOIP} INCLUDERC=${SBDIR}/functions/reverseip.rc FIRSTEXHELOREVIP=${LOCALREVIP} INCLUDERC=${SBDIR}/functions/cidrmatch.rc FIRSTEXHELOIPREGEXP=${LOCALIPREGEXP} } } :0 * LOCALEVEL ?? SECOND { SECONDEXIP=${LOCALIP} SECONDEXHOST=${LOCALSENDER} SECONDEXHELO=${LOCALHELO} SECONDEXTOHOST=${LOCALRECEIVER} LOCALHOST=${SECONDEXHELO} INCLUDERC=${SBDIR}/functions/get-domain.rc SECONDEXHELODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${SECONDEXHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc SECONDEXDOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${SECONDEXTOHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc SECONDEXTODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' :0 * ! SBCONFIG ?? Lite * ! SECONDEXHELO ?? ^host\.example\.com$ * SECONDEXHELO ?? ^([0-9a-z][-_0-9a-z]+\.)+[a-z][a-z][a-z]?[a-z]?$ { LOCALDOMAIN=${SECONDEXHELODOMAIN} LOCALHOST=${SECONDEXHELO} LOCALIP='000.000.000.000' INCLUDERC=${SBDIR}/functions/get-ip.rc SECONDEXHELOIP=${LOCALIP} } :0 * ! SBCONFIG ?? Lite * ! SECONDEXHELOIP ?? ^000\.000\.000\.000$ { LOCALIP=${SECONDEXHELOIP} INCLUDERC=${SBDIR}/functions/reverseip.rc SECONDEXHELOREVIP=${LOCALREVIP} INCLUDERC=${SBDIR}/functions/cidrmatch.rc SECONDEXHELOIPREGEXP=${LOCALIPREGEXP} } } :0 * LOCALEVEL ?? THIRD { THIRDEXIP=${LOCALIP} THIRDEXHOST=${LOCALSENDER} THIRDEXHELO=${LOCALHELO} THIRDEXTOHOST=${LOCALRECEIVER} LOCALHOST=${THIRDEXHELO} INCLUDERC=${SBDIR}/functions/get-domain.rc THIRDEXHELODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${THIRDEXHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc THIRDEXDOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${THIRDEXTOHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc THIRDEXTODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' :0 * ! SBCONFIG ?? Lite * ! THIRDEXHELO ?? ^host\.example\.com$ * THIRDEXHELO ?? ^([0-9a-z][-_0-9a-z]+\.)+[a-z][a-z][a-z]?[a-z]?$ { LOCALDOMAIN=${THIRDEXHELODOMAIN} LOCALHOST=${THIRDEXHELO} LOCALIP='000.000.000.000' INCLUDERC=${SBDIR}/functions/get-ip.rc THIRDEXHELOIP=${LOCALIP} } :0 * ! SBCONFIG ?? Lite * ! THIRDEXHELOIP ?? ^000\.000\.000\.000$ { LOCALIP=${THIRDEXHELOIP} INCLUDERC=${SBDIR}/functions/reverseip.rc THIRDEXHELOREVIP=${LOCALREVIP} INCLUDERC=${SBDIR}/functions/cidrmatch.rc THIRDEXHELOIPREGEXP=${LOCALIPREGEXP} } } :0 * LOCALEVEL ?? FOURTH { FOURTHEXIP=${LOCALIP} FOURTHEXHOST=${LOCALSENDER} FOURTHEXHELO=${LOCALHELO} FOURTHEXTOHOST=${LOCALRECEIVER} LOCALHOST=${FOURTHEXHELO} INCLUDERC=${SBDIR}/functions/get-domain.rc FOURTHEXHELODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${FOURTHEXHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc FOURTHEXDOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' LOCALHOST=${FOURTHEXTOHOST} INCLUDERC=${SBDIR}/functions/get-domain.rc FOURTHEXTODOMAIN=${LOCALDOMAIN} LOCALDOMAIN='example.com' :0 * ! SBCONFIG ?? Lite * ! FOURTHEXHELO ?? ^host\.example\.com$ * FOURTHEXHELO ?? ^([0-9a-z][-_0-9a-z]+\.)+[a-z][a-z][a-z]?[a-z]?$ { LOCALDOMAIN=${FOURTHEXHELODOMAIN} LOCALHOST=${FOURTHEXHELO} LOCALIP='000.000.000.000' INCLUDERC=${SBDIR}/functions/get-ip.rc FOURTHEXHELOIP=${LOCALIP} } :0 * ! SBCONFIG ?? Lite * ! FOURTHEXHELOIP ?? ^000\.000\.000\.000$ { LOCALIP=${FOURTHEXHELOIP} INCLUDERC=${SBDIR}/functions/reverseip.rc FOURTHEXHELOREVIP=${LOCALREVIP} INCLUDERC=${SBDIR}/functions/cidrmatch.rc FOURTHEXHELOIPREGEXP=${LOCALIPREGEXP} } }