On Wed, 14 Mar 2007, Erick Perez wrote:
I have enabled the feature in sendmail.mc to check with spamhaus for spammers. However since this block is being made at MTA level, I would like to know is something can be done to obtain statistics of blocked attemps.
grep -c works. :-)
I specify a 554 SMTP error message in my spamhaus FEATURE setting:
FEATURE(`dnsbl', `sbl-xbl.spamhaus.org', `"554 Mail rejected - http://www.spamhaus.org/query/bl?ip=%22$&%7Bclient_addr%7D')
Finding rejections is easy (add -c for counting):
grep 'www.spamhaus.org/query/' /var/log/maillog