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.

headers_group.conf 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Headers 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 = "Various headers checks";
  18. symbols = {
  19. "FORGED_SENDER" {
  20. weight = 0.3;
  21. description = "Sender is forged (different From: header and smtp MAIL FROM: addresses)";
  22. }
  23. "R_MIXED_CHARSET" {
  24. weight = 5.0;
  25. description = "Mixed characters in a message";
  26. one_shot = true;
  27. }
  28. "R_MIXED_CHARSET_URL" {
  29. weight = 7.0;
  30. description = "Mixed characters in a URL inside message";
  31. one_shot = true;
  32. }
  33. "FORGED_RECIPIENTS" {
  34. weight = 2.0;
  35. description = "Recipients are not the same as RCPT TO: mail command";
  36. }
  37. "FORGED_RECIPIENTS_MAILLIST" {
  38. weight = 0.0;
  39. description = "Recipients are not the same as RCPT TO: mail command, but a message from a maillist";
  40. }
  41. "FORGED_SENDER_MAILLIST" {
  42. weight = 0.0;
  43. description = "Sender is not the same as MAIL FROM: envelope, but a message is from a maillist";
  44. }
  45. "ONCE_RECEIVED" {
  46. weight = 0.1;
  47. description = "One received header in a message";
  48. }
  49. "RDNS_NONE" {
  50. weight = 1.0;
  51. description = "Cannot resolve reverse DNS for sender's IP";
  52. }
  53. "RDNS_DNSFAIL" {
  54. weight = 0.0;
  55. description = "PTR verification DNS error";
  56. }
  57. "ONCE_RECEIVED_STRICT" {
  58. weight = 4.0;
  59. description = "One received header with 'bad' patterns inside";
  60. }
  61. "DIRECT_TO_MX" {
  62. weight = 0.0;
  63. description = "Message has been directly delivered from MUA to local MX";
  64. }
  65. "MAILLIST" {
  66. weight = -0.2;
  67. description = "Message seems to be from maillist";
  68. }
  69. "BOUNCE" {
  70. weight = -0.1;
  71. description = "(Non) Delivery Status Notification";
  72. }
  73. }