]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Emailbl subdomain + Emailbl Replyto subdomain
authorkorgoth1 <vladislav.stakhov@gmail.com>
Mon, 30 Sep 2019 17:59:51 +0000 (20:59 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Mon, 30 Sep 2019 17:59:51 +0000 (20:59 +0300)
test/functional/cases/340_surbl.robot
test/functional/configs/plugins.conf
test/functional/messages/emailbltext2.eml [new file with mode: 0644]
test/functional/messages/replytosubdomain.eml [new file with mode: 0644]

index 87d02dd2996bc2bed5406855bbab5547c5a8971f..9fb4f4d788158535b55d913d02b4333ea6ee7f9d 100644 (file)
@@ -103,6 +103,10 @@ EMAILBL full adress & domain only
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY (
 
+EMAILBL full subdomain adress
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/emailbltext2.eml
+  Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
+
 EMAILBL REPLY TO full adress
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/replyto.eml
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
@@ -113,6 +117,11 @@ EMAILBL REPLY TO domain only
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY (
   Should Not Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
 
+EMAILBL REPLY TO full subdomain adress
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/replytosubdomain.eml
+  Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
+  Should Not Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY ( 
+
 
 *** Keywords ***
 Surbl Setup
index bb4b97e1d45fa299c219c202e020ef0d0bd9ce61..983b6e94a7d40c3449405a9487b1d2316d773894 100644 (file)
@@ -544,6 +544,11 @@ options = {
           type = a;
           replies = ["127.0.0.2"];
         },
+        {
+          name = "user.subdomain.emailbl.com.test5.uribl";
+          type = a;
+          replies = ["127.0.0.2"];
+        },
         {
           name = "baddomain.com.test6.uribl";
           type = a;
diff --git a/test/functional/messages/emailbltext2.eml b/test/functional/messages/emailbltext2.eml
new file mode 100644 (file)
index 0000000..164288b
--- /dev/null
@@ -0,0 +1,3 @@
+Content-Type: text/plain
+
+user@subdomain.emailbl.com
\ No newline at end of file
diff --git a/test/functional/messages/replytosubdomain.eml b/test/functional/messages/replytosubdomain.eml
new file mode 100644 (file)
index 0000000..a87ec9a
--- /dev/null
@@ -0,0 +1,5 @@
+Reply-to: user@subdomain.emailbl.com
+From: xxx@abrakadabra.com
+Content-Type: text/plain
+
+salkdmaslkd
\ No newline at end of file