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.

external_services.conf 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. external_services {
  16. oletools {
  17. # If set force this action if any virus is found (default unset: no action is forced)
  18. # action = "reject";
  19. # If set, then rejection message is set to this value (mention single quotes)
  20. # If `max_size` is set, messages > n bytes in size are not scanned
  21. # max_size = 20000000;
  22. # log_clean = true;
  23. # servers = "127.0.0.1:10050";
  24. # cache_expire = 86400;
  25. # scan_mime_parts = true;
  26. # extended = false;
  27. # if `patterns` is specified virus name will be matched against provided regexes and the related
  28. # symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
  29. patterns {
  30. # symbol_name = "pattern";
  31. }
  32. # mime-part regex matching in content-type or filename
  33. mime_parts_filter_regex {
  34. #GEN1 = "application\/octet-stream";
  35. DOC2 = "application\/msword";
  36. DOC3 = "application\/vnd\.ms-word.*";
  37. XLS = "application\/vnd\.ms-excel.*";
  38. PPT = "application\/vnd\.ms-powerpoint.*";
  39. GEN2 = "application\/vnd\.openxmlformats-officedocument.*";
  40. }
  41. # Mime-Part filename extension matching (no regex)
  42. mime_parts_filter_ext {
  43. doc = "doc";
  44. dot = "dot";
  45. docx = "docx";
  46. dotx = "dotx";
  47. docm = "docm";
  48. dotm = "dotm";
  49. xls = "xls";
  50. xlt = "xlt";
  51. xla = "xla";
  52. xlsx = "xlsx";
  53. xltx = "xltx";
  54. xlsm = "xlsm";
  55. xltm = "xltm";
  56. xlam = "xlam";
  57. xlsb = "xlsb";
  58. ppt = "ppt";
  59. pot = "pot";
  60. pps = "pps";
  61. ppa = "ppa";
  62. pptx = "pptx";
  63. potx = "potx";
  64. ppsx = "ppsx";
  65. ppam = "ppam";
  66. pptm = "pptm";
  67. potm = "potm";
  68. ppsm = "ppsm";
  69. }
  70. # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
  71. whitelist = "/etc/rspamd/antivirus.wl";
  72. }
  73. dcc {
  74. # If set force this action if any virus is found (default unset: no action is forced)
  75. # action = "reject";
  76. # If set, then rejection message is set to this value (mention single quotes)
  77. # If `max_size` is set, messages > n bytes in size are not scanned
  78. max_size = 20000000;
  79. #servers = "127.0.0.1:10045";
  80. # if `patterns` is specified virus name will be matched against provided regexes and the related
  81. # symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
  82. patterns {
  83. # symbol_name = "pattern";
  84. }
  85. # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
  86. whitelist = "/etc/rspamd/antivirus.wl";
  87. }
  88. .include(try=true,priority=5) "${DBDIR}/dynamic/external_services.conf"
  89. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/external_services.conf"
  90. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/external_services.conf"
  91. }