mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Test] Moar surbl tests
This commit is contained in:
parent
91443f3b8a
commit
4985202296
@ -41,6 +41,17 @@ SURBL Example.ru domain
|
||||
Should Not Contain ${result.stdout} DBL_PHISH
|
||||
Should Not Contain ${result.stdout} URIBL_BLACK
|
||||
|
||||
SURBL Example.ru ZEN domain
|
||||
${result} = Scan Message With Rspamc ${TESTDIR}/messages/url7.eml
|
||||
Should Contain ${result.stdout} URIBL_SBL_CSS (
|
||||
Should Contain ${result.stdout} URIBL_XBL (
|
||||
Should Contain ${result.stdout} URIBL_PBL (
|
||||
Should Not Contain ${result.stdout} URIBL_SBL (
|
||||
Should Not Contain ${result.stdout} DBL_SPAM (
|
||||
Should Not Contain ${result.stdout} RSPAMD_URIBL (
|
||||
Should Not Contain ${result.stdout} DBL_PHISH (
|
||||
Should Not Contain ${result.stdout} URIBL_BLACK (
|
||||
|
||||
*** Keywords ***
|
||||
Surbl Setup
|
||||
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/surbl.conf
|
||||
|
@ -564,6 +564,22 @@ options = {
|
||||
type = a;
|
||||
replies = ["127.0.0.12"];
|
||||
},
|
||||
{
|
||||
name = "example.ru";
|
||||
type = a;
|
||||
replies = ["8.8.8.8", "8.8.8.9"];
|
||||
},
|
||||
{
|
||||
name = "8.8.8.8.test4.uribl";
|
||||
type = a;
|
||||
replies = ["127.0.0.4", "127.0.0.11"];
|
||||
},
|
||||
{
|
||||
name = "9.8.8.8.test4.uribl";
|
||||
type = a;
|
||||
replies = ["127.0.0.3"];
|
||||
},
|
||||
# TODO: add IPv6 tests
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -38,5 +38,17 @@ EOD;
|
||||
URIBL_RED = 8;
|
||||
}
|
||||
}
|
||||
"SPAMHAUS_ZEN_URIBL" {
|
||||
suffix = "test4.uribl";
|
||||
resolve_ip = true;
|
||||
check_emails = true;
|
||||
ips {
|
||||
URIBL_SBL = "127.0.0.2";
|
||||
URIBL_SBL_CSS = "127.0.0.3";
|
||||
URIBL_XBL = ["127.0.0.4", "127.0.0.5", "127.0.0.6", "127.0.0.7"];
|
||||
URIBL_PBL = ["127.0.0.10", "127.0.0.11"];
|
||||
URIBL_DROP = "127.0.0.9";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user