>
>awk '/smtpd.* connect from/ {print $8 }' /var/log/maillog | egrep -iv
>"unknown\[" | cut -d "[" -f 1 > /var/tmp/ptr.txt

by combining the extended match string from the .regexpfile plus the awk 
command, you can see what would have been rejected looking at today's 
maillog, on one line:

awk '/smtpd.* connect 
from.*(docsis|dsl|client|dhcp|pool|cpe|host|cust|dial|access|in\-addr|arpa|cable|nombres|upc\-[a-z]|user|bri\-).*\..*\.[a-z][a-z]/
 
{print $8 }' /var/log/maillog | sort -f | uniq -ci | sort -rf | less

Len



Reply via email to