mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Test] WHITELIST_SURBL for check
This commit is contained in:
parent
c33d98cf77
commit
eb35d6e29d
@ -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
|
||||
|
@ -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;
|
||||
|
4
test/functional/messages/whitelist.eml
Normal file
4
test/functional/messages/whitelist.eml
Normal file
@ -0,0 +1,4 @@
|
||||
Content-Type: text/plain
|
||||
|
||||
http://rspamd.com
|
||||
http://test.rspamd.example.com
|
Loading…
Reference in New Issue
Block a user