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

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