# # vim: set filetype=procmail : # # $Id: dnsbl_ip,v 1.1.1.1 2002/12/21 16:34:30 adicvs Exp $ # # This file is called by dnsbl. It runs repeatedly until a Received: header # from an untrusted host is found. # # Get the desired Received: header from our email :0 *$ ${RECEIVED_HEADERS} { RECEIVED_STR=${MATCH} # Test the current Received: header to see if it's from our # trusted hosts :0 *$ RECEIVED_STR ?? ${PATTERN_TRUSTED} { RECEIVED_HEADERS=${PATTERN_PRE}${RECEIVED_HEADERS} INCLUDERC=$DNSBL_DIR/dnsbl_ip } # Get the ip address of the unstrusted host from our # current header line (only if the preceeding step failed) :0 E *$ RECEIVED_STR ?? ${PATTERN_IP} { IP_STR=${MATCH} } } # end