REQ="/usr/sbin/sendmail"
if [ -f "$REQ" ]; then
LP="/var/log/maillog"
TLOG_TF="sendmail"
TRIG="50"

# Max logs to process at onetime for this rule
MLOG=2500

## SENDMAIL
ARG_VAL=`$TLOGP $LP $TLOG_TF | grep -w sendmail | grep -i "check_rcpt" | grep -i "Relaying denied" | grep -iwf $PATTERN_FILE | awk '{print$13}' | tr -d '[],' | grep -E '.[0-9]+' | tail -n $MLOG | uniq`
fi
