| 1 |
options = { |
| 2 |
filters = ["spf", "dkim", "regexp"] |
| 3 |
pidfile = "${RSPAMD_TMPDIR}/rspamd.pid" |
| 4 |
lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua" |
| 5 |
dns { |
| 6 |
retransmits = 2; |
| 7 |
fake_records = [{ # ed25519 |
| 8 |
name = "test._domainkey.example.com"; |
| 9 |
type = txt; |
| 10 |
replies = ["k=ed25519; p=yi50DjK5O9pqbFpNHklsv9lqaS0ArSYu02qp1S0DW1Y="]; |
| 11 |
}]; |
| 12 |
} |
| 13 |
} |
| 14 |
clickhouse { |
| 15 |
# Push update when 1000 records are collected (1000 if unset) |
| 16 |
limit = 1; |
| 17 |
# IP:port of Clickhouse server |
| 18 |
server = "localhost:18123"; |
| 19 |
allow_local = true; |
| 20 |
retention { |
| 21 |
# disabled by default |
| 22 |
enable = true; |
| 23 |
# drop | detach, please refer to ClickHouse docs for details |
| 24 |
# http://clickhouse-docs.readthedocs.io/en/latest/query_language/queries.html#manipulations-with-partitions-and-parts |
| 25 |
method = "drop"; |
| 26 |
# how many month the data should be kept in ClickHouse |
| 27 |
period_months = 3; |
| 28 |
# how often run the cleanup process |
| 29 |
run_every = "7d"; |
| 30 |
} |
| 31 |
} |
| 32 |
logging = { |
| 33 |
type = "file", |
| 34 |
level = "debug" |
| 35 |
filename = "${RSPAMD_TMPDIR}/rspamd.log" |
| 36 |
} |
| 37 |
metric = { |
| 38 |
name = "default", |
| 39 |
actions = { |
| 40 |
reject = 100500, |
| 41 |
} |
| 42 |
unknown_weight = 1 |
| 43 |
} |
| 44 |
worker { |
| 45 |
type = normal |
| 46 |
bind_socket = ${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_NORMAL} |
| 47 |
count = 1 |
| 48 |
task_timeout = 60s; |
| 49 |
} |
| 50 |
worker { |
| 51 |
type = controller |
| 52 |
bind_socket = ${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_CONTROLLER} |
| 53 |
count = 1 |
| 54 |
secure_ip = ["127.0.0.1", "::1"]; |
| 55 |
stats_path = "${RSPAMD_TMPDIR}/stats.ucl" |
| 56 |
} |
| 57 |
lua = "${RSPAMD_TESTDIR}/lua/test_coverage.lua"; |
| 58 |
modules { |
| 59 |
path = "${RSPAMD_TESTDIR}/../../src/plugins/lua/" |
| 60 |
} |
| 61 |
lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua" |