Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

mime_types_group.conf 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. description = "Mime attachments rules";
  18. # Define some limit for this group
  19. max_score = 10.0;
  20. symbols = {
  21. "MIME_GOOD" {
  22. weight = -0.1;
  23. description = "Known content-type";
  24. one_shot = true;
  25. }
  26. "MIME_BAD" {
  27. weight = 1.0;
  28. description = "Known bad content-type";
  29. one_shot = true;
  30. }
  31. "MIME_UNKNOWN" {
  32. weight = 0.1;
  33. description = "Missing or unknown content-type";
  34. one_shot = true;
  35. }
  36. "MIME_BAD_ATTACHMENT" {
  37. weight = 4.0;
  38. description = "Invalid attachment mime type";
  39. one_shot = true;
  40. }
  41. "MIME_ENCRYPTED_ARCHIVE" {
  42. weight = 2.0;
  43. description = "Encrypted archive in a message";
  44. one_shot = true;
  45. }
  46. "MIME_OBFUSCATED_ARCHIVE" {
  47. weight = 8.0;
  48. description = "Archive has files with clear obfuscation signs";
  49. one_shot = true;
  50. }
  51. "MIME_EXE_IN_GEN_SPLIT_RAR" {
  52. weight = 5.0;
  53. description = "EXE file in RAR archive with generic split extension (e.g. .001)";
  54. one_shot = true;
  55. }
  56. "MIME_ARCHIVE_IN_ARCHIVE" {
  57. weight = 5.0;
  58. description = "Archive within another archive";
  59. one_shot = true;
  60. }
  61. "MIME_DOUBLE_BAD_EXTENSION" {
  62. weight = 3.0; # This rule has dynamic weight up to 4.0
  63. description = "Bad extension cloaking";
  64. one_shot = true;
  65. }
  66. "MIME_BAD_EXTENSION" {
  67. weight = 2.0; # This rule has dynamic weight up to 4.0
  68. description = "Bad extension";
  69. one_shot = true;
  70. }
  71. "MIME_BAD_UNICODE" {
  72. weight = 8.0;
  73. description = "Filename with known obscured unicode characters";
  74. one_shot = true;
  75. }
  76. }