Before enabling DNSBL blocklists on one site, I was tasked with
gathering some postscreen(8) statistics.  I liked the information
display in a previous thread[1], but did not require the geoIP and
mapping features in Julien Vehent's script. So, I cobbled together a
smaller log parser[2] to produce only the data I need; just sharing in
case the information or script could be useful to others in the
community.

Example output, on a day earlier this week, aftering populating
'postscreen_dnsbl_sites', but leaving the default action as 'ignore':

    UNIQ/TOTAL   EVENT
     127/494     COMMAND COUNT LIMIT
      60/104     COMMAND PIPELINING
     355/492     COMMAND TIME LIMIT
   35823/634743  CONNECT
   31504/65612   DISCONNECT
   24259/323664  DNSBL
   22464/51380   HANGUP
      54/90      NON-SMTP
    8840/9300    PASS NEW
   11394/292608  PASS OLD
    4324/30342   PREGREET
       2/1447    WHITELISTED
   25760/32960   reject (450)
    4193/20639   reject (550)
      44/230     reject (all server ports busy)
       5/868     reject (too many connections)

... and for DNSBL clients only:

    UNIQ/TOTAL   EVENT
     102/326     COMMAND COUNT LIMIT
      54/81      COMMAND PIPELINING
     299/408     COMMAND TIME LIMIT
   24259/389632  CONNECT
   23061/51893   DISCONNECT
   24259/323664  DNSBL
   19137/44210   HANGUP
      49/85      NON-SMTP
    1722/1787    PASS NEW
    2716/62660   PASS OLD
    3889/27267   PREGREET
   18643/24811   reject (450)
    3783/16010   reject (550)
      35/220     reject (all server ports busy)
       3/374     reject (too many connections)

[1] http://article.gmane.org/gmane.mail.postfix.user/224979
[2] http://people.freebsd.org/~sahil/scripts/mailstats.py.txt

-- 
Sahil Tandon

Reply via email to