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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. composites {
  17. FORGED_RECIPIENTS_MAILLIST {
  18. expression = "FORGED_RECIPIENTS & -MAILLIST";
  19. }
  20. FORGED_SENDER_MAILLIST {
  21. expression = "FORGED_SENDER & -MAILLIST";
  22. }
  23. FORGED_SENDER_FORWARDING {
  24. expression = "FORGED_SENDER & g:forwarding";
  25. }
  26. SPF_FAIL_FORWARDING {
  27. expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)";
  28. policy = "remove_weight";
  29. }
  30. DMARC_POLICY_ALLOW_WITH_FAILURES {
  31. expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)";
  32. policy = "remove_weight";
  33. }
  34. FORGED_RECIPIENTS_FORWARDING {
  35. expression = "FORGED_RECIPIENTS & g:forwarding";
  36. }
  37. FORGED_SENDER_VERP_SRS {
  38. expression = "FORGED_SENDER & (ENVFROM_PRVS | ENVFROM_VERP)";
  39. }
  40. FORGED_MUA_MAILLIST {
  41. expression = "g:mua and -MAILLIST";
  42. }
  43. RBL_SPAMHAUS_XBL_ANY {
  44. expression = "RBL_SPAMHAUS_XBL & RECEIVED_SPAMHAUS_XBL";
  45. }
  46. AUTH_NA {
  47. expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA";
  48. score = 1.0;
  49. policy = "remove_weight";
  50. }
  51. DKIM_MIXED {
  52. expression = "-R_DKIM_ALLOW & (R_DKIM_DNSFAIL | R_DKIM_PERMFAIL | R_DKIM_REJECT)"
  53. policy = "remove_weight";
  54. }
  55. MAIL_RU_MAILER_BASE64 {
  56. expression = "MAIL_RU_MAILER & (FROM_EXCESS_BASE64 | MIME_BASE64_TEXT | REPLYTO_EXCESS_BASE64 | SUBJ_EXCESS_BASE64 | TO_EXCESS_BASE64)";
  57. }
  58. YANDEX_RU_MAILER_CTYPE_MIXED_BOGUS {
  59. expression = "YANDEX_RU_MAILER & -HAS_ATTACHMENT & CTYPE_MIXED_BOGUS";
  60. }
  61. MAILER_1C_8_BASE64 {
  62. expression = "MAILER_1C_8 & (FROM_EXCESS_BASE64 | MIME_BASE64_TEXT | SUBJ_EXCESS_BASE64 | TO_EXCESS_BASE64)";
  63. }
  64. HACKED_WP_PHISHING {
  65. expression = "HAS_X_POS & HAS_WP_URI & PHISHING";
  66. policy = "leave";
  67. }
  68. COMPROMISED_ACCT_BULK {
  69. expression = "(HAS_XOIP | RCVD_FROM_SMTP_AUTH) & DCC_BULK";
  70. description = "Likely to be from a compromised account";
  71. score = 3.0;
  72. policy = "leave";
  73. }
  74. UNDISC_RCPTS_BULK {
  75. expression = "DCC_BULK & (MISSING_TO | R_UNDISC_RCPT)";
  76. description = "Missing or undisclosed recipients with a bulk signature";
  77. score = 3.0;
  78. policy = "leave";
  79. }
  80. .include(try=true; priority=1; duplicate=merge) "$LOCAL_CONFDIR/local.d/composites.conf"
  81. .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/composites.conf"
  82. }