Title: Ingo Claro
Hello list,
I wanted to get the IP addresses of the top smtp submitters, to analyze them and block possible spammers.
I searched a lot and found no script or log processor available to do that...  so I made one:

grep "CHKUSER accepted" /var/log/qmail/smtpd/* | sed 's/.*remote .*:\([^>]*\)> .*/\1/' | sort | uniq -c | sort -rn | head 20


regards,
--


Ingo Claro F.
Gerente de Operaciones

NetRed S.A.
Certificado ISO 9001:2000

Reply via email to