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.3KB

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