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.

mime_types_group.conf 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Mime types rules scores
  2. #
  3. # Please don't modify this file as your changes might be overwritten with
  4. # the next update.
  5. #
  6. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  7. # parameters defined on the top level
  8. #
  9. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  10. # parameters defined on the top level
  11. #
  12. # For specific modules or configuration you can also modify
  13. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  14. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  15. #
  16. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  17. symbols = {
  18. "MIME_GOOD" {
  19. weight = -0.1;
  20. description = "Known content-type";
  21. one_shot = true;
  22. }
  23. "MIME_BAD" {
  24. weight = 1.0;
  25. description = "Known bad content-type";
  26. one_shot = true;
  27. }
  28. "MIME_UNKNOWN" {
  29. weight = 0.1;
  30. description = "Missing or unknown content-type";
  31. one_shot = true;
  32. }
  33. "MIME_BAD_ATTACHMENT" {
  34. weight = 4.0;
  35. description = "Invalid attachment mime type";
  36. one_shot = true;
  37. }
  38. "MIME_ENCRYPTED_ARCHIVE" {
  39. weight = 2.0;
  40. description = "Encrypted archive in a message";
  41. one_shot = true;
  42. }
  43. "MIME_ARCHIVE_IN_ARCHIVE" {
  44. weight = 5.0;
  45. description = "Archive within another archive";
  46. one_shot = true;
  47. }
  48. "MIME_DOUBLE_BAD_EXTENSION" {
  49. weight = 3.0; # This rule has dynamic weight up to 4.0
  50. description = "Bad extension cloaking";
  51. one_shot = true;
  52. }
  53. "MIME_BAD_EXTENSION" {
  54. weight = 2.0; # This rule has dynamic weight up to 4.0
  55. description = "Bad extension";
  56. one_shot = true;
  57. }
  58. "MIME_BAD_UNICODE" {
  59. weight = 8.0;
  60. description = "Filename with known obscured unicode characters";
  61. one_shot = true;
  62. }
  63. }