diff options
author | korgoth1 <vladislav.stakhov@gmail.com> | 2020-02-28 20:52:45 +0300 |
---|---|---|
committer | korgoth1 <vladislav.stakhov@gmail.com> | 2020-02-28 20:52:45 +0300 |
commit | ff5476957ac106ac44d73f30c5d13935370b7048 (patch) | |
tree | 78604d3a5c1524e3cf7ed8157e297ba562915cd2 /test/functional/configs | |
parent | ca991102df9309af17ea0f5b5d1035b9b41230c1 (diff) | |
download | rspamd-ff5476957ac106ac44d73f30c5d13935370b7048.tar.gz rspamd-ff5476957ac106ac44d73f30c5d13935370b7048.zip |
[Test] URL compose map
Diffstat (limited to 'test/functional/configs')
-rw-r--r-- | test/functional/configs/maps/url_compose_map.list | 1 | ||||
-rw-r--r-- | test/functional/configs/plugins.conf | 5 | ||||
-rw-r--r-- | test/functional/configs/surbl.conf | 12 |
3 files changed, 16 insertions, 2 deletions
diff --git a/test/functional/configs/maps/url_compose_map.list b/test/functional/configs/maps/url_compose_map.list new file mode 100644 index 000000000..da65ffb0f --- /dev/null +++ b/test/functional/configs/maps/url_compose_map.list @@ -0,0 +1 @@ +*.dirty.sanchez.com
\ No newline at end of file diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf index 025f6c55f..17f004843 100644 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@ -665,6 +665,11 @@ options = { type = a; replies = ["127.0.0.3"]; }, + { + name = "very.dirty.sanchez.com.test7.uribl"; + type = a; + replies = ["127.0.0.2"]; + }, # TODO: add IPv6 tests ]; } diff --git a/test/functional/configs/surbl.conf b/test/functional/configs/surbl.conf index 1ebf2d97f..764d5edd8 100644 --- a/test/functional/configs/surbl.conf +++ b/test/functional/configs/surbl.conf @@ -1,7 +1,10 @@ surbl { "whitelist" = [ "rspamd-test.com" - ] + ]; + "url_compose_map" = [ + "${TESTDIR}/configs/maps/url_compose_map.list", + ]; rules { "RSPAMD_URIBL" { suffix = "test.uribl"; @@ -64,7 +67,12 @@ EOD; end EOD; } - + "BAD_SUBDOMAIN" { + suffix = "test7.uribl"; + check_dkim = true; + check_emails = false; + images = true; + } } } |