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.

dkim.conf 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"
  2. options = {
  3. filters = ["dkim"]
  4. pidfile = "{= env.TMPDIR =}/rspamd.pid"
  5. dns {
  6. retransmits = 10;
  7. timeout = 2s;
  8. }
  9. }
  10. logging = {
  11. type = "file",
  12. level = "debug"
  13. filename = "{= env.TMPDIR =}/rspamd.log"
  14. }
  15. metric = {
  16. name = "default",
  17. actions = {
  18. reject = 100500,
  19. }
  20. unknown_weight = 1
  21. }
  22. worker {
  23. type = normal
  24. bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"
  25. count = 1
  26. keypair {
  27. pubkey = "{= env.KEY_PUB1 =}";
  28. privkey = "{= env.KEY_PVT1 =}";
  29. }
  30. task_timeout = 60s;
  31. }
  32. worker {
  33. type = controller
  34. bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"
  35. count = 1
  36. secure_ip = ["127.0.0.1", "::1"];
  37. stats_path = "{= env.TMPDIR =}/stats.ucl"
  38. }
  39. dkim {
  40. sign_condition =<<EOD
  41. return function(task)
  42. local dodkim = task:get_request_header('dodkim')
  43. if not dodkim then return end
  44. return {
  45. key = "{= env.TESTDIR =}/configs/dkim.key",
  46. domain = "cacophony.za.org",
  47. selector = "dkim"
  48. }
  49. end
  50. EOD;
  51. dkim_cache_size = 2k;
  52. dkim_cache_expire = 1d;
  53. time_jitter = 6h;
  54. trusted_only = false;
  55. skip_multi = false;
  56. }
  57. modules {
  58. path = "{= env.TESTDIR =}/../../src/plugins/lua/"
  59. }
  60. lua = "{= env.TESTDIR =}/lua/test_coverage.lua";