diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:12:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:12:56 +0100 |
commit | ecdc74fd8553ccd9b9027125130a4dd83a3fc64f (patch) | |
tree | 3d4a23d23555ad13f91ef23d1428899a4eafc755 /test/functional/configs/stats.conf | |
parent | 32b15a1925b1fda8e0ed16a37d9c22b060b78512 (diff) | |
download | rspamd-ecdc74fd8553ccd9b9027125130a4dd83a3fc64f.tar.gz rspamd-ecdc74fd8553ccd9b9027125130a4dd83a3fc64f.zip |
Add learning functional tests.
Diffstat (limited to 'test/functional/configs/stats.conf')
-rw-r--r-- | test/functional/configs/stats.conf | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf new file mode 100644 index 000000000..d1ff23e62 --- /dev/null +++ b/test/functional/configs/stats.conf @@ -0,0 +1,61 @@ +options = { + filters = ["spf", "dkim", "regexp"] + url_tld = "${CURDIR}/lua/unit/test_tld.dat" + dns = { + nameserver = "8.8.8.8" + } + pidfile = "/tmp/rspamd-bats.pid" +} +logging = { + type = "file", + level = "debug" + filename = "/tmp/rspamd-bats.log" +} +metric = { + name = "default", + actions = { + reject = 100500, + } + unknown_weight = 1 +} + +worker { + type = normal + bind_socket = localhost:56789 + count = 1 + keypair { + pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty"; + privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy"; + } +} +worker { + type = controller + bind_socket = localhost:56790 + count = 1 + keypair { + pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty"; + privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy"; + } + secure_ip = ["127.0.0.1", "::1"]; +} + +classifier { + tokenizer { + name = "osb"; + } + statfile { + symbol = BAYES_SPAM; + path = /tmp/rspamd-bats-bayes.spam; + size = 1M; + } + statfile { + symbol = BAYES_HAM; + path = /tmp/rspamd-bats-bayes.ham; + size = 1M; + } + + cache { + name = "sqlite3"; + path = /tmp/rspamd-bats-cache.sqlite; + } +} |