You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

trivial.conf 947B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. options = {
  2. filters = ["spf", "dkim", "regexp"]
  3. url_tld = "${TESTDIR}/../lua/unit/test_tld.dat"
  4. pidfile = "${TMPDIR}/rspamd.pid";
  5. lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua";
  6. dns {
  7. nameserver = ["8.8.8.8", "8.8.4.4"];
  8. retransmits = 10;
  9. timeout = 2s;
  10. }
  11. }
  12. logging = {
  13. log_urls = true;
  14. type = "file",
  15. level = "debug"
  16. filename = "${TMPDIR}/rspamd.log"
  17. }
  18. metric = {
  19. name = "default",
  20. actions = {
  21. reject = 100500,
  22. }
  23. unknown_weight = 1
  24. }
  25. worker {
  26. type = normal
  27. bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
  28. count = 1
  29. keypair {
  30. pubkey = "${KEY_PUB1}";
  31. privkey = "${KEY_PVT1}";
  32. }
  33. task_timeout = 60s;
  34. }
  35. worker {
  36. type = controller
  37. bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
  38. count = 1
  39. secure_ip = ["127.0.0.1", "::1"];
  40. stats_path = "${TMPDIR}/stats.ucl"
  41. }
  42. modules {
  43. path = "${TESTDIR}/../../src/plugins/lua/"
  44. }
  45. lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua"