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.

options.inc 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Logging 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.d/options.inc' to add and merge
  6. # parameters defined inside this section
  7. #
  8. # You can modify 'override.d/options.inc' to strictly override all
  9. # parameters defined inside this section
  10. #
  11. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  12. # for details
  13. #
  14. # Relevant documentation: https://rspamd.com/doc/configuration/options.html
  15. filters = "chartable,dkim,spf,regexp,fuzzy_check";
  16. raw_mode = false;
  17. one_shot = false;
  18. cache_file = "$DBDIR/symbols.cache";
  19. # How often maps are checked (
  20. map_watch_interval = 5min;
  21. # Multiplier for watch interval for files
  22. map_file_watch_multiplier = 0.1;
  23. dynamic_conf = "$DBDIR/rspamd_dynamic";
  24. history_file = "$DBDIR/rspamd.history";
  25. check_all_filters = false;
  26. # Default settings
  27. dns_max_requests = 64;
  28. max_lua_urls = 1024;
  29. dns {
  30. timeout = 1s;
  31. sockets = 16;
  32. retransmits = 5;
  33. }
  34. tempdir = "/tmp";
  35. url_tld = "${SHAREDIR}/effective_tld_names.dat";
  36. classify_headers = [
  37. "User-Agent",
  38. "X-Mailer",
  39. "Content-Type",
  40. "X-MimeOLE",
  41. ];
  42. control_socket = "$DBDIR/rspamd.sock mode=0600";
  43. history_rows = 200;
  44. explicit_modules = ["settings", "bayes_expiry"];
  45. # Scan messages even if they are not MIME
  46. allow_raw_input = true;
  47. # Start ignore words when reaching the following limit, so the total
  48. # amount of words processed will not be *LIKELY more than the twice of that limit
  49. words_decay = 600;
  50. # Write statistics about rspamd usage to the round-robin database
  51. rrd = "${DBDIR}/rspamd.rrd";
  52. # Write statistics for `rspamc` here
  53. stats_file = "${DBDIR}/stats.ucl";
  54. # Local networks
  55. local_addrs = [192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, fd00::/8, 169.254.0.0/16, fe80::/10];
  56. hs_cache_dir = "${DBDIR}/";
  57. # Timeout for messages processing (must be larger than any internal timeout used)
  58. task_timeout = 8s;
  59. # Emit soft reject when timeout takes place
  60. soft_reject_on_timeout = false;