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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. .include(try=true; duplicate=merge) "$CONFDIR/cgp.inc"
  24. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc"
  25. logging {
  26. type = "file";
  27. filename = "$LOGDIR/rspamd.log";
  28. .include "$CONFDIR/logging.inc"
  29. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/logging.inc"
  30. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/logging.inc"
  31. }
  32. worker "normal" {
  33. bind_socket = "localhost:11333";
  34. .include "$CONFDIR/worker-normal.inc"
  35. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-normal.inc"
  36. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-normal.inc"
  37. }
  38. worker "controller" {
  39. bind_socket = "localhost:11334";
  40. .include "$CONFDIR/worker-controller.inc"
  41. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-controller.inc"
  42. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-controller.inc"
  43. }
  44. worker "rspamd_proxy" {
  45. bind_socket = "localhost:11332";
  46. .include "$CONFDIR/worker-proxy.inc"
  47. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-proxy.inc"
  48. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-proxy.inc"
  49. }
  50. # Local fuzzy storage is disabled by default
  51. worker "fuzzy" {
  52. bind_socket = "localhost:11335";
  53. count = -1; # Disable by default
  54. .include "$CONFDIR/worker-fuzzy.inc"
  55. .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/worker-fuzzy.inc"
  56. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/worker-fuzzy.inc"
  57. }