mikea writes:
>I _think_ that the rules are constructed like this in the general 
>case, but would really appreciate guidance: 
>
>#==========================================
>header CHECK_DNSBL_NAME        rbleval:check_rbl('RESULT_NAME', 'DNSBL_SERVER_NAME')
>describe CHECK_DNSBL_NAME      Insert CHECK_DNSBL_NAME description here
>tflags CHECK_DNSBL_NAME net
>#==========================================
>header CHECK_RESULTS   rbleval:check_rbl_results_for('RESULT_NAME', '127.0.0.4')
>describe CHECK_RESULTS Insert CHECK_RESULTS description here 
>score CHECK_RESULTS    5 5 5 5
>#==========================================

It works like:

 header CHECK_DNSBL_NAME    rbleval:check_rbl('setname', 'zone')
 describe CHECK_DNSBL_NAME  Insert CHECK_DNSBL_NAME description here
 tflags CHECK_DNSBL_NAME    net

 header CHECK_RESULTS       rbleval:check_rbl_results_for('setname', '127.0.0.4')
 describe CHECK_RESULTS     Insert CHECK_RESULTS description here
 score CHECK_RESULTS        5 5 5 5

The setname must match between the two -- as it's used to match one with
the other.   SpamAssassin must be running without the -L switch.

If *any* A record exists in the zone, CHECK_DNSBL_NAME will fire -- so
you may need to set its score to 0.001 so it does not incur a hit,
if you don't want it to.  Then CHECK_RESULTS will run after that
and examine the exact IP returned.

Note that your example used bl.odot.org and cbl.odot.org; this could
explain the failure assuming it wasn't a typo ;)

BTW, in 2.60, it looks like someone renamed
rbleval:check_rbl_results_for() -- it now seems to be called
rbleval:check_rbl_sub().  (this was probably not a good idea for backwards
compat reasons.)

--j.



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to