spamassassin-dev December 2011 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 6728] DNSBLs need a way to turn off queri

[Bug 6728] DNSBLs need a way to turn off queries based on BLOCKED rules triggering

From: <bugzilla-daemon_at_nospam>
Date: Thu Dec 15 2011 - 17:18:36 GMT
To: dev@spamassassin.apache.org

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6728

Henrik Krohns <hege@hege.li> changed:

           What |Removed |Added
----------------------------------------------------------------------------
                 CC| |hege@hege.li

--- Comment #5 from Henrik Krohns <hege@hege.li> 2011-12-15 17:18:36 UTC ---
-1 for spamd specific
-1 for any locking whatsoever
-1 for multiplier (what's the point? 1 query per 1 hour or 2 hours makes no
difference, but would need more complex state processing)

Possibly the simplest and cheapest solution would be using filenames for
keeping state.

When block is hit: create file LOCAL_STATE_DIR/dnsblock.<identifier>

The identifier should come from the rbl identifier/name, in this case "dnswl":
eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.255$')

Then rbl function can simply stat() if LOCAL_STATE_DIR/dnsblock.<identifier>
exists. If mtime is > 1 hour, just unlink() the file.

My slow linux VPS benchmarks at 715000 stat calls per second testing for a set
of 10 different non-existing filenames, so performance is a non-issue.

Proposed config "block_disable" would need to refer to identifier instead of a
rule name.

-- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.