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.

settings.conf 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  2. # parameters defined on the top level
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  5. # parameters defined on the top level
  6. #
  7. # For specific modules or configuration you can also modify
  8. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  9. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  10. #
  11. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  12. # If you want to use settings map, then please define something like:
  13. #
  14. # settings = "http://example.com/settings.json"
  15. #
  16. # in rspamd.conf.override
  17. settings {
  18. /* Commented out
  19. # Some examples below (define in local.d/settings.conf without `settings {}`!)
  20. some_users {
  21. id = "some_users";
  22. priority = high;
  23. from = "@example.com";
  24. rcpt = "admin";
  25. rcpt = "/user.*/";
  26. ip = "172.16.0.0/16";
  27. user = "@example.net";
  28. request_header = {
  29. "MTA-Tag" = "\.example\.net$";
  30. }
  31. apply {
  32. symbol1 = 10.0;
  33. symbol2 = 0.0;
  34. actions {
  35. reject = 100.0;
  36. greylist = 10.0;
  37. "add header" = 5.0; # Please note the space, NOT an underscore
  38. }
  39. }
  40. # Always add these symbols when settings rule has matched
  41. symbols [
  42. "symbol2", "symbol4"
  43. ]
  44. }
  45. whitelist {
  46. priority = low;
  47. rcpt = "postmaster@example.com";
  48. want_spam = yes;
  49. }
  50. # Disable some checks for authenticated users
  51. authenticated {
  52. priority = high;
  53. authenticated = yes;
  54. apply {
  55. groups_disabled = ["rbl", "spf"];
  56. }
  57. }
  58. # End of example
  59. */
  60. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/settings.conf"
  61. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/settings.conf"
  62. }