User Tools

Site Tools


reference:spamrules_statement_dnsbl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
reference:spamrules_statement_dnsbl [2011/08/31 15:25]
simon created
reference:spamrules_statement_dnsbl [2020/10/23 16:07] (current)
paul [Example]
Line 8: Line 8:
  
 **See also** **See also**
-  * [[spamrules_statement_startdnsbl|StartDNSBL]] - Can be used in advance of DNSBL being called, to improve script efficiency+  * [[spamrules_statement_startdnsbl|StartDNSBL]] - Can be used in advance of **DNSBL** being called, to improve script efficiency
  
 =====Example===== =====Example=====
-The following example returns the result of the DNS blacklist lookup into the ${dnsresult} variable+The following example returns the result of the DNS blacklist lookup into the ${dnsresult} variable, then compares that to a value and, if it matches, logs the result and adds onto the spam filter score. 
 <​code>​ <​code>​
 DNSBL ${SenderIP} sbl.spamhaus.org dnsresult DNSBL ${SenderIP} sbl.spamhaus.org dnsresult
 +IfMatch ${dnsresult} "/​^127\.0\.0\.2$/"​
 +  Log "​(${SenderIP}) found in SBL.Spamhaus (${dnsresult})"​
 +  ${Score} += 100 [sbl.spamhaus.org]
 +EndIf
 </​code>​ </​code>​
  
  
reference/spamrules_statement_dnsbl.1314804344.txt.gz · Last modified: 2018/11/14 10:44 (external edit)