1 |
vip-ire |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav mezzanine_patched_smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav |
2 |
|
|
--- smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav 2006-02-05 15:38:30.000000000 +0100 |
3 |
|
|
+++ mezzanine_patched_smeserver-qpsmtpd-2.6.0/root/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/80clamav 2016-04-17 11:49:13.403205682 +0200 |
4 |
|
|
@@ -12,9 +12,12 @@ |
5 |
|
|
|
6 |
|
|
$max_size =~ s/[kK]/000/; |
7 |
|
|
$max_size =~ s/[mM]/000000/; |
8 |
|
|
+ # clamdscan takes size in kb |
9 |
|
|
+ $max_size = int($max_size / 1000); |
10 |
|
|
|
11 |
|
|
- $OUT = "virus/clamav" . |
12 |
|
|
- " clamscan_path=/usr/bin/clamdscan" . |
13 |
|
|
- " action=reject" . |
14 |
|
|
- " max_size=$max_size"; |
15 |
|
|
+ $OUT = "virus/clamdscan" . |
16 |
|
|
+ " scan_all yes" . |
17 |
|
|
+ " clamd_socket /var/clamav/clamd.socket" . |
18 |
|
|
+ " defer_on_error yes" . |
19 |
|
|
+ " max_size=$max_size"; |
20 |
|
|
} |