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.

rspamd.conf 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # System V init adopted top level configuration
  2. # Please don't modify this file as your changes might be overwritten with
  3. # the next update.
  4. #
  5. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  6. # parameters defined on the top level
  7. #
  8. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  9. # parameters defined on the top level
  10. #
  11. # For specific modules or configuration you can also modify
  12. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  13. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  14. #
  15. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  16. .include "$CONFDIR/common.conf"
  17. options {
  18. pidfile = "$RUNDIR/rspamd.pid";
  19. .include "$CONFDIR/options.inc"
  20. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/options.inc"
  21. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/options.inc"
  22. }
  23. lang_detection {
  24. .include "$CONFDIR/lang_detection.inc"
  25. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/lang_detection.inc"
  26. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/lang_detection.inc"
  27. }
  28. .include(try=true; duplicate=merge) "$CONFDIR/cgp.inc"
  29. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc"
  30. logging {
  31. type = "file";
  32. filename = "$LOGDIR/rspamd.log";
  33. .include "$CONFDIR/logging.inc"
  34. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/logging.inc"
  35. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/logging.inc"
  36. }
  37. worker "normal" {
  38. bind_socket = "localhost:11333";
  39. .include "$CONFDIR/worker-normal.inc"
  40. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-normal.inc"
  41. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-normal.inc"
  42. }
  43. worker "controller" {
  44. bind_socket = "localhost:11334";
  45. .include "$CONFDIR/worker-controller.inc"
  46. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-controller.inc"
  47. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc"
  48. }
  49. worker "rspamd_proxy" {
  50. bind_socket = "localhost:11332";
  51. .include "$CONFDIR/worker-proxy.inc"
  52. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-proxy.inc"
  53. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-proxy.inc"
  54. }
  55. # Local fuzzy storage is disabled by default
  56. worker "fuzzy" {
  57. bind_socket = "localhost:11335";
  58. count = -1; # Disable by default, see #4677 for details
  59. .include "$CONFDIR/worker-fuzzy.inc"
  60. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-fuzzy.inc"
  61. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-fuzzy.inc"
  62. }