[Test] WHITELIST_SURBL for check

This commit is contained in:
korgoth1 2019-09-06 13:29:02 +03:00
parent c33d98cf77
commit eb35d6e29d
3 changed files with 11 additions and 2 deletions

View File

@ -92,6 +92,10 @@ SURBL example.com encoded url in subject
Should Not Contain ${result.stdout} DBL_PHISH (
Should Not Contain ${result.stdout} URIBL_BLACK (
WHITELIST
${result} = Scan Message With Rspamc ${TESTDIR}/messages/whitelist.eml
Should Contain ${result.stdout} RSPAMD_URIBL (
*** Keywords ***
Surbl Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/surbl.conf

View File

@ -1,4 +1,7 @@
surbl {
"whitelist" = [
"rspamd-test.com"
]
rules {
"RSPAMD_URIBL" {
suffix = "test.uribl";
@ -18,7 +21,6 @@ EOD;
no_ip = true;
check_emails = true;
check_dkim = true;
ips = {
# spam domain
DBL_SPAM = "127.0.1.2";
@ -26,7 +28,6 @@ EOD;
DBL_PHISH = "127.0.1.4";
}
}
"URIBL_MULTI" {
suffix = "test3.uribl";
check_dkim = true;

View File

@ -0,0 +1,4 @@
Content-Type: text/plain
http://rspamd.com
http://test.rspamd.example.com