Rapid spam filtering system https://rspamd.com/
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.

76 lines
2.2 KiB

  1. # Example MetaDefender configuration
  2. # Copy relevant sections to local.d/antivirus.conf and customize
  3. metadefender {
  4. # Required: Your MetaDefender API key from https://metadefender.opswat.com/
  5. apikey = "YOUR_API_KEY_HERE";
  6. # Main symbol name (for compatibility, usually not used directly)
  7. symbol = "METADEFENDER";
  8. # Scanner type - must be "metadefender"
  9. type = "metadefender";
  10. # Scan MIME parts separately instead of full message (recommended: true)
  11. scan_mime_parts = true;
  12. # Don't scan text or image MIME parts (saves API quota)
  13. scan_text_mime = false;
  14. scan_image_mime = false;
  15. # Maximum file size to scan (20MB default)
  16. max_size = 20000000;
  17. # Log when files are clean (default: false to reduce noise)
  18. log_clean = false;
  19. # Minimum AV engines that must detect malware before flagging (default: 3)
  20. # Lower value = more sensitive, may have more false positives
  21. minimum_engines = 3;
  22. # Threshold for low category (default: 5)
  23. # Detections from minimum_engines to low_category-1 = LOW
  24. low_category = 5;
  25. # Threshold for medium category (default: 10)
  26. # Detections from low_category to medium_category-1 = MEDIUM
  27. # Detections >= medium_category = HIGH
  28. medium_category = 10;
  29. # HTTP request timeout in seconds
  30. timeout = 5.0;
  31. # Redis cache expiration (2 hours = 7200 seconds)
  32. # Longer cache reduces API calls but may miss new detections
  33. cache_expire = 7200;
  34. # Symbol categories with scores (can be customized)
  35. symbols = {
  36. clean = {
  37. symbol = "METADEFENDER_CLEAN";
  38. score = -0.5;
  39. description = "MetaDefender decided attachment to be clean";
  40. };
  41. low = {
  42. symbol = "METADEFENDER_LOW";
  43. score = 2.0;
  44. description = "MetaDefender found low number of threats (3-4 engines)";
  45. };
  46. medium = {
  47. symbol = "METADEFENDER_MEDIUM";
  48. score = 5.0;
  49. description = "MetaDefender found medium number of threats (5-9 engines)";
  50. };
  51. high = {
  52. symbol = "METADEFENDER_HIGH";
  53. score = 8.0;
  54. description = "MetaDefender found high number of threats (10+ engines)";
  55. };
  56. }
  57. # Optional: Force an action when malware is detected
  58. # action = "reject";
  59. # Optional: Custom message template
  60. # message = '${SCANNER}: virus found: "${VIRUS}"';
  61. }