diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-09-05 15:08:51 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-09-05 15:14:22 +0200 |
commit | 745bc065bb4ad94296bb61c2d1338fb9f433025f (patch) | |
tree | a11d1645547ed43572347616947686209c7468c8 /test/functional/configs/whitelist.conf | |
parent | def15a79046bdee020d691c9ff70c6af1dcc25aa (diff) | |
download | rspamd-745bc065bb4ad94296bb61c2d1338fb9f433025f.tar.gz rspamd-745bc065bb4ad94296bb61c2d1338fb9f433025f.zip |
[Test] Some tests for whitelist module
Diffstat (limited to 'test/functional/configs/whitelist.conf')
-rw-r--r-- | test/functional/configs/whitelist.conf | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/test/functional/configs/whitelist.conf b/test/functional/configs/whitelist.conf new file mode 100644 index 000000000..9b8c3af63 --- /dev/null +++ b/test/functional/configs/whitelist.conf @@ -0,0 +1,101 @@ +dmarc {} + +whitelist { + + rules { + "BLACKLIST_DDS" = { + blacklist = true; + valid_dkim = true; + valid_dmarc = true; + valid_spf = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = 3.0 + } + + "WHITELIST_DDS" = { + valid_dkim = true; + valid_dmarc = true; + valid_spf = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = -3.0 + } + + "WHITELIST_DKIM" = { + valid_dkim = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + description = "Mail comes from the whitelisted domain and has a valid DKIM signature"; + score = -1.0 + } + + "BLACKLIST_DKIM" = { + blacklist = true; + valid_dkim = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = 3.0 + } + + "WHITELIST_SPF" = { + valid_spf = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = -1.0 + description = "Mail comes from the whitelisted domain and has a valid SPF policy"; + } + + "BLACKLIST_SPF" = { + blacklist = true; + valid_spf = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = 3.0 + } + + "WHITELIST_DMARC_DKIM" = { + valid_dmarc = true; + valid_dkim = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = -2.0; + description = "Mail comes from the whitelisted domain and has valid DMARC and DKIM policies"; + } + + "WHITELIST_DMARC" = { + valid_dmarc = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = -2.0; + description = "Mail comes from the whitelisted domain and has valid DMARC policy"; + } + + "BLACKLIST_DMARC" = { + blacklist = true; + valid_dmarc = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = 3.0; + } + + "STRICT_DMARC" = { + strict = true; + valid_dmarc = true; + domains = [ + "${TESTDIR}/configs/maps/domains.list", + ]; + score = -3.0; + } + + } +} |