[CentOS] sendmail and rbl blocking - generating statistics
Paul Heinlein
heinlein at madboa.com
Wed Mar 14 16:55:14 UTC 2007
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="$&{client_addr}')
Finding rejections is easy (add -c for counting):
grep 'www.spamhaus.org/query/' /var/log/maillog
--
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
More information about the CentOS
mailing list