/[Apache-SVN]/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
ViewVC logotype

Diff of /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 818443, Thu Sep 24 10:57:17 2009 UTC revision 831320, Fri Oct 30 15:09:04 2009 UTC
# Line 35  those IP addresses. This is quite effec Line 35  those IP addresses. This is quite effec
35    
36  =over 4  =over 4
37    
38    =item skip_uribl_checks ( 0 | 1 )   (default: 0)
39    
40    Turning on the skip_uribl_checks setting will disable the URIDNSBL plugin.
41    
42    By default, SpamAssassin will run URI DNSBL checks. Individual URI blocklists
43    may be disabled selectively by setting a score of a corresponding rule to 0
44    or through the uridnsbl_skip_domain parameter.
45    
46    See also a related configuration parameter skip_rbl_checks,
47    which controls the DNSEval plugin (documented in the Conf man page).
48    
49    =back
50    
51    =over 4
52    
53  =item uridnsbl_skip_domain domain1 domain2 ...  =item uridnsbl_skip_domain domain1 domain2 ...
54    
55  Specify a domain, or a number of domains, which should be skipped for the  Specify a domain, or a number of domains, which should be skipped for the
# Line 241  sub parsed_metadata { Line 256  sub parsed_metadata {
256    my ($self, $opts) = @_;    my ($self, $opts) = @_;
257    my $scanner = $opts->{permsgstatus};    my $scanner = $opts->{permsgstatus};
258    
259      return 0  if $scanner->{main}->{conf}->{skip_uribl_checks};
260    
261    if (!$scanner->is_dns_available()) {    if (!$scanner->is_dns_available()) {
262      $self->{dns_not_available} = 1;      $self->{dns_not_available} = 1;
263      return;      return 0;
264    } else {    } else {
265      # due to re-testing dns may become available after being unavailable      # due to re-testing dns may become available after being unavailable
266      # DOS: I don't think dns_not_available is even used anymore      # DOS: I don't think dns_not_available is even used anymore
# Line 375  sub set_config { Line 392  sub set_config {
392    my @cmds;    my @cmds;
393    
394    push(@cmds, {    push(@cmds, {
395        setting => 'skip_uribl_checks',
396        default => 0,
397        type => $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL,
398      });
399    
400      push(@cmds, {
401      setting => 'uridnsbl_max_domains',      setting => 'uridnsbl_max_domains',
402      is_admin => 1,      is_admin => 1,
403      default => 20,      default => 20,

Legend:
Removed from v.818443  
changed lines
  Added in v.831320

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2