Skip to content

Commit

Permalink
[Test] WHITELIST_SURBL for check
Browse files Browse the repository at this point in the history
  • Loading branch information
korgoth1 committed Sep 6, 2019
1 parent c33d98c commit eb35d6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions test/functional/cases/340_surbl.robot
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions test/functional/configs/surbl.conf
@@ -1,4 +1,7 @@
surbl {
"whitelist" = [
"rspamd-test.com"
]
rules {
"RSPAMD_URIBL" {
suffix = "test.uribl";
Expand All @@ -18,15 +21,13 @@ EOD;
no_ip = true;
check_emails = true;
check_dkim = true;

ips = {
# spam domain
DBL_SPAM = "127.0.1.2";
# phish domain
DBL_PHISH = "127.0.1.4";
}
}

"URIBL_MULTI" {
suffix = "test3.uribl";
check_dkim = true;
Expand Down
4 changes: 4 additions & 0 deletions test/functional/messages/whitelist.eml
@@ -0,0 +1,4 @@
Content-Type: text/plain

http://rspamd.com
http://test.rspamd.example.com

0 comments on commit eb35d6e

Please sign in to comment.