Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ability to specify RBL return code #1

Open
matteocorti opened this issue Oct 21, 2015 · 0 comments
Open

Provide ability to specify RBL return code #1

matteocorti opened this issue Oct 21, 2015 · 0 comments
Assignees

Comments

@matteocorti
Copy link
Owner

From @matteocorti on October 16, 2015 13:30

Original reporter: michael@orlitzky.com

Some RBLs return different codes to indicate various levels of blacklisting. This can cause trouble when a single RBL returns both black- and white-listings from the same zone. For example,

  1. http://mailspike.net/usage.html
  2. http://wiki.ctyme.com/index.php/Spam_DNS_Lists

It would be nice to be able to specify the return code(s) that we're interested in. So for mailspike, we would only want to trigger nagios warnings for 127.0.0.1{0,1,2}.

We use plugins.ini to list our RBLs so it would be awesome if the return codes could be specified there, too.

An example syntax is used by the postfix postscreen daemon. The syntax is specified somewhat here:

(obviously, you wouldn't need the points multipliers at the end). Our postscreen configuration might be easier to parse than the description from the documentation:

postscreen_dnsbl_sites =
        psbl.surriel.com*2,
        bl.spamcop.net*2,
        zen.spamhaus.org*2,
        b.barracudacentral.org*2,
    bl.mailspike.net=127.0.0.[2;10;11]*2,
    bl.mailspike.net=127.0.0.12,
    bl.spameatingmonkey.net,
    dnsbl.sorbs.net,
    dnsbl.ahbl.org,
    ubl.unsubscore.com,
    dnsbl-1.uceprotect.net,
    hostkarma.junkemailfilter.com=127.0.0.2,
    db.wpbl.info

Copied from original issue: matteocorti/nagios_plugins#121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant