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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. antivirus {
  16. # multiple scanners could be checked, for each we create a configuration block with an arbitrary name
  17. clamav {
  18. # If set force this action if any virus is found (default unset: no action is forced)
  19. # action = "reject";
  20. # if `true` only messages with non-image attachments will be checked (default true)
  21. attachments_only = true;
  22. # If `max_size` is set, messages > n bytes in size are not scanned
  23. #max_size = 20000000;
  24. # symbol to add (add it to metric if you want non-zero weight)
  25. symbol = "CLAM_VIRUS";
  26. # type of scanner: "clamav", "fprot", "sophos" or "savapi"
  27. type = "clamav";
  28. # For "savapi" you must also specify the following variable
  29. #product_id = 12345;
  30. # You can enable logging for clean messages
  31. #log_clean = true;
  32. # servers to query (if port is unspecified, scanner-specific default is used)
  33. # can be specified multiple times to pool servers
  34. # can be set to a path to a unix socket
  35. # Enable this in local.d/antivirus.conf
  36. #servers = "127.0.0.1:3310";
  37. # if `patterns` is specified virus name will be matched against provided regexes and the related
  38. # symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
  39. patterns {
  40. # symbol_name = "pattern";
  41. JUST_EICAR = "^Eicar-Test-Signature$";
  42. }
  43. # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
  44. whitelist = "/etc/rspamd/antivirus.wl";
  45. }
  46. .include(try=true,priority=5) "${DBDIR}/dynamic/antivirus.conf"
  47. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/antivirus.conf"
  48. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/antivirus.conf"
  49. }