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.

composites.conf 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Composites setup
  2. # Please don't modify this file as your changes might be overwritten with
  3. # the next update.
  4. #
  5. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  6. # parameters defined on the top level
  7. #
  8. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  9. # parameters defined on the top level
  10. #
  11. # For specific modules or configuration you can also modify
  12. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  13. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  14. #
  15. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  16. composite "FORGED_RECIPIENTS_MAILLIST" {
  17. expression = "FORGED_RECIPIENTS & -MAILLIST";
  18. }
  19. composite "FORGED_SENDER_MAILLIST" {
  20. expression = "FORGED_SENDER & -MAILLIST";
  21. }
  22. composite "FORGED_SENDER_FORWARDING" {
  23. expression = "FORGED_SENDER & g:forwarding";
  24. }
  25. composite "SPF_FAIL_FORWARDING" {
  26. expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)";
  27. policy = "remove_weight";
  28. }
  29. composite "DMARC_POLICY_ALLOW_WITH_FAILURES" {
  30. expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)";
  31. policy = "remove_weight";
  32. }
  33. composite "FORGED_RECIPIENTS_FORWARDING" {
  34. expression = "FORGED_RECIPIENTS & g:forwarding";
  35. }
  36. composite "FORGED_SENDER_VERP_SRS" {
  37. expression = "FORGED_SENDER & (ENVFROM_PRVS | ENVFROM_VERP)";
  38. }
  39. composite "FORGED_MUA_MAILLIST" {
  40. expression = "g:mua and -MAILLIST";
  41. }
  42. composite "RBL_SPAMHAUS_XBL_ANY" {
  43. expression = "RBL_SPAMHAUS_XBL & RECEIVED_SPAMHAUS_XBL";
  44. }
  45. composite "AUTH_NA" {
  46. expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA";
  47. score = 1.0;
  48. policy = "remove_weight";
  49. }
  50. composite "DKIM_MIXED" {
  51. expression = "-R_DKIM_ALLOW & (R_DKIM_DNSFAIL | R_DKIM_PERMFAIL | R_DKIM_REJECT)"
  52. policy = "remove_weight";
  53. }
  54. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
  55. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"