On Sat, 2011-03-12 at 00:05 +0400, Hamad Ali wrote:
> However, I would like to disable all network tests (each mail takes
> ~10 seconds!). Except that I dunno how to do it the neat way. 

That seems a little bit excessive. Are you sure this is due to DNS
queries?

If so, it would appear you are having a problem with your DNS server.
Not performing network checks would merely be a band-aid, fixing the DNS
issue would be much more effective. (Note that the first 'nameserver'
entry from /etc/resolv.conf is being used exclusively.)

> Will the tests be disabled if their score is 0? I know that would lead
> into disabling the effect of a rule on the decision making of SA (i.e.
> Spam/Ham marking), but would SA exclude them from running too?

Merely setting the scores to 0 is not sufficient, some sub-rules still
would be run.

Disabling network tests will result in SA using a different score-set,
and thus scores for all rules still being run.

> I need to disable all BLs, DNS queries, and anything that uses the
> internet. Kindly advise.

  skip_rbl_checks 1
  skip_uribl_checks 1    # since SA 3.3.x

Especially with SA 3.2.x, the following might help, too. Otherwise,
URIBL checks might still be performed, IIRC.

  dns_available no

Other than the above config (to be placed in site-wide local.cf),
there's also the spamd -L option for local checks only.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to