How to Get aDNSBL and aURIBL Stats

This article describes the steps required to get aDNSBL and aURIBL stats. After installing aDNSBL or aURIBL commercial services from Axigen, the logs can be parsed in order to get some metrics regarding the associated filters.

Solution

For aDNSBL, make sure you run the following steps as root:

1. Install the needed script

cd /opt/axigen/scripts 
curl -L https://support.axigen.com/axi-uribl/get-aDNSBL-stats.sh -O 
chmod +x get-aDNSBL-stats.sh

2. Run the script

  1. Providing one or more files containing SMTP-IN logs:

    # /opt/axigen/scripts/get-aDNSBL-stats.sh /var/opt/axigen/log/everything.txt.2020-04-20* 

    mail.mydomain.org | 2020-04-20 02:02:39 +0100 ... 2020-04-21 01:39:32 +0100 --------------------------------------------------------------------------- 
    Total queued items: 6447 
    Sessions rejected by DNSBL: 2010 
    Present in aDNSBL: 1895 
    Not present in aDNSBL: 115 
    Only in aDNSBL: 95 

    DNSBL code stats: 
    1895 adnsbl-xxx-xxx-xxx.dnsbl.axigenmail.com-127.0.0.2 
    1915 b.barracudacentral.org-127.0.0.2

  2. Providing SMTP-IN logs via stdin:

    # cat /var/opt/axigen/log/default.txt.2020-04-2* | grep 2020-04-25 | /opt/axigen/scripts/get-aDNSBLstats. sh 

    mail.mydomain.org | 2020-04-25 00:10:42 +0100 ... 2020-04-25 23:56:40 +0100 --------------------------------------------------------------------------- 
    Total queued items: 1299 
    Sessions rejected by DNSBL: 215 
    Present in aDNSBL: 179 
    Not present in aDNSBL: 36 
    Only in aDNSBL: 27 

    DNSBL code stats: 
    179 adnsbl-xxx-xxx-xxx.dnsbl.axigenmail.com-127.0.0.2 
    188 b.barracudacentral.org-127.0.0.2


For aURIBL, make sure you run the following steps as root:

1. Install the needed script

cd /opt/axigen/scripts 
curl -L https://support.axigen.com/axi-uribl/get-aURIBL-stats.sh -O 
chmod +x get-aURIBL-stats.sh

2. Run the script

  1. Providing one or more files containing PROCESSING logs:

    # /opt/axigen/scripts/get-aURIBL-stats.sh /var/opt/axigen/log/everything.txt.2020-04-24* 

    mail.mydomain.org | 2020-04-24 00:41:50 +0100 ... 2020-04-24 00:32:32 +0100 --------------------------------------------------------------------------- 
    Filtered messages: 1924 
    URIBL Suspect: 116 
    SPAM detected: 98 
    6 Bulk 
    92 Confirmed

  2. Providing PROCESSING logs via stdin:

    # cat /var/opt/axigen/log/default.txt.2020-04-2* | grep 2020-04-25 | /opt/axigen/scripts/get-aDNSBLstats. sh 

    mail.mydomain.org | 2020-04-25 00:41:50 +0100 ... 2020-04-24 23:57:08 +0100 --------------------------------------------------------------------------- 

    Filtered messages: 1142 
    URIBL Suspect: 68 
    SPAM detected: 54 
    54 Confirmed

To view aURIBL stats, you must first install and configure the aURIBL / AXI-URIBL filter. Here’s how.