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

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