This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:spamrules_statement_dnsbl [2018/11/14 10:45] – external edit 127.0.0.1 | reference:spamrules_statement_dnsbl [2020/10/23 17:07] (current) – [Example] paul | ||
---|---|---|---|
Line 11: | Line 11: | ||
=====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. |
< | < | ||
DNSBL ${SenderIP} sbl.spamhaus.org dnsresult | DNSBL ${SenderIP} sbl.spamhaus.org dnsresult | ||
+ | IfMatch ${dnsresult} "/ | ||
+ | Log " | ||
+ | ${Score} += 100 [sbl.spamhaus.org] | ||
+ | EndIf | ||
</ | </ | ||