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.

antivirus.conf 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/antivirus.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/antivirus.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/antivirus.html
  14. antivirus {
  15. # multiple scanners could be checked, for each we create a configuration block with an arbitrary name
  16. #clamav {
  17. # If set force this action if any virus is found (default unset: no action is forced)
  18. # action = "reject";
  19. # message = '${SCANNER}: virus found: "${VIRUS}"';
  20. # Scan mime_parts separately - otherwise the complete mail will be transferred to AV Scanner
  21. #scan_mime_parts = true;
  22. # Scanning Text is suitable for some av scanner databases (e.g. Sanesecurity)
  23. #scan_text_mime = false;
  24. #scan_image_mime = false;
  25. # If `max_size` is set, messages > n bytes in size are not scanned
  26. #max_size = 20000000;
  27. # symbol to add (add it to metric if you want non-zero weight)
  28. #symbol = "CLAM_VIRUS";
  29. # type of scanner: "clamav", "fprot", "sophos" or "savapi"
  30. #type = "clamav";
  31. # For "savapi" you must also specify the following variable
  32. #product_id = 12345;
  33. # You can enable logging for clean messages
  34. #log_clean = true;
  35. # servers to query (if port is unspecified, scanner-specific default is used)
  36. # can be specified multiple times to pool servers
  37. # can be set to a path to a unix socket
  38. # Enable this in local.d/antivirus.conf
  39. #servers = "127.0.0.1:3310";
  40. # if `patterns` is specified virus name will be matched against provided regexes and the related
  41. # symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
  42. #patterns {
  43. # symbol_name = "pattern";
  44. # JUST_EICAR = '^Eicar-Test-Signature$';
  45. #}
  46. #patterns_fail {
  47. # symbol_name = "pattern";
  48. #CLAM_PROTOCOL_ERROR = '^unhandled response';
  49. #}
  50. # `whitelist` points to a map of signature names. Hits on these signatures are ignored.
  51. #whitelist = "/etc/rspamd/antivirus.wl";
  52. #}
  53. .include(try=true,priority=5) "${DBDIR}/dynamic/antivirus.conf"
  54. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/antivirus.conf"
  55. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/antivirus.conf"
  56. }