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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. one_shot = false;
  17. cache_file = "$DBDIR/symbols.cache";
  18. # How often maps are checked (
  19. map_watch_interval = 5min;
  20. # Multiplier for watch interval for files
  21. map_file_watch_multiplier = 0.1;
  22. dynamic_conf = "$DBDIR/rspamd_dynamic";
  23. history_file = "$DBDIR/rspamd.history";
  24. check_all_filters = false;
  25. # Default settings
  26. dns_max_requests = 64;
  27. max_lua_urls = 1024;
  28. max_urls = 10240;
  29. max_recipients = 1024;
  30. dns {
  31. timeout = 1s;
  32. sockets = 16;
  33. retransmits = 5;
  34. }
  35. tempdir = "/tmp";
  36. url_tld = "${SHAREDIR}/effective_tld_names.dat";
  37. classify_headers = [
  38. "User-Agent",
  39. "X-Mailer",
  40. "Content-Type",
  41. "X-MimeOLE",
  42. ];
  43. control_socket = "$DBDIR/rspamd.sock mode=0600";
  44. history_rows = 200;
  45. explicit_modules = ["settings", "bayes_expiry"];
  46. # Scan messages even if they are not MIME
  47. allow_raw_input = true;
  48. # Start ignore words when reaching the following limit, so the total
  49. # amount of words processed will not be *LIKELY more than the twice of that limit
  50. words_decay = 600;
  51. # Write statistics about rspamd usage to the round-robin database
  52. rrd = "${DBDIR}/rspamd.rrd";
  53. # Write statistics for `rspamc` here
  54. stats_file = "${DBDIR}/stats.ucl";
  55. # Local networks
  56. 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];
  57. hs_cache_dir = "${DBDIR}/";
  58. # Timeout for messages processing (must be larger than any internal timeout used)
  59. task_timeout = 8s;
  60. # Emit soft reject when timeout takes place
  61. soft_reject_on_timeout = false;