Browse Source

[Test] Emailbl domainonly + Emailbl full adress with subdomain

pull/3061/head
korgoth1 6 years ago
parent
commit
062f1a1150
  1. 5
      test/functional/cases/340_surbl.robot
  2. 5
      test/functional/configs/plugins.conf
  3. 1
      test/functional/configs/surbl.conf
  4. 4
      test/functional/messages/emailbltext3.eml

5
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 (

5
test/functional/configs/plugins.conf

@ -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;

1
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" {

4
test/functional/messages/emailbltext3.eml

@ -0,0 +1,4 @@
Content-Type: text/plain
user@baddomain.com
user@subdomain.baddomain.com
Loading…
Cancel
Save