]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Emailbl domainonly + Emailbl full adress with subdomain 3061/head
authorkorgoth1 <vladislav.stakhov@gmail.com>
Tue, 1 Oct 2019 16:12:44 +0000 (19:12 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Tue, 1 Oct 2019 16:12:44 +0000 (19:12 +0300)
test/functional/cases/340_surbl.robot
test/functional/configs/plugins.conf
test/functional/configs/surbl.conf
test/functional/messages/emailbltext3.eml [new file with mode: 0644]

index 9fb4f4d788158535b55d913d02b4333ea6ee7f9d..2531032b18632cbc4fe6a7b8af97aebf4c726dfe 100644 (file)
@@ -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 (
index 983b6e94a7d40c3449405a9487b1d2316d773894..f57314caa772f7352dca9237d8e1d8818c57a714 100644 (file)
@@ -554,6 +554,11 @@ options = {
           type = a;
           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;
index 5c244e25760ffaf2ef7fffa682c27075cdbae78c..1ebf2d97fd1f52eb6b7b3fe4c22e308a6023abac 100644 (file)
@@ -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 (file)
index 0000000..414a0f5
--- /dev/null
@@ -0,0 +1,4 @@
+Content-Type: text/plain
+
+user@baddomain.com
+user@subdomain.baddomain.com
\ No newline at end of file