diff options
author | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-30 20:59:51 +0300 |
---|---|---|
committer | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-30 20:59:51 +0300 |
commit | 671e0c51fd8f7b6e8ef7a6579fb4e03f9b165caf (patch) | |
tree | 74f927fb1fc3d43ba62e0af1ca45135357752bdf | |
parent | 6ea2346e8f2baeeadd9dd5e61610281f2838ca07 (diff) | |
download | rspamd-671e0c51fd8f7b6e8ef7a6579fb4e03f9b165caf.tar.gz rspamd-671e0c51fd8f7b6e8ef7a6579fb4e03f9b165caf.zip |
[Test] Emailbl subdomain + Emailbl Replyto subdomain
-rw-r--r-- | test/functional/cases/340_surbl.robot | 9 | ||||
-rw-r--r-- | test/functional/configs/plugins.conf | 5 | ||||
-rw-r--r-- | test/functional/messages/emailbltext2.eml | 3 | ||||
-rw-r--r-- | test/functional/messages/replytosubdomain.eml | 5 |
4 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/cases/340_surbl.robot b/test/functional/cases/340_surbl.robot index 87d02dd29..9fb4f4d78 100644 --- a/test/functional/cases/340_surbl.robot +++ b/test/functional/cases/340_surbl.robot @@ -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 diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf index bb4b97e1d..983b6e94a 100644 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@ -545,6 +545,11 @@ options = { 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; replies = ["127.0.0.2"]; diff --git a/test/functional/messages/emailbltext2.eml b/test/functional/messages/emailbltext2.eml new file mode 100644 index 000000000..164288b88 --- /dev/null +++ b/test/functional/messages/emailbltext2.eml @@ -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 index 000000000..a87ec9ae8 --- /dev/null +++ b/test/functional/messages/replytosubdomain.eml @@ -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 |