Matteo Corti edited this page Dec 4, 2015 · 3 revisions

Welcome to the check_rbl wiki!

check_rbl

check_rbl is a Nagios plugin to check if an SMTP server is blacklisted

see the INSTALL file for installation instructions

Usage

check_rbl 1.3.7 [https://trac.id.ethz.ch/projects/nagios_plugins]

This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. 
It may be used, redistributed and/or modified under the terms of the GNU 
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

Check SMTP black- or white- listing status

Usage: check_rbl [OPTIONS]

 -?, --usage
   Print usage information
 -h, --help
   Print detailed help screen
 -V, --version
   Print version information
 --extra-opts=[section][@file]
   Read options from an ini file. See http://nagiosplugins.org/extra-opts
   for usage and examples.
 -c, --critical=INTEGER
   Number of blacklisting servers for a critical warning
 -w, --warning=INTEGER
   Number of blacklisting servers for a warning
 -d, --debug
   Prints debugging information
 -s, --server=STRING
   RBL server
 -H, --host=STRING
   SMTP server to check
 -r, --retry=INTEGER
   Number of times to try a DNS query (default is 4) 
 --workers=INTEGER
   Number of parallel checks
 --whitelistings, --wl
   Check whitelistings instead of blacklistings
 --query-timeout=INTEGER
   Timeout of the RBL queries
 -t, --timeout=INTEGER
   Seconds before plugin times out (default: 15)
 -v, --verbose
   Show details for command-line debugging (can repeat up to 3 times)

Example

$ perl check_rbl -t 60 -H nagios.org  \
 -s cbl.abuseat.org \
 -s dnsbl.cyberlogic.net \
 -s bl.deadbeef.com \
 -s spamtrap.drbl.drand.net \
 -s spamsources.fabel.dk \
 -s 0spam.fusionzero.com \
 -s mail-abuse.blacklist.jippg.org \
 -s korea.services.net \
 -s spamguard.leadmon.net \
 -s ix.dnsbl.manitu.net \
 -s relays.nether.net \
 -s dnsbl.njabl.org \
 -s bhnc.njabl.org \
 -s no-more-funn.moensted.dk \
 -s rbl.orbitrbl.com \
 -s psbl.surriel.com \
 -s dyna.spamrats.com \
 -s noptr.spamrats.com \
 -s spam.spamrats.com \
 -s dnsbl.sorbs.net \
 -s spam.dnsbl.sorbs.net \
 -s bl.spamcannibal.org \
 -s bl.spamcop.net \
 -s pbl.spamhaus.org \
 -s sbl.spamhaus.org \
 -s xbl.spamhaus.org \
 -s ubl.unsubscore.com \
 -s dnsbl-1.uceprotect.net \
 -s dnsbl-2.uceprotect.net \
 -s dnsbl-3.uceprotect.net \
 -s db.wpbl.info \
 -s access.redhawk.org \
 -s blacklist.sci.kun.nl \
 -s bl.technovision.dk \
 -s dnsbl.kempt.net \
 -s dnsbl.solid.net \
 -s dul.ru \
 -s forbidden.icm.edu.pl \
 -s hil.habeas.com \
 -s rbl.schulte.org \
 -s sbl-xbl.spamhaus.org
CHECK_RBL OK - nagios.org BLACKLISTED on 0 servers of 42 | servers=0;0;0 time=31s;;

or

$ check_rbl --extra-opts=rbl@check_rbl.ini -t 120 -H nagios.org -v

with check_rbl.ini

[rbl]
server=cbl.abuseat.org
server=dnsbl.cyberlogic.net
server=bl.deadbeef.com
server=spamtrap.drbl.drand.net
server=spamsources.fabel.dk
server=0spam.fusionzero.com
server=mail-abuse.blacklist.jippg.org
server=korea.services.net
server=spamguard.leadmon.net
server=ix.dnsbl.manitu.net
server=relays.nether.net
server=dnsbl.njabl.org
server=bhnc.njabl.org
server=no-more-funn.moensted.dk
server=rbl.orbitrbl.com
server=psbl.surriel.com
server=dyna.spamrats.com
server=noptr.spamrats.com
server=spam.spamrats.com
; this keeps all zones of sorbs excl. spam
server=dnsbl.sorbs.net
server=spam.dnsbl.sorbs.net
server=bl.spamcannibal.org
server=bl.spamcop.net
server=pbl.spamhaus.org
server=sbl.spamhaus.org
server=xbl.spamhaus.org
server=ubl.unsubscore.com
server=dnsbl-1.uceprotect.net
server=dnsbl-2.uceprotect.net
server=dnsbl-3.uceprotect.net
server=db.wpbl.info
server=access.redhawk.org
server=blacklist.sci.kun.nl
server=bl.technovision.dk
server=dnsbl.kempt.net
server=dnsbl.solid.net
server=dul.ru
server=forbidden.icm.edu.pl
server=hil.habeas.com
server=rbl.schulte.org
server=sbl-xbl.spamhaus.org

; these are rather slow
;server=bl.csma.biz
;server=sbl.csma.biz
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.