summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2019-10-01 19:12:44 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2019-10-01 19:12:44 +0300
commit062f1a1150e2ec01be33a5d721f652cd160fb155 (patch)
treeb51bb724ba4426f6e37bc4814606708a7478bd7a /test
parent7686cd892fb0d0ed8bbb8c0a83709af82779df8f (diff)
downloadrspamd-062f1a1150e2ec01be33a5d721f652cd160fb155.tar.gz
rspamd-062f1a1150e2ec01be33a5d721f652cd160fb155.zip
[Test] Emailbl domainonly + Emailbl full adress with subdomain
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/340_surbl.robot5
-rw-r--r--test/functional/configs/plugins.conf5
-rw-r--r--test/functional/configs/surbl.conf1
-rw-r--r--test/functional/messages/emailbltext3.eml4
4 files changed, 14 insertions, 1 deletions
diff --git a/test/functional/cases/340_surbl.robot b/test/functional/cases/340_surbl.robot
index 9fb4f4d78..2531032b1 100644
--- a/test/functional/cases/340_surbl.robot
+++ b/test/functional/cases/340_surbl.robot
@@ -107,6 +107,11 @@ EMAILBL full subdomain adress
${result} = Scan Message With Rspamc ${TESTDIR}/messages/emailbltext2.eml
Should Contain ${result.stdout} RSPAMD_EMAILBL_FULL (
+EMAILBL full subdomain adress & domain only
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/emailbltext3.eml
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_DOMAINONLY (0.00)[baddomain.com:email]
+ Should Contain ${result.stdout} RSPAMD_EMAILBL_FULL (0.00)[user.subdomain.baddomain.com:email]
+
EMAILBL REPLY TO full adress
${result} = Scan Message With Rspamc ${TESTDIR}/messages/replyto.eml
Should Contain ${result.stdout} RSPAMD_EMAILBL_FULL (
diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf
index 983b6e94a..f57314caa 100644
--- a/test/functional/configs/plugins.conf
+++ b/test/functional/configs/plugins.conf
@@ -555,6 +555,11 @@ options = {
replies = ["127.0.0.2"];
},
{
+ name = "user.subdomain.baddomain.com.test5.uribl";
+ type = a;
+ replies = ["127.0.0.2"];
+ },
+ {
name = "example.com.test2.uribl";
type = a;
replies = ["127.0.1.2"];
diff --git a/test/functional/configs/surbl.conf b/test/functional/configs/surbl.conf
index 5c244e257..1ebf2d97f 100644
--- a/test/functional/configs/surbl.conf
+++ b/test/functional/configs/surbl.conf
@@ -75,7 +75,6 @@ emails {
rules {
"RSPAMD_EMAILBL_FULL" {
dnsbl = "test5.uribl";
- domain_only = false;
replyto = true;
}
"RSPAMD_EMAILBL_DOMAINONLY" {
diff --git a/test/functional/messages/emailbltext3.eml b/test/functional/messages/emailbltext3.eml
new file mode 100644
index 000000000..414a0f51c
--- /dev/null
+++ b/test/functional/messages/emailbltext3.eml
@@ -0,0 +1,4 @@
+Content-Type: text/plain
+
+user@baddomain.com
+user@subdomain.baddomain.com \ No newline at end of file