Re: sendmail and rbl blocking - generating statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx <> www.madboa.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux