diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-31 16:09:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-31 16:09:01 +0000 |
commit | 47f0c0636b7d5c6a22b5ae7d733b54b873e3e227 (patch) | |
tree | a1076c283df50f425483d83cc121173535fcbf02 /conf/modules.d | |
parent | 299c314a12f80f3637d13fbb53c2db1715c57d63 (diff) | |
download | rspamd-47f0c0636b7d5c6a22b5ae7d733b54b873e3e227.tar.gz rspamd-47f0c0636b7d5c6a22b5ae7d733b54b873e3e227.zip |
[Conf] Antivirus: Fix the default config
Diffstat (limited to 'conf/modules.d')
-rw-r--r-- | conf/modules.d/antivirus.conf | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/conf/modules.d/antivirus.conf b/conf/modules.d/antivirus.conf index 570b075e0..9b475bce3 100644 --- a/conf/modules.d/antivirus.conf +++ b/conf/modules.d/antivirus.conf @@ -14,7 +14,7 @@ antivirus { # multiple scanners could be checked, for each we create a configuration block with an arbitrary name - clamav { + #clamav { # If set force this action if any virus is found (default unset: no action is forced) # action = "reject"; # message = '${SCANNER}: virus found: "${VIRUS}"'; @@ -26,9 +26,9 @@ antivirus { # If `max_size` is set, messages > n bytes in size are not scanned #max_size = 20000000; # symbol to add (add it to metric if you want non-zero weight) - symbol = "CLAM_VIRUS"; + #symbol = "CLAM_VIRUS"; # type of scanner: "clamav", "fprot", "sophos" or "savapi" - type = "clamav"; + #type = "clamav"; # For "savapi" you must also specify the following variable #product_id = 12345; # You can enable logging for clean messages @@ -40,18 +40,17 @@ antivirus { #servers = "127.0.0.1:3310"; # if `patterns` is specified virus name will be matched against provided regexes and the related # symbol will be yielded if a match is found. If no match is found, default symbol is yielded. - patterns { + #patterns { # symbol_name = "pattern"; - JUST_EICAR = '^Eicar-Test-Signature$'; - } - patterns_fail { + # JUST_EICAR = '^Eicar-Test-Signature$'; + #} + #patterns_fail { # symbol_name = "pattern"; #CLAM_PROTOCOL_ERROR = '^unhandled response'; - } + #} # `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned. - whitelist = "/etc/rspamd/antivirus.wl"; - } - + #whitelist = "/etc/rspamd/antivirus.wl"; + #} .include(try=true,priority=5) "${DBDIR}/dynamic/antivirus.conf" .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/antivirus.conf" |