aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/surbl.conf
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2019-08-30 16:34:49 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2019-08-30 16:34:49 +0300
commita8f11e58cb9c7c668ac8ad4bb5dbfebb650ceda0 (patch)
tree2dc3ae1c22f61abfd14b42f1b9e72f4753a84cc9 /test/functional/configs/surbl.conf
parentd1ad30ae1aad11e4bde0d889d9fd19b1fe41c499 (diff)
downloadrspamd-a8f11e58cb9c7c668ac8ad4bb5dbfebb650ceda0.tar.gz
rspamd-a8f11e58cb9c7c668ac8ad4bb5dbfebb650ceda0.zip
test uribll in image
Diffstat (limited to 'test/functional/configs/surbl.conf')
-rw-r--r--test/functional/configs/surbl.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/configs/surbl.conf b/test/functional/configs/surbl.conf
index 85074955c..967c170ae 100644
--- a/test/functional/configs/surbl.conf
+++ b/test/functional/configs/surbl.conf
@@ -5,6 +5,7 @@ surbl {
suffix = "test.uribl";
check_dkim = true;
check_emails = true;
+ images = false;
process_script =<<EOD
function(url, suffix)
local cr = require "rspamd_cryptobox_hash"
@@ -50,5 +51,18 @@ EOD;
URIBL_DROP = "127.0.0.9";
}
}
+ "RSPAMD_URIBL_IMAGES" {
+ suffix = "test.uribl";
+ check_dkim = true;
+ check_emails = true;
+ images = true;
+ process_script =<<EOD
+ function(url, suffix)
+ local cr = require "rspamd_cryptobox_hash"
+ local h = cr.create(url):base32():sub(1, 32)
+ return string.format("%s.%s", h, suffix)
+end
+EOD;
+ }
}
} \ No newline at end of file