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.

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