/[smeserver]/rpms/smeserver-qpsmtpd/sme10/smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch
ViewVC logotype

Contents of /rpms/smeserver-qpsmtpd/sme10/smeserver-qpsmtpd-2.6.0-use_clamdscan_plugin.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Wed Dec 16 16:49:33 2020 UTC (3 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Initial import

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed