Skip to content

Commit e4b8e62

Browse files
author
Marius Burkard
committed
Merge branch 'jnorell-develop-patch-07904' into 'develop'
Update rspamd_antivirus.conf.master: don't skip virus scanning for text and image attachments. See merge request ispconfig/ispconfig3!1495
2 parents 7522f64 + 679b2ec commit e4b8e62

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

install/tpl/rspamd_antivirus.conf.master

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
clamav {
22
# If set force this action if any virus is found (default unset: no action is forced)
33
#action = "reject";
4-
# if `true` only messages with non-image attachments will be checked (default true)
4+
# Scan mime_parts separately - otherwise the complete mail will be transferred to AV Scanner
55
scan_mime_parts = true;
6+
# Scanning Text is suitable for some av scanner databases (e.g. Sanesecurity)
7+
scan_text_mime = true;
8+
scan_image_mime = true;
69
# If `max_size` is set, messages > n bytes in size are not scanned
710
#max_size = 20000000;
811
# symbol to add (add it to metric if you want non-zero weight)
@@ -25,6 +28,10 @@ clamav {
2528
# symbol_name = "pattern";
2629
JUST_EICAR = "^Eicar-Test-Signature$";
2730
}
31+
patterns_fail {
32+
# symbol_name = "pattern";
33+
CLAM_PROTOCOL_ERROR = '^unhandled response';
34+
}
2835
# `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
2936
whitelist = "/etc/rspamd/antivirus.wl";
30-
}
37+
}

0 commit comments

Comments
 (0)