On Thu, 3 Aug 2017, Kris Deugau wrote:

Ian Zimmerman wrote:
On 2017-08-03 10:38, sha...@shanew.net wrote:

The most common ones that I make use of are "multiple" and "maxhits"
in order to allow a rule to be scored for each time it hits, but to
stop counting after some threshold.  I also use the "net" tflag so
that RBL checks only run when a net-based ruleset is loaded.

Where is the concept of "ruleset" in general documented, and in
particular what makes it "net-based"?  Not in Mail::SpamAssassin::Conf.


"Ruleset" is a somewhat fuzzy term that depends on context - it could refer to a single rule, a cluster of rules in a single file, a group of files, or "all active rules files". It's not a formal definition within SpamAssassin. In this case it's referring to one rule - tflags are only set on a per-rule basis.

Any net-based rule is one that relies on a working Internet connection to do a data lookup - most commonly DNS lookups, but rules for eg Vipul's Razor (RAZOR_* rules), DCC, or Pyzor are also considered net rules since they do a lookup against a network service somewhere.

More to the point, if you look at the "spamd" documentation for the "-L" flag you'll see:

       -L, --local
Perform only local tests on all mail. In other words, skip DNS and other network tests. Works the same as the
           "-L" flag to spamassassin(1).

So all "net-based" rules (as indicated by intrinsic coding or the tflags 'net') get ignored when running in --local mode.


--
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to