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 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Basic rspamd 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,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. max_urls = 10240;
  30. max_recipients = 1024;
  31. dns {
  32. timeout = 1s;
  33. sockets = 16;
  34. retransmits = 5;
  35. }
  36. tempdir = "/tmp";
  37. url_tld = "${SHAREDIR}/effective_tld_names.dat";
  38. classify_headers = [
  39. "User-Agent",
  40. "X-Mailer",
  41. "Content-Type",
  42. "X-MimeOLE",
  43. ];
  44. control_socket = "$DBDIR/rspamd.sock mode=0600";
  45. history_rows = 200;
  46. explicit_modules = ["settings", "bayes_expiry"];
  47. # Scan messages even if they are not MIME
  48. allow_raw_input = true;
  49. # Start ignore words when reaching the following limit, so the total
  50. # amount of words processed will not be *LIKELY more than the twice of that limit
  51. words_decay = 600;
  52. # Write statistics about rspamd usage to the round-robin database
  53. rrd = "${DBDIR}/rspamd.rrd";
  54. # Write statistics for `rspamc` here
  55. stats_file = "${DBDIR}/stats.ucl";
  56. # Local networks
  57. 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];
  58. hs_cache_dir = "${DBDIR}/";
  59. # Timeout for messages processing (must be larger than any internal timeout used)
  60. task_timeout = 8s;
  61. # Emit soft reject when timeout takes place
  62. soft_reject_on_timeout = false;